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

118 lines
2.2 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.

{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"WorkOrder_No": {
"bsonType": "string",
"description": "工单编号",
"title": "工单编号",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"Device_No": {
"bsonType": "string",
"description": "设备编号",
"title": "设备编号",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"WorkOrder_type": {
"bsonType": "int",
"defaultValue": 0,
"description": "工单类型0 补货工单 1 投放工单 2 维修工单 3 撤机工单",
"enum": [{
"text": "补货工单",
"value": 0
}, {
"text": "投放工单",
"value": 1
}, {
"text": "维修工单",
"value": 2
}, {
"text": "撤机工单",
"value": 3
}],
"title": "工单类型",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"WorkOrder_mode": {
"bsonType": "int",
"defaultValue": 0,
"description": "工单方式0 自动 1 手动",
"enum": [{
"text": "自动",
"value": 0
}, {
"text": "手动",
"value": 1
}],
"title": "工单方式",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"WorkOrder_state": {
"bsonType": "int",
"defaultValue": 0,
"description": "工单状态0 完成 1 进行 2 取消 3 拒绝",
"enum": [{
"text": "完成",
"value": 0
}, {
"text": "进行",
"value": 1
}, {
"text": "取消",
"value": 2
}, {
"text": "拒绝",
"value": 3
}],
"title": "工单状态",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"Operators": {
"bsonType": "string",
"description": "运维人员",
"title": "运维人员",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"CreationDate": {
"bsonType": "timestamp",
"title": "创建时间",
"description": "创建时间",
"foreDefaultValue ": {
"$env": "now",
"read": "doc._id == auth.uid"
}
}
}
}