@ -5,7 +5,11 @@ 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)