added streamingInfo model

This commit is contained in:
srgooglo 2022-10-20 17:48:52 +02:00
parent 1852d0c7c2
commit 86bde32f91
3 changed files with 11 additions and 1 deletions

View File

@ -33,6 +33,7 @@ export const SavedPost = mongoose.model("SavedPost", schemas.SavedPost, "savedPo
// streamings
export const StreamingKey = mongoose.model("StreamingKey", schemas.streamingKey, "streamingKeys")
export const StreamingInfo = mongoose.model("StreamingInfo", schemas.StreamingInfo, "streamingInfos")
// others
export const FeaturedWallpaper = mongoose.model("FeaturedWallpaper", schemas.FeaturedWallpaper, "featuredWallpapers")

View File

@ -14,4 +14,6 @@ export { default as Badge } from "./badge"
export { default as streamingKey } from "./streamingKey"
export { default as FeaturedWallpaper } from "./featuredWallpaper"
export { default as FeaturedEvent } from "./featuredEvent"
export { default as FeaturedEvent } from "./featuredEvent"
export { default as StreamingInfo } from "./streamingInfo"

View File

@ -0,0 +1,7 @@
export default {
user_id: { type: String, required: true },
title: { type: String, default: "Untitled" },
description: { type: String, default: "No description" },
category: { type: String, default: "Other" },
thumbnail: { type: String },
}