Created playlist queue schema.
This commit is contained in:
parent
8a273d8055
commit
cb09c139c7
6 changed files with 43 additions and 5 deletions
|
|
@ -30,6 +30,7 @@ const emoteModel = require('../emoteSchema');
|
|||
const channelPermissionSchema = require('./channelPermissionSchema');
|
||||
const channelBanSchema = require('./channelBanSchema');
|
||||
const queuedMediaSchema = require('./media/queuedMediaSchema');
|
||||
const playlistSchema = require('./media/playlistSchema');
|
||||
//Utils
|
||||
const { exceptionHandler, errorHandler } = require('../../utils/loggerUtils');
|
||||
|
||||
|
|
@ -102,7 +103,9 @@ const channelSchema = new mongoose.Schema({
|
|||
media: {
|
||||
nowPlaying: queuedMediaSchema,
|
||||
scheduled: [queuedMediaSchema],
|
||||
//We should consider moving archived media and channel playlists to their own collections/models for preformance sake
|
||||
archived: [queuedMediaSchema],
|
||||
playlists: [playlistSchema]
|
||||
},
|
||||
//Thankfully we don't have to keep track of alts, ips, or deleted users so this should be a lot easier than site-wide bans :P
|
||||
banList: [channelBanSchema]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue