aboutsummaryrefslogtreecommitdiff
path: root/lib/log.model.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-02 02:22:38 +0300
committereug-vs <eug-vs@keemail.me>2020-12-02 02:22:38 +0300
commit4186fb51f66043b221237c7ba91ac5a95a4f32b0 (patch)
tree71657f367d899d0fbc165b3c50197d81b8d69007 /lib/log.model.ts
parentf6c5ac6632781d813a6e1f1ba957e7f9e4d70738 (diff)
downloadmongo-cronjob-4186fb51f66043b221237c7ba91ac5a95a4f32b0.tar.gz
feat: add log model
Diffstat (limited to 'lib/log.model.ts')
-rw-r--r--lib/log.model.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/log.model.ts b/lib/log.model.ts
new file mode 100644
index 0000000..7ea9cb9
--- /dev/null
+++ b/lib/log.model.ts
@@ -0,0 +1,8 @@
+import { model, Model } from 'mongoose';
+import schema, { LogDocument } from './log.schema';
+
+const LogModel = model<LogDocument, Model<LogDocument>>('Log', schema);
+
+
+export default LogModel;
+