discord-multipurpose-bot/models/ServerSettings.js

14 lines
548 B
JavaScript
Raw Normal View History

const mongoose = require("mongoose");
const ServerSettingsSchema = new mongoose.Schema({
guildId: { type: String, required: true, unique: true },
logChannelId: { type: String, required: true },
verifiedRoleName: { type: String, required: true },
verificationChannelId: { type: String, required: true },
generalChannelId: { type: String, required: true },
emailDomains: { type: [String], required: true },
});
const ServerSettings = mongoose.model("ServerSettings", ServerSettingsSchema);
module.exports = ServerSettings;