mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-01 16:23:02 +05:00
36 lines
687 B
JavaScript
36 lines
687 B
JavaScript
import { model, Schema } from "mongoose";
|
|
|
|
export default model(
|
|
"Member",
|
|
new Schema({
|
|
id: { type: String },
|
|
guildID: { type: String },
|
|
|
|
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: [] },
|
|
|
|
registeredAt: { type: Number, default: Date.now() },
|
|
|
|
cooldowns: {
|
|
type: Object,
|
|
default: {
|
|
work: 0,
|
|
rob: 0,
|
|
},
|
|
},
|
|
|
|
sanctions: { type: Array, default: [] },
|
|
mute: {
|
|
type: Object,
|
|
default: {
|
|
muted: false,
|
|
case: null,
|
|
endDate: null,
|
|
},
|
|
},
|
|
}),
|
|
);
|