mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added StreamingCategory
db model
This commit is contained in:
parent
49bf39a61b
commit
135aedd4a3
@ -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")
|
||||
|
@ -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"
|
10
packages/server/src/schemas/streamingCategory/index.js
Normal file
10
packages/server/src/schemas/streamingCategory/index.js
Normal file
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
key: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user