|
|
|
@ -9,18 +9,18 @@ const streams = new Schema({
|
|
|
|
|
type: Schema.Types.ObjectId,
|
|
|
|
|
ref: 'Event',
|
|
|
|
|
},
|
|
|
|
|
matches: {
|
|
|
|
|
type: [Schema.Types.ObjectId],
|
|
|
|
|
matches: [{
|
|
|
|
|
type: Schema.Types.ObjectId,
|
|
|
|
|
ref: 'Matches',
|
|
|
|
|
},
|
|
|
|
|
casters: {
|
|
|
|
|
type: [Schema.Types.ObjectId],
|
|
|
|
|
}],
|
|
|
|
|
casters: [{
|
|
|
|
|
type: Schema.Types.ObjectId,
|
|
|
|
|
ref: 'Casters',
|
|
|
|
|
},
|
|
|
|
|
hosts: {
|
|
|
|
|
type: [Schema.Types.ObjectId],
|
|
|
|
|
}],
|
|
|
|
|
hosts: [{
|
|
|
|
|
type: Schema.Types.ObjectId,
|
|
|
|
|
ref: 'Hosts',
|
|
|
|
|
},
|
|
|
|
|
}],
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const Stream = model('Streams', streams)
|
|
|
|
|