3 |
export interface IQueuedJob extends Document { |
export interface IQueuedJob extends Document { |
4 |
uuid: string; |
uuid: string; |
5 |
data?: { [key: string | number]: any }; |
data?: { [key: string | number]: any }; |
6 |
runOn: number; |
runOn: Date; |
7 |
createdAt: Date; |
createdAt: Date; |
8 |
|
guild?: string; |
9 |
} |
} |
10 |
|
|
11 |
const schema = new mongoose.Schema({ |
const schema = new mongoose.Schema({ |
16 |
}, |
}, |
17 |
data: mongoose.Schema.Types.Mixed, |
data: mongoose.Schema.Types.Mixed, |
18 |
runOn: { |
runOn: { |
19 |
type: Number, |
type: Date, |
20 |
required: true |
required: true |
21 |
}, |
}, |
22 |
createdAt: { |
createdAt: { |
26 |
className: { |
className: { |
27 |
type: String, |
type: String, |
28 |
required: true |
required: true |
29 |
} |
}, |
30 |
|
guild: String |
31 |
}); |
}); |
32 |
|
|
33 |
export default mongoose.model('QueuedJob', schema); |
export default mongoose.model('QueuedJob', schema); |