Explorar o código

Add admin field

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
d0214822b2
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  1. 2 7
      models/user.js

+ 2 - 7
models/user.js

@@ -4,13 +4,8 @@ module.exports = (sequelize, DataTypes) => {
 			type: DataTypes.STRING,
 			unique: true
 		},
-		hash: DataTypes.STRING
-	}, {
-		classMethods: {
-			associate: (models) => {
-				// associations can be defined here
-			}
-		}
+		hash: DataTypes.STRING,
+		admin: DataTypes.BOOLEAN
 	})
 
 	return User