mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
update models
This commit is contained in:
parent
703e133054
commit
9fc04da329
@ -13,10 +13,20 @@ function getSchemas() {
|
|||||||
|
|
||||||
const schemas = getSchemas()
|
const schemas = getSchemas()
|
||||||
|
|
||||||
|
// server
|
||||||
export const Config = mongoose.model("Config", schemas.Config, "config")
|
export const Config = mongoose.model("Config", schemas.Config, "config")
|
||||||
|
|
||||||
|
// users
|
||||||
export const User = mongoose.model("User", schemas.User, "accounts")
|
export const User = mongoose.model("User", schemas.User, "accounts")
|
||||||
|
export const UserFollow = mongoose.model("UserFollow", schemas.UserFollow, "follows")
|
||||||
export const Session = mongoose.model("Session", schemas.Session, "sessions")
|
export const Session = mongoose.model("Session", schemas.Session, "sessions")
|
||||||
export const Role = mongoose.model("Role", schemas.Role, "roles")
|
export const Role = mongoose.model("Role", schemas.Role, "roles")
|
||||||
|
export const Badge = mongoose.model("Badge", schemas.Badge, "badges")
|
||||||
|
|
||||||
|
// posts
|
||||||
export const Post = mongoose.model("Post", schemas.Post, "posts")
|
export const Post = mongoose.model("Post", schemas.Post, "posts")
|
||||||
export const Comment = mongoose.model("Comment", schemas.Comment, "comments")
|
export const Comment = mongoose.model("Comment", schemas.Comment, "comments")
|
||||||
//export const Tag = mongoose.model("Tag", schemas.Tag, "tags")
|
|
||||||
|
// streamings
|
||||||
|
|
||||||
|
// marketplace
|
Loading…
x
Reference in New Issue
Block a user