weaver-hrm-salary/resource/sqlupgrade/SQLServer/sql202309040303.sql

39 lines
994 B
MySQL
Raw Normal View History

2023-09-04 14:20:42 +08:00
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