From 78cd678f6f2f9ff485605f565082d95495fbbbf0 Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 16 Dec 2023 20:38:00 +0000 Subject: [PATCH] Create Users sequelize module --- models/users.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 models/users.js diff --git a/models/users.js b/models/users.js new file mode 100644 index 0000000..401572d --- /dev/null +++ b/models/users.js @@ -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, + }); +}; \ No newline at end of file