summaryrefslogtreecommitdiff
path: root/server/src/database/models/ReactionGuildModel.ts
blob: 6389b56b80a87e6b842c4d0cf4f3cbc8a6de1e38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);