40 lines
970 B
SQL
40 lines
970 B
SQL
create table hrsa_add_up_deduction_request
|
|
(
|
|
id bigint primary key ,
|
|
create_time timestamp,
|
|
update_time timestamp,
|
|
creator bigint,
|
|
delete_type int default 0,
|
|
tenant_key varchar(10),
|
|
request_id bigint not null,
|
|
request_status smallint default 1 not null,
|
|
tax_year_month timestamp not null,
|
|
outer_request_id varchar(50) not null,
|
|
tax_agent_id bigint not null
|
|
);
|
|
/
|
|
|
|
alter table hrsa_add_up_deduction_request add lock_version int;
|
|
/
|
|
|
|
alter table hrsa_add_up_deduction_request alter column lock_version set default 0;
|
|
/
|
|
|
|
|
|
create table hrsa_add_up_deduction_req_fail
|
|
(
|
|
id bigint primary key ,
|
|
create_time timestamp,
|
|
update_time timestamp,
|
|
creator bigint,
|
|
delete_type int default 0,
|
|
tenant_key varchar(10),
|
|
request_id bigint not null,
|
|
employee_id bigint not null,
|
|
employee_type int not null,
|
|
tax_agent_id bigint not null,
|
|
reason varchar(255) not null,
|
|
tax_year_month timestamp not null,
|
|
outer_request_id varchar(50) not null
|
|
);
|
|
/ |