1 |
import { DataTypes, Model } from 'sequelize'; |
2 |
import DiscordClient from '../client/Client'; |
3 |
import { Schema, model, SchemaTypes, Document } from 'mongoose'; |
4 |
|
5 |
export interface IAFK extends Document { |
6 |
user: string; |
7 |
reason?: string; |
8 |
mentions: Array<object>; |
9 |
guild_id: string; |
10 |
createdAt: Date; |
11 |
} |
12 |
|
13 |
const schema = new Schema({ |
14 |
user: { |
15 |
type: String, |
16 |
required: true |
17 |
}, |
18 |
reason: { |
19 |
type: String, |
20 |
required: false |
21 |
}, |
22 |
mentions: Array, |
23 |
guild_id: { |
24 |
type: String, |
25 |
required: true |
26 |
}, |
27 |
createdAt: { |
28 |
type: Date, |
29 |
required: true |
30 |
} |
31 |
}); |
32 |
|
33 |
export default model('AFK', schema); |