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