22 lines
344 B
JavaScript
22 lines
344 B
JavaScript
const { Schema, model } = require("mongoose");
|
|
module.exports = model(
|
|
"cooldown",
|
|
new Schema({
|
|
User: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
CMD: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
Time: {
|
|
type: Number,
|
|
default: 0,
|
|
},
|
|
Cooldown: {
|
|
type: Number,
|
|
default: 0,
|
|
},
|
|
})
|
|
);
|