opendb/collection/uni-id-address/collection.json

82 lines
2.1 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.

{
"schema": {
"bsonType": "object",
"required": ["name", "mobile", "area_code", "address"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表"
},
"name": {
"bsonType": "string",
"description": "收货人",
"title": "收货人"
},
"alias": {
"bsonType": "string",
"description": "别名,例如:家、公司、学校",
"title": "别名"
},
"mobile": {
"bsonType": "string",
"description": "手机号码,加密存储",
"title": "手机号"
},
"mobile_area_code": {
"bsonType": "string",
"description": "国际区号,中国大陆为 +86",
"title": "国际区号"
},
"province_code": {
"bsonType": "string",
"description": "省级编码,冗余存储",
"title": "省"
},
"city_code": {
"bsonType": "string",
"description": "地级编码,冗余存储",
"title": "市"
},
"area_code": {
"bsonType": "string",
"description": "区级编码",
"title": "地址",
"enumType": "tree",
"enum": {
"collection": "opendb-city-china",
"orderby": "value asc",
"field": "code as value, name as text"
}
},
"address": {
"bsonType": "string",
"description": "省市区后面的详细住址,包含街道小区房间号",
"title": "详细住址"
},
"formatted_address": {
"bsonType": "string",
"description": "完整地址信息,包括省市区及街道小区房间号"
},
"zip_code": {
"bsonType": "string",
"description": "邮编",
"title": "邮编"
},
"email": {
"bsonType": "string",
"description": "邮箱",
"title": "邮箱"
},
"default": {
"bsonType": "bool",
"description": "是否为默认地址",
"title": "默认地址"
}
}
},
"index": []
}