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 Timeout extends Model {} | ||
5 | |||
6 | Timeout.init({ | ||
7 | // Model attributes are defined here | ||
8 | id: { | ||
9 | type: DataTypes.INTEGER, | ||
10 | autoIncrement: true, | ||
11 | primaryKey: true, | ||
12 | }, | ||
13 | time: { | ||
14 | type: DataTypes.STRING, | ||
15 | allowNull: false | ||
16 | }, | ||
17 | filePath: { | ||
18 | type: DataTypes.STRING, | ||
19 | allowNull: false | ||
20 | }, | ||
21 | params: { | ||
22 | type: DataTypes.STRING, | ||
23 | allowNull: false | ||
24 | }, | ||
25 | guild_id: { | ||
26 | type: DataTypes.STRING, | ||
27 | allowNull: false | ||
28 | }, | ||
29 | cmd: { | ||
30 | type: DataTypes.STRING, | ||
31 | allowNull: false, | ||
32 | } | ||
33 | }, { | ||
34 | sequelize: DiscordClient.client.db.sequelize, | ||
35 | modelName: 'Timeout', | ||
36 | createdAt: 'created_at', | ||
37 | updatedAt: false | ||
38 | }); | ||
39 | |||
40 | export default Timeout; |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |