윤준석

ADD: user model

...@@ -34,4 +34,6 @@ Object.keys(db).forEach(modelName => { ...@@ -34,4 +34,6 @@ Object.keys(db).forEach(modelName => {
34 db.sequelize = sequelize; 34 db.sequelize = sequelize;
35 db.Sequelize = Sequelize; 35 db.Sequelize = Sequelize;
36 36
37 +db.user = require("./user")(sequelize, Sequelize)
38 +
37 module.exports = db; 39 module.exports = db;
......
1 +module.exports = (sequelize, DataTypes) => {
2 +
3 + return sequelize.define("user", {
4 + id: {
5 + type: DataTypes.INT,
6 + autoIncrement: true,
7 + primaryKey: true
8 + },
9 + userId: {
10 + type: DataTypes.INT,
11 + allowNull: false
12 + }
13 + })
14 +}
...\ No newline at end of file ...\ No newline at end of file