Files
mht.js/uniCloud-aliyun/database/CommodityOrder.schema.json
2025-10-22 07:50:31 +08:00

50 lines
918 B
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"bsonType": "object",
"required": ["Order_ID", "CommodityImg", "CommodityName", "CommodityPrice", "OrderStatus"],
"permission": {
"read": true,
"create": "auth.uid != null",
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"ID": {
"bsonType": "string",
"title": "id"
},
"User_id": {
"bsonType": "string",
"forceDefaultValue":{
"$env": "uid"
}
},
"Order_ID": {
"bsonType": "string",
"title": "订单号:"
},
"CommodityName": {
"bsonType": "string",
"title": "商品名称:"
},
"CommodityPrice": {
"bsonType": "int",
"title": "商品价格:"
},
"CommodityImg": {
"bsonType": "string",
"title": "商品图:"
},
"OrderStatus": {
"bsonType": "string",
"title": "商品状态:"
},
"CommodityID": {
"bsonType": "int",
"title": "商品id"
}
}
}