aboutsummaryrefslogtreecommitdiff
path: root/lib/log.schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.schema.ts')
-rw-r--r--lib/log.schema.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/log.schema.ts b/lib/log.schema.ts
new file mode 100644
index 0000000..3c55de7
--- /dev/null
+++ b/lib/log.schema.ts
@@ -0,0 +1,15 @@
+import { Schema, Types, Document } from 'mongoose';
+
+export interface LogDocument extends Document {
+ eventId: string;
+ message: string;
+}
+
+const schema = new Schema({
+ eventId: Types.ObjectId,
+ message: String
+}, { timestamps: true });
+
+
+export default schema;
+