mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added Playlist
db model
This commit is contained in:
parent
502585cd65
commit
2b106771d3
@ -31,6 +31,9 @@ export const Post = mongoose.model("Post", schemas.Post, "posts")
|
||||
export const Comment = mongoose.model("Comment", schemas.Comment, "comments")
|
||||
export const SavedPost = mongoose.model("SavedPost", schemas.SavedPost, "savedPosts")
|
||||
|
||||
// playlists
|
||||
export const Playlist = mongoose.model("Playlist", schemas.Playlist, "playlists")
|
||||
|
||||
// streamings
|
||||
export const StreamingKey = mongoose.model("StreamingKey", schemas.StreamingKey, "streamingKeys")
|
||||
export const StreamingInfo = mongoose.model("StreamingInfo", schemas.StreamingInfo, "streamingInfos")
|
||||
|
@ -9,6 +9,8 @@ export { default as Post } from "./post"
|
||||
export { default as Comment } from "./comment"
|
||||
export { default as SavedPost } from "./savedPost"
|
||||
|
||||
export { default as Playlist } from "./playlist"
|
||||
|
||||
export { default as UserFollow } from "./userFollow"
|
||||
export { default as Badge } from "./badge"
|
||||
|
||||
|
8
packages/server/src/schemas/playlist/index.js
Normal file
8
packages/server/src/schemas/playlist/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
user_id: { type: String, required: true },
|
||||
created_at: { type: Date, default: Date.now, required: true },
|
||||
title: { type: String, required: true },
|
||||
description: { type: String },
|
||||
thumbnail: { type: String },
|
||||
list: { type: Object, default: [], required: true },
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user