summaryrefslogtreecommitdiff
path: root/src/services/events/models.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/events/models.js')
-rw-r--r--src/services/events/models.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/services/events/models.js b/src/services/events/models.js
new file mode 100644
index 0000000..99dada1
--- /dev/null
+++ b/src/services/events/models.js
@@ -0,0 +1,16 @@
+const mongoose = require('mongoose');
+const { Client } = require('mongo-cronjob');
+const { getConnection } = require('../../connectDb.js');
+
+const contextSchema = new mongoose.Schema({
+ participants: [String],
+ attendanceId: String,
+ conferenceId: String
+});
+
+const connection = mongoose.connection;
+const client = new Client(connection, contextSchema);
+
+
+module.exports = client;
+