2022-01-04 02:18:28 +05:00
|
|
|
const mongoose = require("mongoose");
|
|
|
|
|
|
|
|
module.exports = mongoose.model("Member", new mongoose.Schema({
|
2022-08-04 19:26:17 +05:00
|
|
|
id: { type: String },
|
|
|
|
guildID: { type: String },
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2022-08-04 19:26:17 +05:00
|
|
|
money: { type: Number, default: 0 },
|
|
|
|
workStreak: { type: Number, default: 0 },
|
|
|
|
bankSold: { type: Number, default: 0 },
|
|
|
|
exp: { type: Number, default: 0 },
|
|
|
|
level: { type: Number, default: 0 },
|
|
|
|
transactions: { type: Array, default: [] },
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2022-08-04 19:26:17 +05:00
|
|
|
registeredAt: { type: Number, default: Date.now() },
|
2022-01-04 02:18:28 +05:00
|
|
|
|
|
|
|
cooldowns: { type: Object, default: {
|
|
|
|
work: 0,
|
2022-12-15 21:02:38 +05:00
|
|
|
rob: 0,
|
|
|
|
} },
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2022-08-04 19:26:17 +05:00
|
|
|
sanctions: { type: Array, default: [] },
|
|
|
|
mute: { type: Object, default: {
|
2022-01-04 02:18:28 +05:00
|
|
|
muted: false,
|
|
|
|
case: null,
|
2022-12-15 21:02:38 +05:00
|
|
|
endDate: null,
|
|
|
|
} },
|
2022-01-04 02:18:28 +05:00
|
|
|
}));
|