-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.ts
31 lines (27 loc) · 1.08 KB
/
models.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Schema, model } from 'mongoose';
const configSchema = new Schema({
roundId: { type: Number, default: 1 },
rewardItemAmountPerLegitPlayer: { type: Number, default: 0 },
rewardItemAmountMax: { type: Number, default: 0 },
rewardWinnerAmountPerLegitPlayer: { type: Number, default: 0 },
rewardWinnerAmountMax: { type: Number, default: 0 },
rewardItemAmount: { type: Number, default: 0 },
rewardWinnerAmount: { type: Number, default: 0 },
drops: {
guardian: { type: Number, default: 1633043139000 },
earlyAccess: { type: Number, default: 1633043139000 },
trinket: { type: Number, default: 1641251240764 },
santa: { type: Number, default: 1633043139000 },
runeword: { type: Number, default: 1641303263018 },
runeToken: { type: Number, default: 1633043139000 },
},
});
export const Config = model('Config', configSchema);
const unsavedGameSchema = new Schema({
gsid: String,
roundId: Number,
round: Object,
rewardWinnerAmount: Number,
status: { type: Number, default: undefined },
});
export const UnsavedGame = model('UnsavedGame', unsavedGameSchema);