/[sudobot]/branches/2.x/src/models/MuteRecord.ts
ViewVC logotype

Annotation of /branches/2.x/src/models/MuteRecord.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (hide annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 567 byte(s)
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