mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-25 02:05:56 +00:00
10 lines
333 B
JavaScript
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);
|