Giao diện
Database schema
ER Diagram
Chi tiết bảng
desktopRoutes
Bảng chính lưu menu desktop. Mỗi record là một node trong cây menu.
| Field | Type | Mô tả |
|---|---|---|
id | bigInt (PK) | Snowflake ID, tự sinh |
schemaUid | string | UID của uiSchema chứa nội dung trang |
menuSchemaUid | string | UID của uiSchema cho menu item |
tabSchemaName | string | Tên uiWidget chứa tab layout |
title | string | Tên hiển thị trên sidebar |
icon | string | Ant Design icon name |
type | string | Loại: page, group, link, divider |
parentId | bigInt (FK) | ID node cha (null = root) |
sort | float | Thứ tự sắp xếp, scoped theo parentId |
hideInMenu | boolean | true = ẩn khỏi sidebar nhưng vẫn truy cập được qua URL |
enableTabs | boolean | true = hiển thị tab bar bên trong page |
enableHeader | boolean | true = hiển thị page header |
displayTitle | boolean | true = hiển thị title trên page content |
hidden | boolean | true = ẩn hoàn toàn (không render) |
options | json | Tuỳ chọn mở rộng |
mobileRoutes
Cấu trúc tương tự desktopRoutes, dành cho menu mobile. Không có enableTabs, enableHeader, displayTitle.
rolesDesktopRoutes
Bảng junction M2M giữa roles và desktopRoutes.
| Field | Type | Mô tả |
|---|---|---|
roleName | string (FK) | Tên role |
desktopRouteId | bigInt (FK) | ID desktop route |
Composite PK: (roleName, desktopRouteId).