parent
f2445d666d
commit
1c27fa6758
@ -0,0 +1,20 @@
|
||||
const { Schema, model } = require('mongoose')
|
||||
|
||||
const streams = new Schema({
|
||||
name: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
event: {
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: 'Event',
|
||||
},
|
||||
matches: [{
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: 'Matches',
|
||||
}],
|
||||
})
|
||||
|
||||
const Stream = model('Streams', streams)
|
||||
|
||||
module.exports = Stream
|
Loading…
Reference in New Issue