weaver-hrm-salary/resource/sqlupgrade/Mysql/sql202505120103WHLTKJGFYXGS...

43 lines
1.5 KiB
MySQL
Raw Normal View History

2025-05-12 17:42:15 +08:00
CREATE TABLE hrsa_salary_cbs (
id bigint NOT NULL,
salary_month date NOT NULL,
salary_accounting_id bigint NOT NULL DEFAULT 0 ,
salary_sob_id bigint NOT NULL,
last_push_time datetime NULL,
creator bigint NOT NULL DEFAULT 0,
create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
delete_type int NOT NULL DEFAULT 0,
PRIMARY KEY (id) USING BTREE
);
CREATE TABLE hrsa_salary_cbs_info (
id bigint NOT NULL,
salary_cbs_id bigint NOT NULL,
employee_id bigint NOT NULL DEFAULT 0 ,
push_status int NOT NULL DEFAULT 0,
push_time datetime NULL DEFAULT NULL,
creator bigint NOT NULL DEFAULT 0,
create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ,
update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
delete_type int NOT NULL DEFAULT 0,
employee_type int NULL DEFAULT NULL,
push_value varchar(255) NULL DEFAULT NULL,
reference_num varchar(1000) NULL DEFAULT NULL,
bus_num varchar(500) NULL DEFAULT NULL,
PRIMARY KEY (id) USING BTREE
);
CREATE TABLE hrsa_salary_cbs_push (
id bigint NOT NULL,
salary_cbs_id varchar(3000) NULL DEFAULT NULL,
totalEmp varchar(255) NULL DEFAULT '0',
totalValue varchar(255) NULL DEFAULT NULL,
reference_num varchar(500) NULL DEFAULT NULL,
creator bigint NOT NULL DEFAULT 0,
return_value varchar(5000) NULL DEFAULT NULL,
create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
delete_type int NOT NULL DEFAULT 0,
PRIMARY KEY (id) USING BTREE
);