weaver-hrm-salary/resource/sqlupgrade/Mysql/2023/sql2023013104001.sql

22 lines
883 B
SQL

create table hrsa_salary_echarts_setting
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
report_id bigint not null comment '报表id' ,
charts_type int not null comment '报表类型' ,
item_values varchar(500) comment '统计项目' ,
item_col_value varchar(50) not null comment '统计列' ,
dimension_range int not null comment '维度统计范围' ,
item_sort_value varchar(500) comment '排序统计项目' ,
item_col_sort_value varchar(50) comment '排序列' ,
sort_type int comment '排序类型' ,
sort_num int comment '排序取数值'
)
;
create index idx_salary_echart_set_tk on hrsa_salary_echarts_setting(tenant_key)
;