create table hrsa_tax_declare_api_config
(
  id bigint primary key ,
  create_time datetime,
  update_time datetime,
  creator bigint,
  delete_type int default 0,
  tenant_key nvarchar(10),
  host nvarchar(255),
  app_key nvarchar(255),
  app_secret nvarchar(255)
)
GO

create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key)
GO

alter table hrsa_tax_declare_api_config alter column host nvarchar(255) not null 
GO

alter table hrsa_tax_declare_api_config alter column app_key nvarchar(255) not null 
GO

alter table hrsa_tax_declare_api_config alter column app_secret nvarchar(255) not null 
GO

alter table hrsa_tax_declare_api_config add enable_use int
GO

alter table hrsa_tax_declare_api_config add totality bigint
GO

alter table hrsa_tax_declare_api_config add remain bigint
GO

alter table hrsa_tax_declare_api_config add last_update_time datetime
GO