add collection opendb-airport-china

This commit is contained in:
handongxun 2020-12-31 17:12:13 +08:00
parent 03f29d39a0
commit 0c2bae0c47
3 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,100 @@
{
"schema": {
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"name": {
"bsonType": "string",
"description": "机场名称"
},
"address": {
"bsonType": "string",
"description": "机场完整地址"
},
"location": {
"bsonType": "object",
"description": "机场地理位置经纬度(GeoPoint)"
},
"city_code": {
"bsonType": "string",
"description": "城市编码"
},
"city_name": {
"bsonType": "string",
"description": "城市名称"
},
"iata": {
"bsonType": "string",
"description": "国际航空运输协会(International Air Transport Association)编码"
},
"icao": {
"bsonType": "string",
"description": "国际民用航空组织(International Civil Aviation Organization)编码"
},
"level": {
"bsonType": "string",
"description": "飞行等级"
},
"status": {
"bsonType": "int",
"description": "状态",
"enum": [
{
"value": 0,
"text": "运营中"
},
{
"value": 1,
"text": "规划中"
},
{
"value": 2,
"text": "建设中"
},
{
"value": 3,
"text": "已停航"
}
]
},
"enable_year": {
"bsonType": "int",
"description": "启用年份"
},
"first_letter": {
"bsonType": "string",
"description": "拼音首字母"
}
}
},
"index": [{
"IndexName": "name",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "name",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "first_letter",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "first_letter",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}

File diff suppressed because one or more lines are too long

View File

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