/[sudobot]/trunk/src/models/MuteRecord.ts
ViewVC logotype

Annotation of /trunk/src/models/MuteRecord.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 227 - (hide annotations)
Mon Jul 29 17:29:07 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 567 byte(s)
feat(automod): auto mute on rejoin (#40)
1 rakin 227 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