Create Users sequelize module

This commit is contained in:
baz 2023-12-16 20:38:00 +00:00
parent 3fe6b11765
commit 78cd678f6f
1 changed files with 14 additions and 0 deletions

14
models/users.js Normal file
View File

@ -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,
});
};