39 lines
1.2 KiB
SQL
39 lines
1.2 KiB
SQL
create table hrsa_tax_report_column
|
|
(
|
|
id bigint primary key comment 'ID' ,
|
|
create_time datetime comment '创建时间' ,
|
|
update_time datetime comment '修改时间' ,
|
|
creator bigint comment '创建人id' ,
|
|
delete_type int default 0 comment '是否删除' ,
|
|
tenant_key varchar(10) comment '租户KEY' ,
|
|
tax_report_type varchar(100) comment '报表类型' ,
|
|
income_category varchar(100) comment '所得项目' ,
|
|
report_column_name varchar(100) comment '列名' ,
|
|
report_column_data_index varchar(100) comment '列索引'
|
|
)
|
|
;
|
|
|
|
create table hrsa_sob_tax_report_rule
|
|
(
|
|
id bigint primary key comment 'ID' ,
|
|
create_time datetime comment '创建时间' ,
|
|
update_time datetime comment '修改时间' ,
|
|
creator bigint comment '创建人id' ,
|
|
delete_type int default 0 comment '是否删除' ,
|
|
tenant_key varchar(10) comment '租户KEY' ,
|
|
salary_sob_id bigint comment '薪资账套的id' ,
|
|
income_category varchar(100) comment '所得项目' ,
|
|
report_column_data_index varchar(100) comment '个税申报表列索引' ,
|
|
salary_item_id bigint comment '薪资项目id'
|
|
)
|
|
;
|
|
|
|
alter table hrsa_tax_report_column add data_type varchar(100)
|
|
;
|
|
|
|
alter table hrsa_tax_report_column add request_param_key varchar(100)
|
|
;
|
|
|
|
alter table hrsa_tax_report_column add report_column_label varchar(100)
|
|
;
|