mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-27 15:01:15 +08:00
add collection uni-id-address
This commit is contained in:
parent
618f7e78a1
commit
89c497bb47
72
collection/uni-id-address/collection.json
Normal file
72
collection/uni-id-address/collection.json
Normal file
@ -0,0 +1,72 @@
|
||||
{
|
||||
"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",
|
||||
"description": "收货人"
|
||||
},
|
||||
"alias": {
|
||||
"bsonType": "string",
|
||||
"description": "别名,例如:家里、公司"
|
||||
},
|
||||
"mobile": {
|
||||
"bsonType": "string",
|
||||
"description": "手机号码,加密存储"
|
||||
},
|
||||
"mobile_area_code": {
|
||||
"bsonType": "string",
|
||||
"description": "手机号码区号"
|
||||
},
|
||||
"telephone": {
|
||||
"bsonType": "string",
|
||||
"description": "电话"
|
||||
},
|
||||
"telephone_area_code": {
|
||||
"bsonType": "string",
|
||||
"description": "电话区号"
|
||||
},
|
||||
"province_code": {
|
||||
"bsonType": "string",
|
||||
"description": "省级编码"
|
||||
},
|
||||
"city_code": {
|
||||
"bsonType": "string",
|
||||
"description": "地级编码"
|
||||
},
|
||||
"area_code": {
|
||||
"bsonType": "string",
|
||||
"description": "区级编码"
|
||||
},
|
||||
"address": {
|
||||
"bsonType": "string",
|
||||
"description": "详细信息"
|
||||
},
|
||||
"formatted_address": {
|
||||
"bsonType": "string",
|
||||
"description": "完整地址信息,避免连表查询"
|
||||
},
|
||||
"zip_code": {
|
||||
"bsonType": "string",
|
||||
"description": "邮编"
|
||||
},
|
||||
"email": {
|
||||
"bsonType": "string",
|
||||
"description": "邮箱"
|
||||
},
|
||||
"default": {
|
||||
"bsonType": "bool",
|
||||
"description": "是否为默认地址"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": []
|
||||
}
|
17
collection/uni-id-address/package.json
Normal file
17
collection/uni-id-address/package.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@opendb/uni-id-address",
|
||||
"version": "0.0.1",
|
||||
"description": "uni-id-address",
|
||||
"keywords": ["地址管理"],
|
||||
"opendb": {
|
||||
"title": "地址管理",
|
||||
"type": "collection",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "DCloud",
|
||||
"email": "",
|
||||
"homepage": "https://gitee.com/dcloud/opendb"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user