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