opendb/collection/opendb-mall-comments/collection.json

34 lines
824 B
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": ["goods_id", "user_id", "comment_content"],
"properties": {
"_id": {
"description": "存储文档 ID文章 ID系统自动生成"
},
"goods_id": {
"bsonType": "string",
"description": "分类 id参考`opendb-mall-categories`表"
},
"user_id": {
"bsonType": "string",
"description": "商品的唯一货号"
},
"comment_content": {
"bsonType": "string",
"description": "评论内容"
},
"comment_date": {
"bsonType": "timestamp",
"description": "评论发表时间"
},
"comment_ip": {
"bsonType": "string",
"description": "评论发表时 IP 地址"
}
}
},
"data": [],
"index": []
}