mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-28 11:45: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;
|