added SyncEntry model

This commit is contained in:
SrGooglo 2023-01-23 23:19:48 +00:00
parent fdd9e382cb
commit 5d9f589b21
3 changed files with 19 additions and 2 deletions

View File

@ -41,4 +41,6 @@ export const StreamingCategory = mongoose.model("StreamingCategory", schemas.Str
// others
export const FeaturedWallpaper = mongoose.model("FeaturedWallpaper", schemas.FeaturedWallpaper, "featuredWallpapers")
export const FeaturedEvent = mongoose.model("FeaturedEvent", schemas.FeaturedEvent, "featuredEvents")
export const FeaturedEvent = mongoose.model("FeaturedEvent", schemas.FeaturedEvent, "featuredEvents")
export const SyncEntry = mongoose.model("SyncEntry", schemas.SyncEntry, "syncEntries")

View File

@ -19,4 +19,5 @@ export { default as FeaturedEvent } from "./featuredEvent"
export { default as StreamingKey } from "./streamingKey"
export { default as StreamingInfo } from "./streamingInfo"
export { default as StreamingCategory } from "./streamingCategory"
export { default as StreamingCategory } from "./streamingCategory"
export { default as SyncEntry } from "./syncEntry"

View File

@ -0,0 +1,14 @@
export default {
user_id: {
type: "string",
required: true,
},
key: {
type: "string",
required: true,
},
value: {
type: "string",
required: true,
}
}