opendb/collection/opendb-nation-china/collection.json

57 lines
1.1 KiB
JSON
Raw Normal View History

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