Parent Directory
|
Revision Log
chore: add old version archive branches (2.x to 9.x-dev)
1 | rakinar2 | 577 | import { DataTypes, Model } from 'sequelize'; |
2 | import DiscordClient from '../client/Client'; | ||
3 | |||
4 | class Punishment extends Model {} | ||
5 | |||
6 | Punishment.init({ | ||
7 | id: { | ||
8 | type: DataTypes.INTEGER, | ||
9 | primaryKey: true, | ||
10 | autoIncrement: true, | ||
11 | allowNull: false, | ||
12 | }, | ||
13 | user_id: { | ||
14 | type: DataTypes.STRING, | ||
15 | allowNull: false, | ||
16 | }, | ||
17 | mod_id: { | ||
18 | type: DataTypes.STRING, | ||
19 | allowNull: false, | ||
20 | }, | ||
21 | mod_tag: { | ||
22 | type: DataTypes.STRING, | ||
23 | allowNull: false, | ||
24 | }, | ||
25 | guild_id: { | ||
26 | type: DataTypes.STRING, | ||
27 | allowNull: false, | ||
28 | }, | ||
29 | reason: { | ||
30 | type: DataTypes.TEXT, | ||
31 | allowNull: true | ||
32 | }, | ||
33 | type: { | ||
34 | type: DataTypes.STRING, | ||
35 | allowNull: false | ||
36 | }, | ||
37 | meta: { | ||
38 | type: DataTypes.JSON, | ||
39 | allowNull: false, | ||
40 | defaultValue: {} | ||
41 | }, | ||
42 | }, { | ||
43 | sequelize: DiscordClient.client.db.sequelize, | ||
44 | modelName: 'Punishment', | ||
45 | updatedAt: false, | ||
46 | tableName: 'punishments' | ||
47 | }); | ||
48 | |||
49 | export default Punishment; |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |