create table hrsa_sub_table_item
(
  id bigint primary key ,
  create_time timestamp,
  update_time timestamp,
  creator bigint,
  delete_type int default 0,
  tenant_key varchar(10),
  table_id bigint not null,
  item_name varchar(50) not null,
  item_value varchar(500) not null,
  index_value int not null,
  total_rule varchar(500),
  count_rule varchar(500),
  unit_type int default 2
);
/

create index idx_report_tenant_key on hrsa_sub_table_item(tenant_key);
/

create index idx_tk_table_dt_517df716 on hrsa_sub_table_item(tenant_key,delete_type,table_id,creator);
/