create table hrsa_tax_declare_api_config
(
  id number primary key ,
  create_time date,
  update_time date,
  creator number,
  delete_type int default 0,
  tenant_key varchar2(10),
  host varchar2(255),
  app_key varchar2(255),
  app_secret varchar2(255)
)
/

create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key)
/

alter table hrsa_tax_declare_api_config modify host not null
/

alter table hrsa_tax_declare_api_config modify app_key not null
/

alter table hrsa_tax_declare_api_config modify app_secret not null
/

alter table hrsa_tax_declare_api_config add enable_use int
/

alter table hrsa_tax_declare_api_config add totality number
/

alter table hrsa_tax_declare_api_config add remain number
/

alter table hrsa_tax_declare_api_config add last_update_time date
/