1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import { Document, Schema, model } from 'mongoose'; export interface Guild extends Document { id: string; prefix: string; premium: boolean; expiresAt: Date; } const Guild: Schema = new Schema( { id: String, prefix: String, premium: Boolean, expiresAt: Date, }, { strict: false, }, ); export default model<Guild>('Guild', Guild);