add collection opendb-china-cities

This commit is contained in:
handongxun 2020-12-18 19:38:14 +08:00
parent 30d94e5b58
commit c1bdb66baf
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{
"schema": {
"bsonType": "object",
"required": ["code", "name"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"code": {
"bsonType": "string",
"description": "编码",
"parentKey": "parent_code"
},
"name": {
"bsonType": "string",
"description": "名称"
},
"parent_code": {
"bsonType": "string",
"description": "父级编码"
}
}
},
"index": []
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-china-cities",
"version": "0.0.1",
"description": "opendb-china-cities",
"keywords": ["中国城市省市区", "省", "市", "区"],
"opendb": {
"title": "中国城市省市区",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}