import { Document, Schema, model } from 'mongoose'; export interface Guild extends Document { id: string; prefix: string; premium: boolean; expiresAt: Date; darling?: string; welcome?: string; goodbye?: string; fanart?: string; } const Guild: Schema = new Schema({ id: String, prefix: String, premium: Boolean, expiresAt: Date, darling: { required: false, type: String }, welcome: { required: false, type: String }, goodbye: { required: false, type: String }, fanart: { required: false, type: String } }, { strict: false }); export default model('Guild', Guild);