|
|
@ -1,6 +1,6 @@
|
|
|
|
const { Schema, model } = require('mongoose')
|
|
|
|
const { Schema, model } = require('mongoose')
|
|
|
|
|
|
|
|
|
|
|
|
const streams = new Schema({
|
|
|
|
const brackets = new Schema({
|
|
|
|
name: {
|
|
|
|
name: {
|
|
|
|
type: String,
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
@ -15,6 +15,6 @@ const streams = new Schema({
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const Stream = model('Streams', streams)
|
|
|
|
const Bracket = model('Brackets', brackets)
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = Stream
|
|
|
|
module.exports = Bracket
|