Browse Source

Add admin field

sbkwgh 8 năm trước cách đây
mục cha
commit
d0214822b2
1 tập tin đã thay đổi với 2 bổ sung7 xóa
  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