opendb/collection/opendb-admin-menus/collection.json
2020-10-26 14:43:20 +08:00

87 lines
1.8 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",
"menu_id"
],
"properties": {
"_id": {
"description": "存储文档 ID系统自动生成"
},
"menu_id": {
"description": "菜单项的ID不可重复"
},
"name": {
"bsonType": "string",
"description": "菜单名称"
},
"icon": {
"bsonType": "string",
"description": "菜单图标"
},
"url": {
"bsonType": "string",
"description": "菜单url"
},
"sort": {
"bsonType": "int",
"description": "菜单序号(越大越靠后)"
},
"parent_id": {
"bsonType": "string",
"description": "父级菜单Id"
},
"permission": {
"bsonType": "array",
"description": "菜单权限列表"
},
"enable": {
"bsonType": "bool",
"description": "是否启用菜单true启用、false禁用"
},
"create_date": {
"bsonType": "timestamp",
"description": "菜单创建时间"
}
}
},
"index": [
{
"IndexName": "menu_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "menu_id",
"Direction": "1"
}
],
"MgoIsUnique": true
}
},
{
"IndexName": "parent_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "parent_id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "permission",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "permission",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
}