23 lines
344 B
JavaScript
23 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,
|
||
|
},
|
||
|
})
|
||
|
);
|