aboutsummaryrefslogtreecommitdiff
path: root/lib/log.model.ts
diff options
context:
space:
mode:
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;
+