weaver-hrm-salary/resource/sqlupgrade/Mysql/sql202307180203.sql

37 lines
1.0 KiB
SQL

create table hrsa_tax_declare_api_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' ,
host varchar(255) comment '接口host' ,
app_key varchar(255) comment 'appKey' ,
app_secret varchar(255) comment 'appSecret'
)
;
create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key)
;
alter table hrsa_tax_declare_api_config modify host varchar(255) not null
;
alter table hrsa_tax_declare_api_config modify app_key varchar(255) not null
;
alter table hrsa_tax_declare_api_config modify app_secret varchar(255) not null
;
alter table hrsa_tax_declare_api_config add enable_use int
;
alter table hrsa_tax_declare_api_config add totality bigint
;
alter table hrsa_tax_declare_api_config add remain bigint
;
alter table hrsa_tax_declare_api_config add last_update_time datetime
;