94 lines
1.9 KiB
JSON
94 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,系统自动生成"
|
||
},
|
||
"DeviceNumber": {
|
||
"bsonType": "string",
|
||
"description": "设备编号",
|
||
"title": "设备编号",
|
||
"trim": "both",
|
||
"foreignKey": "CC_DeviceManage.DeviceNumber",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"DeviceType": {
|
||
"bsonType": "string",
|
||
"description": "设备型号",
|
||
"title": "设备型号",
|
||
"trim": "both",
|
||
"foreignKey": "CC_DeviceManage.DeviceType",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Address": {
|
||
"bsonType": "string",
|
||
"description": "详细地址",
|
||
"title": "详细地址",
|
||
"trim": "both",
|
||
"foreignKey": "CC_DeviceManage.Address",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"OperationState": {
|
||
"bsonType": "string",
|
||
"description": "运营状态",
|
||
"title": "运营状态",
|
||
"foreignKey": "CC_DeviceManage.DeviceStatus",
|
||
"enum": [{
|
||
"text": "未投放",
|
||
"value": 0
|
||
}, {
|
||
"text": "运营",
|
||
"value": 1
|
||
}],
|
||
"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"
|
||
}
|
||
}
|
||
}
|
||
}
|