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

84 lines
1.6 KiB
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.

// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"DeviceNumber": {
"bsonType": "string",
"description": "设备编号",
"title": "设备编号",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"DeviceType": {
"bsonType": "string",
"description": "设备型号",
"title": "设备型号",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"Address": {
"bsonType": "string",
"description": "详细地址",
"title": "详细地址",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"Partner": {
"bsonType": "string",
"description": "合作商",
"title": "合作商",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"DeviceStatus": {
"bsonType": "int",
"defaultValue": 0,
"description": "设备状态0 未投放 1 运营 ",
"enum": [{
"text": "未投放",
"value": 0
}, {
"text": "运营",
"value": 1
}],
"title": "设备状态",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"Operation": {
"bsonType": "string",
"description": "操作",
"title": "操作",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
}
}
}