From ffcb9d248228087ee05c7569784705b41d729aee Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 08:56:47 +0300 Subject: feat: create vote model --- models/votes/vote.model.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 models/votes/vote.model.ts (limited to 'models/votes/vote.model.ts') 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>('Vote', voteSchema); + -- cgit v1.2.3