2020-12-10 18:17:05 +08:00
|
|
|
|
{
|
2021-01-16 11:12:00 +08:00
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"permission": {
|
2021-06-24 11:06:50 +08:00
|
|
|
|
"read": false,
|
2021-01-28 22:28:26 +08:00
|
|
|
|
"create": false,
|
|
|
|
|
"update": false,
|
|
|
|
|
"delete": false
|
2021-01-16 11:12:00 +08:00
|
|
|
|
},
|
|
|
|
|
"required": ["username", "mobile"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "存储文档 ID(用户 ID),系统自动生成"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"title": "姓名",
|
|
|
|
|
"description": "姓名",
|
|
|
|
|
"order": 1,
|
|
|
|
|
"trim": "both"
|
|
|
|
|
},
|
|
|
|
|
"gender": {
|
|
|
|
|
"bsonType": "int",
|
|
|
|
|
"title": "性别",
|
|
|
|
|
"description": "用户性别:0 未知 1 男性 2 女性",
|
|
|
|
|
"order": 2,
|
|
|
|
|
"defaultValue": 0,
|
|
|
|
|
"enum": [{
|
|
|
|
|
"text": "未知",
|
|
|
|
|
"value": 0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"text": "男",
|
|
|
|
|
"value": 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"text": "女",
|
|
|
|
|
"value": 2
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"mobile": {
|
|
|
|
|
"bsonType": "string",
|
2021-01-28 22:15:43 +08:00
|
|
|
|
"title": "电话",
|
2021-01-16 11:12:00 +08:00
|
|
|
|
"order": 3,
|
2021-01-28 22:15:43 +08:00
|
|
|
|
"description": "电话",
|
2021-01-16 11:12:00 +08:00
|
|
|
|
"pattern": "^\\+?[0-9-]{3,20}$",
|
|
|
|
|
"trim": "both"
|
|
|
|
|
},
|
|
|
|
|
"email": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"format": "email",
|
|
|
|
|
"title": "邮箱",
|
|
|
|
|
"order": 4,
|
|
|
|
|
"description": "邮箱地址",
|
|
|
|
|
"trim": "both"
|
|
|
|
|
},
|
|
|
|
|
"comment": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"title": "备注",
|
|
|
|
|
"order": 5,
|
|
|
|
|
"description": "备注",
|
|
|
|
|
"trim": "both",
|
|
|
|
|
"component": {
|
|
|
|
|
"name": "textarea"
|
|
|
|
|
}
|
2021-06-24 11:04:31 +08:00
|
|
|
|
},
|
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"forceDefaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
2021-01-16 11:12:00 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": []
|
2020-12-10 18:17:05 +08:00
|
|
|
|
}
|