1 |
rakinar2 |
577 |
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 |
|
|
ip: { |
26 |
|
|
type: DataTypes.STRING, |
27 |
|
|
allowNull: true, |
28 |
|
|
}, |
29 |
|
|
user_agent: { |
30 |
|
|
type: DataTypes.STRING, |
31 |
|
|
allowNull: true, |
32 |
|
|
}, |
33 |
|
|
}, { |
34 |
|
|
sequelize: DiscordClient.client.db.sequelize, |
35 |
|
|
modelName: 'UnverifiedMember', |
36 |
|
|
tableName: 'unverified_members', |
37 |
|
|
updatedAt: false, |
38 |
|
|
}); |
39 |
|
|
|
40 |
|
|
export default UnverifiedMember; |