From d37cc8c56cbf8c9ffe7023c671abe0d579ea875d Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 30 Mar 2025 17:21:29 -0400 Subject: Moved models to the db folder --- bot/src/db/models/command-usages.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bot/src/db/models/command-usages.js (limited to 'bot/src/db/models/command-usages.js') diff --git a/bot/src/db/models/command-usages.js b/bot/src/db/models/command-usages.js new file mode 100644 index 0000000..21b4c86 --- /dev/null +++ b/bot/src/db/models/command-usages.js @@ -0,0 +1,26 @@ +import { INTEGER, STRING } from 'sequelize'; +import { sequelize } from '../../utils/sequelize.js'; + +export const commandUsages = sequelize.define('command-usages', { + id: { + type: INTEGER, + autoIncrement: true, + primaryKey: true + }, + command: { + type: STRING, + allowNull: false + }, + userID: { + type: STRING, + allowNull: false + }, + guildID: { + type: STRING, + allowNull: true + } + +}, { + updatedAt: false, +}); + -- cgit v1.2.3