opendb/collection/opendb-nation-china/collection.json
2020-12-31 17:01:17 +08:00

57 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": ["name"],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"name": {
"bsonType": "string",
"description": "民族名称"
},
"first_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": "first_letter",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "first_letter",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}