diff options
Diffstat (limited to 'src/services/events/event.schema.js')
-rw-r--r-- | src/services/events/event.schema.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/services/events/event.schema.js b/src/services/events/event.schema.js new file mode 100644 index 0000000..0bbb978 --- /dev/null +++ b/src/services/events/event.schema.js @@ -0,0 +1,26 @@ +const { Schema, Types } = require('mongoose'); + +module.exports = new Schema({ + name: { + type: String, + required: true, + unique: true + }, + schedule: { + type: String, + required: true + }, + participants: { + type: [String], + default: [] + }, + status: { + type: String, + default: 'notStarted' + }, + conferenceId: String, + attendanceId: String, + nextRunAt: Date, + lastRunAt: Date +}, { timestamps: true }); + |