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

97 lines
1.9 KiB
JSON
Raw 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.

// 文档教程: 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"
}
}
}
}