weaver-hrm-salary/resource/sqlupgrade/Mysql/sql202210080203.sql

93 lines
1.5 KiB
MySQL
Raw Normal View History

2023-06-26 15:48:25 +08:00
CREATE TABLE hrsa_excel_bill_detail (
id bigint NOT NULL,
employee_id bigint NOT NULL,
bill_month varchar(30) NOT NULL,
bill_status int NOT NULL,
payment_status int NOT NULL,
supplementary_month varchar(50) NULL,
supplementary_projects varchar(50) NULL,
resource_from int NOT NULL,
social_pay_org int NULL,
social_account varchar(50) NULL,
social_scheme_id bigint NULL,
social_payment_base_string longtext NULL,
fund_pay_org int NULL,
fund_account varchar(50) NULL,
supplement_fund_account varchar(50) NULL,
fund_scheme_id int NULL,
fund_payment_base_string longtext NULL,
other_pay_org int NULL,
other_scheme_id bigint NULL,
other_payment_base_string longtext NULL,
social_per_json longtext NULL,
social_per_sum text NULL,
fund_per_json longtext NULL,
fund_per_sum text NULL,
other_per_json longtext NULL,
other_per_sum text NULL,
per_sum text NULL,
social_com_json longtext NULL,
social_com_sum text NULL,
fund_com_json longtext NULL,
fund_com_sum text NULL,
other_com_json longtext NULL,
other_com_sum text NULL,
com_sum text NULL,
social_sum text NULL,
fund_sum text NULL,
other_sum text NULL,
total text 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 ,
tenant_key varchar(10) NOT NULL ,
payment_organization bigint NULL,
PRIMARY KEY (id) USING BTREE
);