26 lines
1.6 KiB
SQL
26 lines
1.6 KiB
SQL
create table hrsa_special_add_deduction
|
||
(
|
||
id bigint auto_increment
|
||
primary key,
|
||
employee_id bigint not null comment '人员信息表的主键id',
|
||
tax_agent_id bigint not null comment '个税扣缴义务人的主键id',
|
||
children_education varchar(255) default '' null comment '子女教育',
|
||
continuing_education varchar(255) default '' null comment '继续教育',
|
||
housing_loan_interest varchar(255) default '' null comment '住房贷款利息',
|
||
housing_rent varchar(255) default '' null comment '住房租金',
|
||
supporting_elder varchar(255) default '' null comment '赡养老人',
|
||
serious_illness_treatment varchar(255) default '' null comment '大病医疗',
|
||
infant_care varchar(255) default '' null comment '婴幼儿照护',
|
||
create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间',
|
||
update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
|
||
creator bigint default 0 not null comment '创建人',
|
||
delete_type int default 0 not null comment '是否已删除。0:未删除、1:已删除',
|
||
tenant_key varchar(10) default '' not null comment '租户ID'
|
||
)
|
||
comment '数据采集-专项附加扣除表';
|
||
|
||
create index idx_employee_id
|
||
on hrsa_special_add_deduction (employee_id);
|
||
|
||
create index idx_tenant_key
|
||
on hrsa_special_add_deduction (tenant_key); |