mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-21 16:25:55 +00:00
14 lines
502 B
JavaScript
14 lines
502 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const bannedUserSchema = new mongoose.Schema({
|
|
bannedUserId: { type: String, required: true },
|
|
bannedUserTag: { type: String, required: true },
|
|
bannerId: { type: String, required: true },
|
|
bannerTag: { type: String, required: true },
|
|
reason: { type: String, default: "No reason provided" },
|
|
bannedAt: { type: Date, default: Date.now },
|
|
});
|
|
|
|
const BannedUser = mongoose.model("BannedUser", bannedUserSchema);
|
|
|
|
module.exports = BannedUser;
|