aboutsummaryrefslogtreecommitdiff
path: root/bot/src/db/models/blacklist.js
blob: 1542f917643e87fddb6211489fd350713109f313 (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
27
28
29
30
import { INTEGER, STRING } from 'sequelize';
import { sequelize } from '../../utils/sequelize.js';

export const blacklistUser = sequelize.define('blacklist-users', {
    id: {
        type: INTEGER,
        primaryKey: true,
        autoIncrement: true,
    },
    userID: {
        type: STRING,
        allowNull: false
    }
}, {
    updatedAt: false,
});

export const blacklistGuild = sequelize.define('blacklist-guilds', {
    id: {
        type: INTEGER,
        primaryKey: true,
        autoIncrement: true,
    },
    guildID: {
        type: STRING,
        allowNull: false
    }
}, {
    updatedAt: false,
});