97 lines
1.9 KiB
JSON
97 lines
1.9 KiB
JSON
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||
{
|
||
"bsonType": "object",
|
||
"required": [],
|
||
"permission": {
|
||
"read": false,
|
||
"create": false,
|
||
"update": false,
|
||
"delete": false
|
||
},
|
||
"properties": {
|
||
"_id": {
|
||
"description": "ID,系统自动生成"
|
||
},
|
||
"Order_ID": {
|
||
"bsonType": "string",
|
||
"description": "订单编号",
|
||
"title": "订单编号",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"CommodityName": {
|
||
"bsonType": "string",
|
||
"description": "商品名称",
|
||
"title": "商品名称",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"OrderAmount": {
|
||
"bsonType": "int",
|
||
"title": "订单金额:",
|
||
"description": "订单金额",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"DeviceNumber": {
|
||
"bsonType": "string",
|
||
"description": "设备编号",
|
||
"title": "设备编号",
|
||
"trim": "both",
|
||
"foreignKey": "CC_DeviceManage.DeviceNumber",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"OrderStatus": {
|
||
"bsonType": "int",
|
||
"defaultValue": 0,
|
||
"description": "订单状态:0 待支付 1 已完成 2 已取消",
|
||
"enum": [{
|
||
"text": "待支付",
|
||
"value": 0
|
||
}, {
|
||
"text": "已完成",
|
||
"value": 1
|
||
}, {
|
||
"text": "已取消",
|
||
"value": 2
|
||
}],
|
||
"title": "订单状态",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"register_date": {
|
||
"bsonType": "timestamp",
|
||
"description": "订单日期",
|
||
"title": "订单日期",
|
||
"forceDefaultValue": {
|
||
"$env": "now",
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Operation": {
|
||
"bsonType": "string",
|
||
"description": "操作",
|
||
"title": "操作",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
}
|
||
}
|
||
}
|