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