mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added streamingInfo
model
This commit is contained in:
parent
1852d0c7c2
commit
86bde32f91
@ -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")
|
||||
|
@ -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"
|
7
packages/server/src/schemas/streamingInfo/index.js
Normal file
7
packages/server/src/schemas/streamingInfo/index.js
Normal 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 },
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user