mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2025-02-28 20:06:24 +00:00
15 lines
471 B
JavaScript
15 lines
471 B
JavaScript
|
const mongoose = require("mongoose");
|
||
|
|
||
|
const quotaUsageSchema = new mongoose.Schema({
|
||
|
guildId: { type: String, required: true, unique: true },
|
||
|
monthYear: {
|
||
|
type: String,
|
||
|
default: () => new Date().toISOString().substr(0, 7),
|
||
|
},
|
||
|
quotaUsed: { type: Number, default: 0 },
|
||
|
quotaLimit: { type: Number, default: 100 }, // Set your desired limit
|
||
|
});
|
||
|
|
||
|
const QuotaUsage = mongoose.model("QuotaUsage", quotaUsageSchema);
|
||
|
module.exports = QuotaUsage;
|