Files
t-admin/uniCloud-alipay/database/comment.schema.json
T

56 lines
1.0 KiB
JSON

{
"bsonType": "object",
"permission": {
"create": true,
"delete": false,
"read": false,
"update": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"content": {
"bsonType": "string",
"description": "评论内容"
},
"root_id": {
"bsonType": "string",
"description": "根评论ID(盖楼模型)"
},
"author_id": {
"bsonType": "string",
"description": "作者ID,参考uni-id-users表"
},
"parent_id": {
"bsonType": "string",
"description": "父评论ID"
},
"article_id": {
"bsonType": "string",
"description": "文章ID"
},
"like_count": {
"bsonType": "int",
"description": "点赞数"
},
"create_time": {
"bsonType": "timestamp",
"description": "创建时间"
},
"update_time": {
"bsonType": "timestamp",
"description": "更新时间"
},
"reply_count": {
"bsonType": "int",
"description": "回复数"
},
"ip_location": {
"bsonType": "string",
"description": "IP归属地"
}
},
"required": ["content"]
}