Create Games sequelize module
This commit is contained in:
parent
78cd678f6f
commit
e80dfdf953
|
@ -0,0 +1,14 @@
|
|||
module.exports = (sequelize, DataTypes) => {
|
||||
return sequelize.define('games', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER,
|
||||
primaryKey: true,
|
||||
},
|
||||
name: {
|
||||
type: DataTypes.STRING,
|
||||
unique: false,
|
||||
},
|
||||
}, {
|
||||
timestamps: false,
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue