mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-14 06:53:00 +08:00
57 lines
1.1 KiB
JSON
57 lines
1.1 KiB
JSON
{
|
||
"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
|
||
}
|
||
}
|
||
]
|
||
}
|