mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added streamingKey
to models
This commit is contained in:
parent
9b44010bc3
commit
f149060dff
@ -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
|
@ -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"
|
10
packages/server/src/schemas/streamingKey/index.js
Normal file
10
packages/server/src/schemas/streamingKey/index.js
Normal file
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
user_id: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
key: {
|
||||
type: String,
|
||||
required: true,
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user