diff options
| author | 8cy <[email protected]> | 2020-07-19 04:36:14 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-19 04:36:14 -0700 |
| commit | f00bcd79995bc8d7af3f297cab8085fd28b89435 (patch) | |
| tree | 9a4ddd1f0a945b1f20d98c20e621c0d8a69bb8ad /src/database/models/Guild.ts | |
| download | water-waifu-re-f00bcd79995bc8d7af3f297cab8085fd28b89435.tar.xz water-waifu-re-f00bcd79995bc8d7af3f297cab8085fd28b89435.zip | |
:star:
Diffstat (limited to 'src/database/models/Guild.ts')
| -rw-r--r-- | src/database/models/Guild.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/database/models/Guild.ts b/src/database/models/Guild.ts new file mode 100644 index 0000000..7ed73d5 --- /dev/null +++ b/src/database/models/Guild.ts @@ -0,0 +1,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); |