mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-28 07:19:40 +08:00
41 lines
966 B
JSON
41 lines
966 B
JSON
{
|
||
"schema": {
|
||
"bsonType": "object",
|
||
"required": ["goods_id", "sku_name", "price", "stock", "create_date", "update_date"],
|
||
"properties": {
|
||
"_id": {
|
||
"description": "存储文档 ID(SKU ID),系统自动生成"
|
||
},
|
||
"goods_id": {
|
||
"bsonType": "string",
|
||
"description": "商品 id,参考 opendb-mall-goods 表"
|
||
},
|
||
"sku_name": {
|
||
"bsonType": "string",
|
||
"description": "SKU名称"
|
||
},
|
||
"price": {
|
||
"bsonType": "int",
|
||
"description": "价格"
|
||
},
|
||
"market_price": {
|
||
"bsonType": "int",
|
||
"description": "市场价"
|
||
},
|
||
"stock": {
|
||
"bsonType": "int",
|
||
"description": "库存"
|
||
},
|
||
"create_date": {
|
||
"bsonType": "timestamp",
|
||
"description": "创建时间"
|
||
},
|
||
"update_date": {
|
||
"bsonType": "timestamp",
|
||
"description": "修改时间"
|
||
}
|
||
}
|
||
},
|
||
"index": []
|
||
}
|