aboutsummaryrefslogtreecommitdiff
path: root/models/votes/vote.model.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-25 08:56:47 +0300
committereug-vs <eug-vs@keemail.me>2020-06-25 08:56:47 +0300
commitffcb9d248228087ee05c7569784705b41d729aee (patch)
treed753ff19df916a283991b3f9baf668df501cdfff /models/votes/vote.model.ts
parent75e527334e4e9a94b63704f87aa650c75f13891c (diff)
downloadwhich-api-ffcb9d248228087ee05c7569784705b41d729aee.tar.gz
feat: create vote model
Diffstat (limited to 'models/votes/vote.model.ts')
-rw-r--r--models/votes/vote.model.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/votes/vote.model.ts b/models/votes/vote.model.ts
new file mode 100644
index 0000000..1dbb146
--- /dev/null
+++ b/models/votes/vote.model.ts
@@ -0,0 +1,5 @@
+import { Model, model } from 'mongoose';
+import { VoteSchema, voteSchema } from './vote.schema';
+
+export default model<VoteSchema, Model<VoteSchema>>('Vote', voteSchema);
+