This commit is contained in:
root
2025-08-14 16:15:16 +02:00
commit d2619420ef
27 changed files with 3497 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
const { default: mongoose } = require("mongoose");
const reqString = {
type: String,
required: true,
}
const reqInteger = {
type: Number,
required: true,
}
const cooldownSchema = new mongoose.Schema({
_id: reqString,
command: reqString,
subcommand: reqString,
cooldown: reqInteger
})
module.exports = mongoose.model('cooldowns', cooldownSchema)