update: opendb-contacts

This commit is contained in:
handongxun 2021-01-16 11:12:00 +08:00
parent c9ce5d73e5
commit 72d24288ed

View File

@ -1,69 +1,71 @@
{ {
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"permission": { "permission": {
"read": true, "read": true,
"create": true, "create": true,
"update": true, "update": true,
"delete": true "delete": true
}, },
"required": ["username", "mobile"], "required": ["username", "mobile"],
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID用户 ID系统自动生成" "description": "存储文档 ID用户 ID系统自动生成"
}, },
"username": { "username": {
"bsonType": "string", "bsonType": "string",
"title": "用户名", "title": "姓名",
"description": "用户名,不允许重复", "description": "姓名",
"order":1, "order": 1,
"trim":"both" "trim": "both"
}, },
"gender": { "gender": {
"bsonType": "int", "bsonType": "int",
"title": "性别", "title": "性别",
"description": "用户性别0 未知 1 男性 2 女性", "description": "用户性别0 未知 1 男性 2 女性",
"order":2, "order": 2,
"defaultValue": 0, "defaultValue": 0,
"enum": [{ "enum": [{
"text": "未知", "text": "未知",
"value": 0 "value": 0
}, },
{ {
"text": "男", "text": "男",
"value": 1 "value": 1
}, },
{ {
"text": "女", "text": "女",
"value": 2 "value": 2
} }
] ]
}, },
"mobile": { "mobile": {
"bsonType": "string", "bsonType": "string",
"title": "手机号码", "title": "手机号码",
"order":3, "order": 3,
"description": "手机号码", "description": "手机号码",
"pattern": "^\\+?[0-9-]{3,20}$", "pattern": "^\\+?[0-9-]{3,20}$",
"trim":"both" "trim": "both"
}, },
"email": { "email": {
"bsonType": "string", "bsonType": "string",
"format": "email", "format": "email",
"title": "邮箱", "title": "邮箱",
"order":4, "order": 4,
"description": "邮箱地址", "description": "邮箱地址",
"trim":"both" "trim": "both"
}, },
"comment": { "comment": {
"bsonType": "string", "bsonType": "string",
"title": "备注", "title": "备注",
"order":5, "order": 5,
"description": "备注", "description": "备注",
"trim":"both" "trim": "both",
} "component": {
} "name": "textarea"
}, }
"index": [] }
}
},
"index": []
} }