47 lines
1.6 KiB
SQL
47 lines
1.6 KiB
SQL
create table hrsa_tax_api_flow_receiver
|
|
(
|
|
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' ,
|
|
warn_config_id bigint not null comment '提醒配置的id' ,
|
|
employee_id bigint not null comment '接收人id' ,
|
|
email varchar(100) comment '邮箱' ,
|
|
mobile varchar(50) comment '手机号'
|
|
)
|
|
;
|
|
|
|
create table hrsa_tax_api_flow_record
|
|
(
|
|
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_month datetime not null comment '税款所属期' ,
|
|
use_time datetime not null comment '使用时间' ,
|
|
deduct int comment '是否扣流量(暂时没用)' ,
|
|
employee_id bigint not null comment '人员ID' ,
|
|
business_type int not null comment '接口业务类型' ,
|
|
result_status int not null comment '结果'
|
|
)
|
|
;
|
|
|
|
create table hrsa_tax_api_flow_warn_config
|
|
(
|
|
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' ,
|
|
enable_warn int default 0 not null comment '是否提醒' ,
|
|
threshold int default 0 not null comment '提醒阈值' ,
|
|
business_id bigint default '0' not null comment '消息业务ID'
|
|
)
|
|
;
|