opendb/collection/opendb-admin-menus/collection.json

60 lines
1.2 KiB
JSON
Raw Normal View History

2020-10-23 11:25:15 +08:00
{
"schema": {
"bsonType": "object",
"required": [
"name",
"url"
],
"properties": {
"_id": {
"description": "存储文档 ID系统自动生成"
},
"name": {
"bsonType": "string",
"description": "菜单名称"
},
"icon": {
"bsonType": "string",
"description": "菜单图标"
},
"url": {
"bsonType": "string",
"description": "菜单url"
},
"sort": {
"bsonType": "int",
2020-10-23 11:27:03 +08:00
"description": "菜单序号(越大越靠后)"
2020-10-23 11:25:15 +08:00
},
"parent_id": {
"bsonType": "string",
"description": "父级菜单Id"
},
"permission": {
"bsonType": "array",
"description": "菜单权限列表"
},
"status": {
"bsonType": "string",
"description": "菜单状态0禁用、1启用"
},
"create_date": {
"bsonType": "timestamp",
"description": "菜单创建时间"
}
}
},
"index": [
{
"IndexName": "permission",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "permission",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
}