30 lines
1.2 KiB
SQL
30 lines
1.2 KiB
SQL
create table hrsa_tax_agent_tax_return
|
|
(
|
|
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_agent_id bigint not null comment '个税扣缴义务人ID' ,
|
|
tax_code varchar(50) not null comment '税号' ,
|
|
tax_registration_number varchar(50) not null comment '登记序号' ,
|
|
department_code varchar(50) comment '部门编号' ,
|
|
department_name varchar(50) comment '部门名称' ,
|
|
nation varchar(50) comment '国家' ,
|
|
province varchar(50) comment '省份' ,
|
|
city varchar(50) comment '市级' ,
|
|
area_code varchar(50) not null comment '行政编码' ,
|
|
password_type int(2) not null comment '密码校验类型' ,
|
|
real_account varchar(50) comment '实名账号' ,
|
|
pwd varchar(50) not null comment '密码' ,
|
|
check_status int(2) not null comment '报税验证状态' ,
|
|
fail_reason varchar(255) comment '最近一次验证失败原因'
|
|
)
|
|
;
|
|
|
|
create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key)
|
|
;
|
|
|
|
create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id)
|
|
; |