aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Guild.ts
diff options
context:
space:
mode:
authorTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-05-11 22:22:19 -0600
committerTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-05-11 22:22:19 -0600
commit42d8e605b497c98ed7a4b7e6f31fa1cc6d56e38a (patch)
tree33f7a7dd83960fce281c3f7f028c76baea019f86 /src/lib/models/Guild.ts
parent35389d9e41d4a5ddf66fdf64210a334a56281f41 (diff)
downloadtanzanite-42d8e605b497c98ed7a4b7e6f31fa1cc6d56e38a.tar.gz
tanzanite-42d8e605b497c98ed7a4b7e6f31fa1cc6d56e38a.tar.bz2
tanzanite-42d8e605b497c98ed7a4b7e6f31fa1cc6d56e38a.zip
re-organize models
Diffstat (limited to 'src/lib/models/Guild.ts')
-rw-r--r--src/lib/models/Guild.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/models/Guild.ts b/src/lib/models/Guild.ts
new file mode 100644
index 0000000..3e6c6bf
--- /dev/null
+++ b/src/lib/models/Guild.ts
@@ -0,0 +1,15 @@
+import { Optional } from 'sequelize';
+import { BaseModel } from './BaseModel';
+
+export interface GuildModel {
+ id: string;
+ prefix: string;
+}
+export type GuildModelCreationAttributes = Optional<GuildModel, 'prefix'>;
+
+export class Guild
+ extends BaseModel<GuildModel, GuildModelCreationAttributes>
+ implements GuildModel {
+ id: string;
+ prefix: string;
+}