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

97 lines
2.1 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": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"PersonnelName": {
"bsonType": "string",
"description": "人员名称",
"title": "人员名称",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"BelongingArea": {
"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"
}
},
"HeadPortrait": {
"bsonType": "file",
"description": "头像",
"title": "头像",
"trim": "both",
"fileMediaType": "image", // 可选值 all|image|video 默认值为all,表示所有文件image表示图片类型文件video表示视频类型文件
"fileExtName": "jpg,png", // 扩展名过滤,多个用 , 分割
"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"
}
}
}
}