aboutsummaryrefslogtreecommitdiff
path: root/bot/src/models/command-usages.js
blob: a9dafa41611d12cb5090bb844a51dd73596f8b27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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,
});