윤준석

ADD: user model

......@@ -34,4 +34,6 @@ Object.keys(db).forEach(modelName => {
db.sequelize = sequelize;
db.Sequelize = Sequelize;
db.user = require("./user")(sequelize, Sequelize)
module.exports = db;
......
module.exports = (sequelize, DataTypes) => {
return sequelize.define("user", {
id: {
type: DataTypes.INT,
autoIncrement: true,
primaryKey: true
},
userId: {
type: DataTypes.INT,
allowNull: false
}
})
}
\ No newline at end of file