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