discord-multipurpose-bot/models/warning.js

11 lines
333 B
JavaScript
Raw Permalink Normal View History

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);