opendb/collection/uni-news-comments/collection.json

50 lines
1.4 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": ["article_id", "user_id", "comment_content", "like_count", "comment_type", "reply_user_id", "reply_comment_id"],
"properties": {
"_id": {
"description": "存储文档 ID文章 ID系统自动生成"
},
"article_id": {
"bsonType": "string",
"description": "文章IDuni-news-posts 表中的`_id`字段"
},
"user_id": {
"bsonType": "string",
"description": "评论者ID参考`uni-id-users` 表"
},
"comment_content": {
"bsonType": "string",
"description": "评论内容"
},
"like_count": {
"bsonType": "int",
"description": "评论喜欢数、点赞数"
},
"comment_type": {
"bsonType": "int",
"description": "回复类型: 0 针对文章的回复 1 针对评论的回复"
},
"reply_user_id": {
"bsonType": "string",
"description": "被回复的评论用户IDcomment_type为1时有效"
},
"reply_comment_id": {
"bsonType": "string",
"description": "被回复的评论IDcomment_type为1时有效"
},
"comment_date": {
"bsonType": "timestamp",
"description": "评论发表时间"
},
"comment_ip": {
"bsonType": "string",
"description": "评论发表时 IP 地址"
}
}
},
"data": [],
"index": []
}