@ -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