fix: standardize summary format to list with primary=id in all models
This commit is contained in:
parent
8c2ffa87d8
commit
eab031e502
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"summary": [
|
||||
{
|
||||
"name": "dashboard_config",
|
||||
"label": "仪表板配置",
|
||||
"comment": "统一仪表板配置信息"
|
||||
},
|
||||
"title": "仪表板配置",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -73,17 +76,24 @@
|
||||
{
|
||||
"name": "idx_dashboard_org",
|
||||
"idxtype": "index",
|
||||
"fields": ["org_id"]
|
||||
"fields": [
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_dashboard_type",
|
||||
"idxtype": "index",
|
||||
"fields": ["dashboard_type"]
|
||||
"fields": [
|
||||
"dashboard_type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "uk_dashboard_name_org",
|
||||
"idxtype": "unique",
|
||||
"fields": ["dashboard_name", "org_id"]
|
||||
"fields": [
|
||||
"dashboard_name",
|
||||
"org_id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"summary": [
|
||||
{
|
||||
"name": "report_template",
|
||||
"label": "报表模板",
|
||||
"comment": "统一报表模板定义"
|
||||
},
|
||||
"title": "报表模板",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -97,12 +100,16 @@
|
||||
{
|
||||
"name": "idx_template_org",
|
||||
"idxtype": "index",
|
||||
"fields": ["org_id"]
|
||||
"fields": [
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_template_type",
|
||||
"idxtype": "index",
|
||||
"fields": ["report_type"]
|
||||
"fields": [
|
||||
"report_type"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"summary": [
|
||||
{
|
||||
"name": "user_dashboard",
|
||||
"label": "用户仪表板",
|
||||
"comment": "用户个性化仪表板配置"
|
||||
},
|
||||
"title": "用户仪表板",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -58,12 +61,17 @@
|
||||
{
|
||||
"name": "idx_user_dashboard_user",
|
||||
"idxtype": "unique",
|
||||
"fields": ["user_id", "dashboard_config_id"]
|
||||
"fields": [
|
||||
"user_id",
|
||||
"dashboard_config_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_user_dashboard_org",
|
||||
"idxtype": "index",
|
||||
"fields": ["org_id"]
|
||||
"fields": [
|
||||
"org_id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user