Explorar el Código

Add admin field

sbkwgh hace 8 años
padre
commit
d0214822b2
Se han modificado 1 ficheros con 2 adiciones y 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