133 lines
4.4 KiB
SQL
133 lines
4.4 KiB
SQL
create table hrsa_other_derate_deduction
|
|
(
|
|
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' ,
|
|
main_id bigint comment '主表数据id' ,
|
|
tax_year_month date comment '税款所属期' ,
|
|
employee_id bigint comment '人员id' ,
|
|
tax_agent_id bigint comment '个税扣缴义务人id' ,
|
|
file_status int comment '归档状态 0未归档 1已归档' ,
|
|
other_deduction varchar(50) comment '其他减免税额' ,
|
|
remark varchar(255) comment '备注'
|
|
)
|
|
;
|
|
|
|
|
|
create table hrsa_health_insurance
|
|
(
|
|
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' ,
|
|
main_id bigint comment '主表数据id' ,
|
|
tax_year_month date comment '税款所属期' ,
|
|
employee_id bigint comment '人员id' ,
|
|
tax_agent_id bigint comment '个税扣缴义务人id' ,
|
|
file_status int comment '归档状态 0未归档 1已归档' ,
|
|
identification_number varchar(255) comment '税优识别码' ,
|
|
effective_date date comment '保单生效日期' ,
|
|
year_premium varchar(50) comment '年度保费' ,
|
|
month_premium varchar(50) comment '月度保费' ,
|
|
current_deduction varchar(50) comment '本期扣除金额'
|
|
)
|
|
;
|
|
|
|
|
|
create table hrsa_grant_donation
|
|
(
|
|
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' ,
|
|
main_id bigint comment '主表数据id' ,
|
|
tax_year_month date comment '税款所属期' ,
|
|
employee_id bigint comment '人员id' ,
|
|
tax_agent_id bigint comment '个税扣缴义务人id' ,
|
|
file_status int comment '归档状态 0未归档 1已归档' ,
|
|
recipient_name varchar(255) comment '受赠单位名称' ,
|
|
tax_code varchar(255) comment '受赠单位纳税人识别号' ,
|
|
donation_number varchar(255) comment '捐赠凭证号' ,
|
|
donate_date date comment '捐赠日期' ,
|
|
donate_amount varchar(50) comment '捐赠金额' ,
|
|
deduction_proportion varchar(10) comment '扣除比例' ,
|
|
actual_deduction varchar(50) comment '实际扣除金额'
|
|
)
|
|
;
|
|
|
|
|
|
|
|
create table hrsa_endowment_insurance
|
|
(
|
|
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' ,
|
|
main_id bigint comment '主表数据id' ,
|
|
tax_year_month date comment '税款所属期' ,
|
|
employee_id bigint comment '人员id' ,
|
|
tax_agent_id bigint comment '个税扣缴义务人id' ,
|
|
file_status int comment '归档状态 0未归档 1已归档' ,
|
|
account_number varchar(255) comment '税延养老账户编号' ,
|
|
check_code varchar(255) comment '报税校验码' ,
|
|
year_premium varchar(50) comment '年度保费' ,
|
|
month_premium varchar(50) comment '月度保费' ,
|
|
current_deduction varchar(50) comment '本期扣除金额' ,
|
|
deduction_month date comment '申请扣除月份'
|
|
)
|
|
;
|
|
|
|
|
|
create table hrsa_derate_deduction
|
|
(
|
|
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' ,
|
|
main_id bigint comment '主表数据id' ,
|
|
tax_year_month date comment '税款所属期' ,
|
|
employee_id bigint comment '人员id' ,
|
|
tax_agent_id bigint comment '个税扣缴义务人id' ,
|
|
file_status int comment '归档状态 0未归档 1已归档' ,
|
|
derate_item varchar(255) comment '减免事项' ,
|
|
derate_property varchar(255) comment '减免性质' ,
|
|
derate_amount varchar(255) comment '减免税额'
|
|
)
|
|
;
|
|
|
|
|
|
|
|
create table hrsa_free_income
|
|
(
|
|
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' ,
|
|
main_id bigint comment '主表数据id' ,
|
|
tax_year_month date comment '税款所属期' ,
|
|
employee_id bigint comment '人员id' ,
|
|
tax_agent_id bigint comment '个税扣缴义务人id' ,
|
|
file_status int comment '归档状态 0未归档 1已归档' ,
|
|
free_item varchar(255) comment '免税事项' ,
|
|
free_property varchar(255) comment '免税性质' ,
|
|
free_amount varchar(255) comment '免税金额'
|
|
)
|
|
;
|
|
|
|
|
|
|
|
|