added streamingKey to models

This commit is contained in:
srgooglo 2022-05-12 10:38:24 +02:00
parent 9b44010bc3
commit f149060dff
3 changed files with 13 additions and 1 deletions

View File

@ -28,5 +28,6 @@ export const Post = mongoose.model("Post", schemas.Post, "posts")
export const Comment = mongoose.model("Comment", schemas.Comment, "comments")
// streamings
export const StreamingKey = mongoose.model("StreamingKey", schemas.streamingKey, "streamingKeys")
// marketplace

View File

@ -6,3 +6,4 @@ 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"

View File

@ -0,0 +1,10 @@
export default {
user_id: {
type: String,
required: true,
},
key: {
type: String,
required: true,
}
}