JaBa/base/Member.js

37 lines
687 B
JavaScript
Raw Normal View History

2024-12-05 20:15:07 +05:00
import { model, Schema } from "mongoose";
2022-01-04 02:18:28 +05:00
2024-12-05 20:15:07 +05:00
export default model(
"Member",
new Schema({
id: { type: String },
guildID: { type: String },
2022-01-04 02:18:28 +05:00
2024-12-05 20:15:07 +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
2024-12-05 20:15:07 +05:00
registeredAt: { type: Number, default: Date.now() },
2022-01-04 02:18:28 +05:00
2024-12-05 20:15:07 +05:00
cooldowns: {
type: Object,
default: {
work: 0,
rob: 0,
},
2023-07-05 00:58:06 +05:00
},
2022-01-04 02:18:28 +05:00
2024-12-05 20:15:07 +05:00
sanctions: { type: Array, default: [] },
mute: {
type: Object,
default: {
muted: false,
case: null,
endDate: null,
},
2023-07-05 00:58:06 +05:00
},
2024-12-05 20:15:07 +05:00
}),
);