1 |
import { BuildOptions, DataTypes, Model, Optional } from 'sequelize'; |
2 |
import DiscordClient from '../client/Client'; |
3 |
|
4 |
class PunishmentAppeal extends Model { |
5 |
|
6 |
} |
7 |
|
8 |
PunishmentAppeal.init({ |
9 |
id: { |
10 |
type: DataTypes.INTEGER, |
11 |
primaryKey: true, |
12 |
autoIncrement: true, |
13 |
allowNull: false, |
14 |
}, |
15 |
user_id: { |
16 |
type: DataTypes.STRING, |
17 |
allowNull: false, |
18 |
}, |
19 |
guild_id: { |
20 |
type: DataTypes.STRING, |
21 |
allowNull: false, |
22 |
}, |
23 |
content: { |
24 |
type: DataTypes.TEXT, |
25 |
allowNull: false |
26 |
} |
27 |
}, { |
28 |
sequelize: DiscordClient.client.db.sequelize, |
29 |
modelName: 'PunishmentAppeal', |
30 |
updatedAt: false, |
31 |
tableName: 'appeals' |
32 |
}); |
33 |
|
34 |
export default PunishmentAppeal; |