create table hrsa_tax_api_flow_receiver
(
  id bigint primary key ,
  create_time timestamp,
  update_time timestamp,
  creator bigint,
  delete_type int default 0,
  tenant_key varchar(10),
  warn_config_id bigint not null,
  employee_id bigint not null,
  email varchar(100),
  mobile varchar(50)
);
/

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

create table hrsa_tax_api_flow_warn_config
(
  id bigint primary key ,
  create_time timestamp,
  update_time timestamp,
  creator bigint,
  delete_type int default 0,
  tenant_key varchar(10),
  enable_warn int default 0 not null,
  threshold int default 0 not null,
  business_id bigint default '0' not null
);
/