diff --git a/src/models/events.js b/src/models/events.js index a51457c..bcec7e3 100644 --- a/src/models/events.js +++ b/src/models/events.js @@ -5,9 +5,13 @@ const events = new mongoose.Schema({ type: String, required: true, unique: true, - } + }, + streams: [{ + type: mongoose.Schema.Types.ObjectId, + ref: 'Streams', + }] }); const Event = mongoose.model('Event', events) -module.exports = Event \ No newline at end of file +module.exports = Event