create table hrsa_add_up_deduction_request ( id bigint primary key , create_time datetime, update_time datetime, creator bigint, delete_type int default 0, tenant_key nvarchar(10), request_id bigint not null, request_status tinyint default 1 not null, tax_year_month datetime not null, outer_request_id nvarchar(50) not null, tax_agent_id bigint not null ) GO alter table hrsa_add_up_deduction_request add lock_version int GO alter table hrsa_add_up_deduction_request add constraint df_lock_version_71db6820 default 0 for lock_version GO create table hrsa_add_up_deduction_req_fail ( id bigint primary key , create_time datetime, update_time datetime, creator bigint, delete_type int default 0, tenant_key nvarchar(10), request_id bigint not null, employee_id bigint not null, employee_type int not null, tax_agent_id bigint not null, reason nvarchar(255) not null, tax_year_month datetime not null, outer_request_id nvarchar(50) not null ) GO