added FeaturedEvent model

This commit is contained in:
srgooglo 2022-10-20 11:53:54 +02:00
parent 06473b2cd1
commit a6adba5f9e
3 changed files with 12 additions and 3 deletions

View File

@ -36,5 +36,4 @@ export const StreamingKey = mongoose.model("StreamingKey", schemas.streamingKey,
// others
export const FeaturedWallpaper = mongoose.model("FeaturedWallpaper", schemas.FeaturedWallpaper, "featuredWallpapers")
// marketplace
export const FeaturedEvent = mongoose.model("FeaturedEvent", schemas.FeaturedEvent, "featuredEvents")

View File

@ -0,0 +1,8 @@
export default {
name: { type: String, required: true },
category: { type: String },
description: { type: String },
dates: { type: Object },
location: { type: String },
announcement: { type: Object, required: true },
}

View File

@ -12,4 +12,6 @@ export { default as SavedPost } from "./savedPost"
export { default as UserFollow } from "./userFollow"
export { default as Badge } from "./badge"
export { default as streamingKey } from "./streamingKey"
export { default as FeaturedWallpaper } from "./featuredWallpaper"
export { default as FeaturedWallpaper } from "./featuredWallpaper"
export { default as FeaturedEvent } from "./featuredEvent"