From f18f5fff1fd0b8336df464d6e6f62efbc29aa618 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 29 Mar 2025 11:42:40 -0400 Subject: Added analytics; try/catch for ready event --- bot/src/models/command-usages.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bot/src/models/command-usages.js (limited to 'bot/src/models') diff --git a/bot/src/models/command-usages.js b/bot/src/models/command-usages.js new file mode 100644 index 0000000..a9dafa4 --- /dev/null +++ b/bot/src/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