JaBa/base/Member.js
JonnyBro 5f4c53b072 Перенесена категория General
Удалён мусор и ненужные комментарии
2022-08-04 19:26:17 +05:00

27 lines
No EOL
648 B
JavaScript

const mongoose = require("mongoose");
module.exports = mongoose.model("Member", new mongoose.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
}},
}));