added featuredWallpaper model

This commit is contained in:
srgooglo 2022-09-07 15:18:42 +02:00
parent 80aae3b17b
commit e39225b338
3 changed files with 9 additions and 1 deletions

View File

@ -30,4 +30,7 @@ export const Comment = mongoose.model("Comment", schemas.Comment, "comments")
// streamings
export const StreamingKey = mongoose.model("StreamingKey", schemas.streamingKey, "streamingKeys")
// others
export const FeaturedWallpaper = mongoose.model("FeaturedWallpaper", schemas.FeaturedWallpaper, "featuredWallpapers")
// marketplace

View File

@ -0,0 +1,4 @@
export default {
date: { type: Date, default: Date.now },
url: { type: String, required: true },
}

View File

@ -6,4 +6,5 @@ export { default as Post } from "./post"
export { default as Comment } from "./comment"
export { default as UserFollow } from "./userFollow"
export { default as Badge } from "./badge"
export { default as streamingKey } from "./streamingKey"
export { default as streamingKey } from "./streamingKey"
export { default as FeaturedWallpaper } from "./featuredWallpaper"