23 lines
577 B
Transact-SQL
23 lines
577 B
Transact-SQL
create table hrsa_sub_table_item
|
|
(
|
|
id bigint primary key ,
|
|
create_time datetime,
|
|
update_time datetime,
|
|
creator bigint,
|
|
delete_type int default 0,
|
|
tenant_key nvarchar(10),
|
|
table_id bigint not null,
|
|
item_name nvarchar(50) not null,
|
|
item_value nvarchar(500) not null,
|
|
index_value int not null,
|
|
total_rule nvarchar(500),
|
|
count_rule nvarchar(500),
|
|
unit_type int default 2
|
|
)
|
|
GO
|
|
|
|
create index idx_report_tenant_key on hrsa_sub_table_item(tenant_key)
|
|
GO
|
|
|
|
create index idx_tk_table_dt_517df716 on hrsa_sub_table_item(tenant_key,delete_type,table_id,creator)
|
|
GO |