You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apl-nuke/src/models/streams.js

22 lines
381 B
JavaScript

const { Schema, model } = require('mongoose')
const streams = new Schema({
name: {
type: String,
required: true,
},
event: {
type: Schema.Types.ObjectId,
refs: 'Events',
requried: true,
},
matches: {
type: [Schema.Types.ObjectId],
refs: 'matches',
requried: true,
},
})
const Stream = model('Streams', streams)
module.exports = Stream