소스 검색

Add admin field

sbkwgh 8 년 전
부모
커밋
d0214822b2
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  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