peng.peng
1 year ago
7 changed files with 56 additions and 6 deletions
@ -0,0 +1,25 @@ |
|||
create table backups |
|||
( |
|||
id serial |
|||
constraint backups_pk |
|||
primary key, |
|||
note varchar(255) not null, |
|||
databases jsonb, |
|||
size varchar(255), |
|||
create_time timestamp with time zone, |
|||
complete_time timestamp with time zone, |
|||
state enum_task_state, |
|||
source text |
|||
); |
|||
|
|||
comment on table backups is '备份任务表'; |
|||
|
|||
comment on column backups.note is '备注信息'; |
|||
|
|||
comment on column backups.complete_time is '备份完成时间'; |
|||
|
|||
comment on column backups.source is '备份文件路径'; |
|||
|
|||
create unique index backups_id_uindex |
|||
on backups (id); |
|||
|
@ -0,0 +1,4 @@ |
|||
alter table t_resource_consumption |
|||
add resource_id int; |
|||
|
|||
comment on column t_resource_consumption.resource_id is '元数据id'; |
Loading…
Reference in new issue