57 lines
1.7 KiB
Transact-SQL
57 lines
1.7 KiB
Transact-SQL
ALTER TABLE hrsa_salary_sob_item ADD show_in_workflow int NULL
|
|
GO
|
|
|
|
|
|
ALTER TABLE hrsa_salary_sob_item ADD sum_in_workflow int NULL
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_salary_acct_emp_wz (
|
|
id bigint NOT NULL,
|
|
salary_acct_record_id bigint NOT NULL DEFAULT 0,
|
|
salary_sob_id bigint NOT NULL DEFAULT 0 ,
|
|
employee_id bigint NOT NULL DEFAULT 0 ,
|
|
tax_agent_id bigint NOT NULL DEFAULT 0 ,
|
|
salary_month datetime NOT NULL DEFAULT '0000-01-01 00:00:00' ,
|
|
creator bigint NOT NULL DEFAULT 0 ,
|
|
create_time datetime NOT NULL DEFAULT (getdate()) ,
|
|
update_time datetime NOT NULL DEFAULT (getdate()),
|
|
delete_type int NOT NULL DEFAULT 0 ,
|
|
tenant_key varchar(10) NOT NULL DEFAULT '',
|
|
employee_type int NULL DEFAULT NULL,
|
|
income_category varchar(100) NULL DEFAULT NULL,
|
|
request_id varchar(255) NULL DEFAULT NULL
|
|
)
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_salary_acct_result_wz (
|
|
id bigint NOT NULL,
|
|
salary_sob_id bigint NOT NULL DEFAULT 0 ,
|
|
salary_acct_emp_id bigint NOT NULL DEFAULT 0 ,
|
|
salary_acct_record_id bigint NOT NULL DEFAULT 0,
|
|
employee_id bigint NOT NULL DEFAULT 0,
|
|
tax_agent_id bigint NOT NULL DEFAULT 0,
|
|
salary_item_id bigint NOT NULL DEFAULT 0 ,
|
|
result_value varchar(1000) NOT NULL DEFAULT '' ,
|
|
origin_result_value varchar(1000) NULL DEFAULT NULL,
|
|
creator bigint NOT NULL DEFAULT 0 ,
|
|
create_time datetime NOT NULL DEFAULT (getdate()),
|
|
update_time datetime NOT NULL DEFAULT (getdate()),
|
|
delete_type int NOT NULL DEFAULT 0,
|
|
tenant_key varchar(10) NOT NULL DEFAULT '',
|
|
request_id varchar(255) NULL DEFAULT NULL
|
|
)
|
|
GO
|
|
|
|
|
|
|
|
CREATE TABLE hrsa_salary_acct_template_wz (
|
|
id bigint NOT NULL,
|
|
employee_id bigint NOT NULL DEFAULT 0 ,
|
|
template_name varchar(500) NOT NULL DEFAULT '',
|
|
salary_item_ids varchar(2000),
|
|
is_defalut int,
|
|
PRIMARY KEY (id)
|
|
)
|
|
GO |