mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-27 15:01:15 +08:00
34 lines
821 B
JSON
34 lines
821 B
JSON
{
|
||
"schema": {
|
||
"bsonType": "object",
|
||
"required": ["goods_id", "user_id", "comment_content"],
|
||
"properties": {
|
||
"_id": {
|
||
"description": "存储文档 ID(文章 ID),系统自动生成"
|
||
},
|
||
"goods_id": {
|
||
"bsonType": "string",
|
||
"description": "分类 id,参考`uni-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": []
|
||
}
|