Create Users sequelize module
This commit is contained in:
parent
3fe6b11765
commit
78cd678f6f
|
@ -0,0 +1,14 @@
|
|||
module.exports = (sequelize, DataTypes) => {
|
||||
return sequelize.define('users', {
|
||||
user_id: {
|
||||
type: DataTypes.STRING,
|
||||
primaryKey: true,
|
||||
},
|
||||
username: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
}, {
|
||||
timestamps: false,
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue