diff options
Diffstat (limited to 'bot/src/db/models/command-usages.js')
| -rw-r--r-- | bot/src/db/models/command-usages.js | 26 |
1 files changed, 26 insertions, 0 deletions
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, +}); + |
