116 lines
2.9 KiB
JSON
116 lines
2.9 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "report_template",
|
|
"title": "报表模板",
|
|
"primary": "id",
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": false,
|
|
"comments": "主键UUID"
|
|
},
|
|
{
|
|
"name": "template_name",
|
|
"title": "模板名称",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": false,
|
|
"comments": "报表模板名称"
|
|
},
|
|
{
|
|
"name": "report_type",
|
|
"title": "报表类型",
|
|
"type": "str",
|
|
"length": 50,
|
|
"nullable": false,
|
|
"comments": "sales/finance/customer/contract"
|
|
},
|
|
{
|
|
"name": "sql_query",
|
|
"title": "SQL查询",
|
|
"type": "str",
|
|
"length": 2000,
|
|
"nullable": false,
|
|
"comments": "报表数据查询SQL"
|
|
},
|
|
{
|
|
"name": "columns_config",
|
|
"title": "列配置",
|
|
"type": "str",
|
|
"length": 1000,
|
|
"nullable": true,
|
|
"comments": "JSON格式的列配置"
|
|
},
|
|
{
|
|
"name": "filters_config",
|
|
"title": "过滤器配置",
|
|
"type": "str",
|
|
"length": 1000,
|
|
"nullable": true,
|
|
"comments": "JSON格式的过滤器配置"
|
|
},
|
|
{
|
|
"name": "chart_config",
|
|
"title": "图表配置",
|
|
"type": "str",
|
|
"length": 1000,
|
|
"nullable": true,
|
|
"comments": "JSON格式的图表配置"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "组织ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": false,
|
|
"comments": "多租户组织隔离"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": false,
|
|
"comments": "创建用户ID"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": false,
|
|
"comments": "创建时间"
|
|
},
|
|
{
|
|
"name": "is_active",
|
|
"title": "是否激活",
|
|
"type": "str",
|
|
"length": 1,
|
|
"nullable": false,
|
|
"comments": "Y/N"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_template_org",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"org_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_template_type",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"report_type"
|
|
]
|
|
}
|
|
],
|
|
"codes": []
|
|
} |