2020-09-02 19:27:53 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": ["name", "province_code", "city_code", "area_code"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "ID,系统自动生成"
|
|
|
|
|
},
|
|
|
|
|
"user_id": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "用户id,参考uni-id-users表"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "收货人",
|
|
|
|
|
"title": "收货人"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"alias": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "别名,例如:家里、公司",
|
|
|
|
|
"title": "别名"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"mobile": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "手机号码,加密存储",
|
|
|
|
|
"title": "手机号"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"mobile_area_code": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "国际区号,中国大陆为 +86",
|
|
|
|
|
"title": "国际区号"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"telephone": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "电话",
|
|
|
|
|
"title": "电话"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"telephone_area_code": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "电话区号",
|
|
|
|
|
"title": "电话区号"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"province_code": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "省级编码",
|
|
|
|
|
"title": "省"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"city_code": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "地级编码",
|
|
|
|
|
"title": "市"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"area_code": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "区级编码",
|
|
|
|
|
"title": "区"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"address": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "详细信息",
|
|
|
|
|
"title": "详细信息"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"formatted_address": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "完整地址信息,避免连表查询"
|
|
|
|
|
},
|
|
|
|
|
"zip_code": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "邮编",
|
|
|
|
|
"title": "邮编"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"email": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "邮箱",
|
|
|
|
|
"title": "邮箱"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"bsonType": "bool",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "是否为默认地址",
|
|
|
|
|
"title": "默认地址"
|
2020-09-02 19:27:53 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": []
|
|
|
|
|
}
|