初始提交
This commit is contained in:
47
uniCloud-aliyun/database/opendb-city-china.schema.json
Normal file
47
uniCloud-aliyun/database/opendb-city-china.schema.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["code", "name"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"code": {
|
||||
"bsonType": "string",
|
||||
"description": "编码"
|
||||
},
|
||||
"parent_code": {
|
||||
"bsonType": "string",
|
||||
"description": "父级编码",
|
||||
"parentKey": "code"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "城市名称",
|
||||
"title": "城市"
|
||||
},
|
||||
"type": {
|
||||
"bsonType": "int",
|
||||
"description": "城市类型;0省,1市,2区"
|
||||
},
|
||||
"first_letter": {
|
||||
"bsonType": "string",
|
||||
"description": "拼音首字母"
|
||||
},
|
||||
"pinyin": {
|
||||
"bsonType": "string",
|
||||
"description": "城市名称的完整汉语拼音,用于拼音检索"
|
||||
},
|
||||
"zip_code": {
|
||||
"bsonType": "string",
|
||||
"description": "邮政编码",
|
||||
"title": "邮编"
|
||||
}
|
||||
},
|
||||
"version": "0.0.1"
|
||||
}
|
||||
Reference in New Issue
Block a user