added StreamingCategory db model

This commit is contained in:
SrGooglo 2022-11-28 16:17:45 +00:00 committed by root
parent e9b39ea63b
commit 3921b067be
3 changed files with 13 additions and 1 deletions

View File

@ -37,6 +37,7 @@ export const Playlist = mongoose.model("Playlist", schemas.Playlist, "playlists"
// streamings
export const StreamingKey = mongoose.model("StreamingKey", schemas.StreamingKey, "streamingKeys")
export const StreamingInfo = mongoose.model("StreamingInfo", schemas.StreamingInfo, "streamingInfos")
export const StreamingCategory = mongoose.model("StreamingCategory", schemas.StreamingCategory, "streamingCategories")
// others
export const FeaturedWallpaper = mongoose.model("FeaturedWallpaper", schemas.FeaturedWallpaper, "featuredWallpapers")

View File

@ -18,4 +18,5 @@ export { default as FeaturedWallpaper } from "./featuredWallpaper"
export { default as FeaturedEvent } from "./featuredEvent"
export { default as StreamingKey } from "./streamingKey"
export { default as StreamingInfo } from "./streamingInfo"
export { default as StreamingInfo } from "./streamingInfo"
export { default as StreamingCategory } from "./streamingCategory"

View File

@ -0,0 +1,10 @@
export default {
key: {
type: String,
required: true,
},
label: {
type: String,
required: true,
},
}