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 MuteRecord extends Model {} | ||
5 | |||
6 | MuteRecord.init({ | ||
7 | id: { | ||
8 | type: DataTypes.INTEGER, | ||
9 | autoIncrement: true, | ||
10 | primaryKey: true, | ||
11 | }, | ||
12 | user_id: { | ||
13 | type: DataTypes.STRING, | ||
14 | allowNull: false, | ||
15 | unique: true | ||
16 | }, | ||
17 | guild_id: { | ||
18 | type: DataTypes.STRING, | ||
19 | allowNull: false | ||
20 | } | ||
21 | }, { | ||
22 | sequelize: DiscordClient.client.db.sequelize, | ||
23 | modelName: 'MuteRecord', | ||
24 | updatedAt: false | ||
25 | }); | ||
26 | |||
27 | export default MuteRecord; |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |