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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (hide annotations)
Mon Jul 29 17:28:42 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 718 byte(s)
Added verification system
1 rakin 127 import { DataTypes, Model } from 'sequelize';
2     import DiscordClient from '../client/Client';
3    
4     class UnverifiedMember extends Model {}
5    
6     UnverifiedMember.init({
7     id: {
8     type: DataTypes.INTEGER,
9     autoIncrement: true,
10     primaryKey: true,
11     },
12     user_id: {
13     type: DataTypes.STRING,
14     allowNull: true
15     },
16     guild_id: {
17     type: DataTypes.STRING,
18     allowNull: false
19     },
20     status: {
21     type: DataTypes.STRING,
22     allowNull: false,
23     defaultValue: 'pending'
24     },
25     }, {
26     sequelize: DiscordClient.client.db.sequelize,
27     modelName: 'UnverifiedMember',
28     tableName: 'unverified_members',
29     updatedAt: false,
30     });
31    
32     export default UnverifiedMember;

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26