discord-multipurpose-bot/models/warning.js

10 lines
333 B
JavaScript

const mongoose = require("mongoose");
const warningSchema = new mongoose.Schema({
userId: { type: String, required: true },
guildId: { type: String, required: true },
reason: { type: String, required: true },
date: { type: Date, default: Date.now },
});
module.exports = mongoose.model("Warning", warningSchema);