summaryrefslogtreecommitdiff
path: root/src/database/models/Guild.ts
blob: 7ed73d5cc0b3cab99de7e9c42137d4cb84633f69 (plain) (blame)
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);