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

29 lines
2.3 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE hrsa_salary_sob_back_item(
id bigint NOT NULL COMMENT '主键id',
salary_sob_id bigint NULL DEFAULT NULL COMMENT '薪资账套id',
salary_item_id bigint NULL DEFAULT NULL COMMENT '薪资项目id',
salary_item_code varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '薪资项目code',
data_type varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字段类型',
rounding_mode int NULL DEFAULT NULL COMMENT '进位规则。1原始数据、2四舍五入、3向上舍入、4向下舍入、5见分进角、6向上求偶',
pattern int NULL DEFAULT NULL COMMENT '保留的小数位数',
value_type int NULL DEFAULT NULL COMMENT '取值方式。1输入、2公式、3sql',
formula_id bigint NULL DEFAULT NULL COMMENT '公式id',
back_calc_type int NULL DEFAULT NULL COMMENT '0:已发项目、1:补发薪资项目',
tenant_key varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户key',
creator bigint NULL DEFAULT NULL COMMENT '创建人id',
delete_type int NULL DEFAULT NULL COMMENT '是否删除',
create_time datetime NULL DEFAULT NULL COMMENT '创建时间',
update_time datetime NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (id) USING BTREE
) COMMENT = '薪资账套回算薪资项目';
alter table hrsa_salary_acct_record add back_calc_status int null COMMENT '是否是回算 0不是回算、1是回算';
alter table hrsa_salary_acct_result add origin_result_value VARCHAR(1000) null COMMENT '回算前的值';
alter table hrsa_salary_acct_result_report add origin_result_value VARCHAR(1000) null COMMENT '回算前的值';
alter table hrsa_salary_send add salary_acct_type int null COMMENT '核算类型。0正常1补发';
alter table hrsa_salary_send add send_status int null COMMENT '发放状态。0未冻结、1已冻结';
alter table hrsa_salary_send_info add salary_acct_type int null COMMENT '核算类型。0正常1补发';
alter table hrsa_salary_template add replenish_name VARCHAR(100) null COMMENT '补发工资单模板名称';
alter table hrsa_salary_template add replenish_rule VARCHAR(255) null COMMENT '补发工资单名单生成规则';
alter table hrsa_salary_template add replenish_salary_item_setting text null COMMENT '补发薪资项目设置';
alter table hrsa_acct_result_temp add origin_result_value VARCHAR(1000) null COMMENT '回算前的值';