add collection opendb-nation-china

This commit is contained in:
handongxun 2020-12-31 11:58:04 +08:00
parent 3f164deac4
commit 591c606847
3 changed files with 358 additions and 0 deletions

View File

@ -0,0 +1,60 @@
{
"schema": {
"bsonType": "object",
"required": ["name"],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"name": {
"bsonType": "string",
"description": "民族名称"
},
"sort": {
"bsonType": "string",
"description": "排序"
},
"letter": {
"bsonType": "string",
"description": "拼音首字母"
}
}
},
"index": [{
"IndexName": "name",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "name",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "sort",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "sort",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "letter",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "letter",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}

View File

@ -0,0 +1,281 @@
[{
"sort": 01,
"name": "汉族",
"letter": "H"
},
{
"sort": 02,
"name": "蒙古族",
"letter": "M"
},
{
"sort": 03,
"name": "回族",
"letter": "H"
},
{
"sort": 04,
"name": "藏族",
"letter": "Z"
},
{
"sort": 05,
"name": "维吾尔族",
"letter": "W"
},
{
"sort": 06,
"name": "苗族",
"letter": "M"
},
{
"sort": 07,
"name": "彝族",
"letter": "Y"
},
{
"sort": 08,
"name": "壮族",
"letter": "Z"
},
{
"sort": 09,
"name": "布依族",
"letter": "B"
},
{
"sort": 10,
"name": "朝鲜族",
"letter": "C"
},
{
"sort": 11,
"name": "满族",
"letter": "M"
},
{
"sort": 12,
"name": "侗族",
"letter": "D"
},
{
"sort": 13,
"name": "瑶族",
"letter": "Y"
},
{
"sort": 14,
"name": "白族",
"letter": "B"
},
{
"sort": 15,
"name": "土家族",
"letter": "T"
},
{
"sort": 16,
"name": "哈尼族",
"letter": "H"
},
{
"sort": 17,
"name": "哈萨克族",
"letter": "H"
},
{
"sort": 18,
"name": "傣族",
"letter": "D"
},
{
"sort": 19,
"name": "黎族",
"letter": "L"
},
{
"sort": 20,
"name": "傈僳族",
"letter": "L"
},
{
"sort": 21,
"name": "佤族",
"letter": "W"
},
{
"sort": 22,
"name": "畲族",
"letter": "S"
},
{
"sort": 23,
"name": "高山族",
"letter": "G"
},
{
"sort": 24,
"name": "拉祜族",
"letter": "L"
},
{
"sort": 25,
"name": "水族",
"letter": "S"
},
{
"sort": 26,
"name": "东乡族",
"letter": "D"
},
{
"sort": 27,
"name": "纳西族",
"letter": "N"
},
{
"sort": 28,
"name": "景颇族",
"letter": "J"
},
{
"sort": 29,
"name": "柯尔克孜族",
"letter": "K"
},
{
"sort": 30,
"name": "土族",
"letter": "T"
},
{
"sort": 31,
"name": "达斡尔族",
"letter": "D"
},
{
"sort": 32,
"name": "仫佬族",
"letter": "M"
},
{
"sort": 33,
"name": "羌族",
"letter": "Q"
},
{
"sort": 34,
"name": "布朗族",
"letter": "B"
},
{
"sort": 35,
"name": "撒拉族",
"letter": "S"
},
{
"sort": 36,
"name": "毛难族",
"letter": "M"
},
{
"sort": 37,
"name": "仡佬族",
"letter": "G"
},
{
"sort": 38,
"name": "锡伯族",
"letter": "X"
},
{
"sort": 39,
"name": "阿昌族",
"letter": "A"
},
{
"sort": 40,
"name": "普米族",
"letter": "P"
},
{
"sort": 41,
"name": "塔吉克族",
"letter": "T"
},
{
"sort": 42,
"name": "怒族",
"letter": "N"
},
{
"sort": 43,
"name": "乌孜别克族",
"letter": "W"
},
{
"sort": 44,
"name": "俄罗斯族",
"letter": "E"
},
{
"sort": 45,
"name": "鄂温克族",
"letter": "E"
},
{
"sort": 46,
"name": "崩龙族",
"letter": "B"
},
{
"sort": 47,
"name": "保安族",
"letter": "B"
},
{
"sort": 48,
"name": "裕固族",
"letter": "Y"
},
{
"sort": 49,
"name": "京族",
"letter": "J"
},
{
"sort": 50,
"name": "塔塔尔族",
"letter": "T"
},
{
"sort": 51,
"name": "独龙族",
"letter": "D"
},
{
"sort": 52,
"name": "鄂伦春族",
"letter": "E"
},
{
"sort": 53,
"name": "赫哲族",
"letter": "H"
},
{
"sort": 54,
"name": "门巴族",
"letter": "M"
},
{
"sort": 55,
"name": "珞巴族",
"letter": "L"
},
{
"sort": 56,
"name": "基诺族",
"letter": "J"
}
]

View File

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