weaver-hrm-salary/resource/sqlupgrade/PG/sql202212081003.sql

30 lines
1.5 KiB
SQL

create table hrsa_salary_send_range
(
id bigserial not null ,
salary_send_id bigint default 0 not null ,
grant_type varchar(64) not null ,
creator bigint default 0 not null ,
create_time timestamp default CURRENT_TIMESTAMP not null ,
update_time timestamp default CURRENT_TIMESTAMP not null ,
delete_type int default 0 not null ,
tenant_key varchar(10) default '' not null ,
PRIMARY KEY (id)
)
;
create table hrsa_salary_send_range_obj
(
id bigserial not null ,
salary_send_id bigint default 0 not null ,
salary_send_range_id bigint default 0 not null ,
range_type int not null ,
target_type int not null ,
target_id bigint not null ,
creator bigint default 0 not null ,
create_time timestamp default CURRENT_TIMESTAMP not null ,
update_time timestamp default CURRENT_TIMESTAMP not null ,
delete_type int default 0 not null ,
tenant_key varchar(10) default '' not null ,
PRIMARY KEY (id)
)
;