opendb/collection/opendb-news-articles/collection.json

90 lines
2.4 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": ["user_id", "title", "content", "article_status", "view_count", "like_count", "is_sticky", "is_essence", "comment_status", "comment_count"],
"properties": {
"_id": {
"description": "存储文档 ID用户 ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "文章作者ID 参考`uni-id-users` 表"
},
"category_id": {
"bsonType": "string",
"description": "分类 id参考`uni-news-categories`表"
},
"title": {
"bsonType": "string",
"description": "标题"
},
"content": {
"bsonType": "string",
"description": "文章内容"
},
"excerpt": {
"bsonType": "string",
"description": "文章摘录"
},
"article_status": {
"bsonType": "int",
"minimum": 0,
"maximum": 1,
"description": "文章状态0 草稿箱 1 已发布"
},
"view_count": {
"bsonType": "int",
"description": "阅读数量"
},
"like_count": {
"bsonType": "int",
"description": "喜欢数、点赞数"
},
"is_sticky": {
"bsonType": "bool",
"description": "是否置顶"
},
"is_essence": {
"bsonType": "bool",
"description": "阅读加精"
},
"comment_status": {
"bsonType": "int",
"minimum": 0,
"maximum": 1,
"description": "评论状态0 关闭 1 开放"
},
"comment_count": {
"bsonType": "int",
"description": "评论数量"
},
"last_comment_user_id": {
"bsonType": "string",
"description": "最后回复用户 id参考`uni-id-users` 表"
},
"avatar": {
"bsonType": "string",
"description": "缩略图地址"
},
"publish_date": {
"bsonType": "timestamp",
"description": "发表时间"
},
"publish_ip": {
"bsonType": "string",
"description": "发表时 IP 地址"
},
"last_modify_date": {
"bsonType": "timestamp",
"description": "最后修改时间"
},
"last_modify_ip": {
"bsonType": "string",
"description": "最后修改时 IP 地址"
}
}
},
"data": [],
"index": []
}