33 lines
1.1 KiB
SQL
33 lines
1.1 KiB
SQL
create table hrsa_tax_declare_api_profile
|
|
(
|
|
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' ,
|
|
api_profile int comment '接口环境'
|
|
)
|
|
;
|
|
|
|
create index id_tenant_key_22b215db on hrsa_tax_declare_api_profile(tenant_key)
|
|
;
|
|
|
|
create table hrsa_tax_payment_request
|
|
(
|
|
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_declare_record_id bigint comment '个税申报记录' ,
|
|
tax_year_month date not null comment '税款所属期' ,
|
|
request_id varchar(50) not null comment '请求id' ,
|
|
request_type int not null comment '请求类型'
|
|
)
|
|
;
|
|
|
|
create index id_tenant_key_bcb610c7 on hrsa_tax_payment_request(tenant_key)
|
|
; |