初始提交
This commit is contained in:
105
uniCloud-aliyun/database/CC_WorkloadList.schema.json
Normal file
105
uniCloud-aliyun/database/CC_WorkloadList.schema.json
Normal file
@@ -0,0 +1,105 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"PersonnelName": {
|
||||
"bsonType": "string",
|
||||
"description": "人员名称",
|
||||
"title": "人员名称",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"Role": {
|
||||
"bsonType": "int",
|
||||
"trim": "both",
|
||||
"defaultValue": 0,
|
||||
"description": "角色:0 运营人员 1 运维人员 ",
|
||||
"enum": [{
|
||||
"text": "运营人员",
|
||||
"value": 0
|
||||
}, {
|
||||
"text": "运维人员",
|
||||
"value": 1
|
||||
}],
|
||||
"title": "角色",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"ContactNumber": {
|
||||
"bsonType": "string",
|
||||
"description": "联系电话",
|
||||
"pattern": "^\\+?[0-9-]{3,20}$",
|
||||
"title": "联系电话",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"CompleteWorkOrder": {
|
||||
"bsonType": "int",
|
||||
"description": "完成工单",
|
||||
"title": "完成工单",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
|
||||
},
|
||||
"ConductWorkOrder": {
|
||||
"bsonType": "int",
|
||||
"description": "进行工单",
|
||||
"title": "进行工单",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"RejectWorkOrder": {
|
||||
"bsonType": "int",
|
||||
"description": "拒绝工单",
|
||||
"title": "拒绝工单",
|
||||
"trim": "both",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user