create table hrsa_tax_api_flow_receiver
(
  id number primary key ,
  create_time date,
  update_time date,
  creator number,
  delete_type int default 0,
  tenant_key varchar2(10),
  warn_config_id number not null,
  employee_id number not null,
  email varchar2(100),
  mobile varchar2(50)
)
/


create table hrsa_tax_api_flow_record
(
  id number primary key ,
  create_time date,
  update_time date,
  creator number,
  delete_type int default 0,
  tenant_key varchar2(10),
  tax_agent_id number not null,
  tax_month date not null,
  use_time date not null,
  deduct int,
  employee_id number not null,
  business_type int not null,
  result_status int not null
)
/


create table hrsa_tax_api_flow_warn_config
(
  id number primary key ,
  create_time date,
  update_time date,
  creator number,
  delete_type int default 0,
  tenant_key varchar2(10),
  enable_warn int default 0 not null,
  threshold int default 0 not null,
  business_id number default '0' not null
)
/