23 lines
564 B
MySQL
23 lines
564 B
MySQL
|
|
create table hrsa_sub_table_item
|
||
|
|
(
|
||
|
|
id number primary key ,
|
||
|
|
create_time date,
|
||
|
|
update_time date,
|
||
|
|
creator number,
|
||
|
|
delete_type int default 0,
|
||
|
|
tenant_key varchar(10),
|
||
|
|
table_id number 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);
|
||
|
|
/
|