fix: standardize summary format to list with primary=id in all models

This commit is contained in:
yumoqing 2026-04-29 14:39:34 +08:00
parent 8c2ffa87d8
commit eab031e502
3 changed files with 288 additions and 263 deletions

View File

@ -1,9 +1,12 @@
{ {
"summary": { "summary": [
{
"name": "dashboard_config", "name": "dashboard_config",
"label": "仪表板配置", "title": "仪表板配置",
"comment": "统一仪表板配置信息" "primary": "id",
}, "catelog": "entity"
}
],
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@ -73,17 +76,24 @@
{ {
"name": "idx_dashboard_org", "name": "idx_dashboard_org",
"idxtype": "index", "idxtype": "index",
"fields": ["org_id"] "fields": [
"org_id"
]
}, },
{ {
"name": "idx_dashboard_type", "name": "idx_dashboard_type",
"idxtype": "index", "idxtype": "index",
"fields": ["dashboard_type"] "fields": [
"dashboard_type"
]
}, },
{ {
"name": "uk_dashboard_name_org", "name": "uk_dashboard_name_org",
"idxtype": "unique", "idxtype": "unique",
"fields": ["dashboard_name", "org_id"] "fields": [
"dashboard_name",
"org_id"
]
} }
], ],
"codes": [] "codes": []

View File

@ -1,9 +1,12 @@
{ {
"summary": { "summary": [
{
"name": "report_template", "name": "report_template",
"label": "报表模板", "title": "报表模板",
"comment": "统一报表模板定义" "primary": "id",
}, "catelog": "entity"
}
],
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@ -97,12 +100,16 @@
{ {
"name": "idx_template_org", "name": "idx_template_org",
"idxtype": "index", "idxtype": "index",
"fields": ["org_id"] "fields": [
"org_id"
]
}, },
{ {
"name": "idx_template_type", "name": "idx_template_type",
"idxtype": "index", "idxtype": "index",
"fields": ["report_type"] "fields": [
"report_type"
]
} }
], ],
"codes": [] "codes": []

View File

@ -1,9 +1,12 @@
{ {
"summary": { "summary": [
{
"name": "user_dashboard", "name": "user_dashboard",
"label": "用户仪表板", "title": "用户仪表板",
"comment": "用户个性化仪表板配置" "primary": "id",
}, "catelog": "entity"
}
],
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@ -58,12 +61,17 @@
{ {
"name": "idx_user_dashboard_user", "name": "idx_user_dashboard_user",
"idxtype": "unique", "idxtype": "unique",
"fields": ["user_id", "dashboard_config_id"] "fields": [
"user_id",
"dashboard_config_id"
]
}, },
{ {
"name": "idx_user_dashboard_org", "name": "idx_user_dashboard_org",
"idxtype": "index", "idxtype": "index",
"fields": ["org_id"] "fields": [
"org_id"
]
} }
], ],
"codes": [] "codes": []