运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
797 B

create table project_folder
(
id serial not null,
file_name varchar not null,
project_id integer not null,
higher_file_id integer,
type int not null
);
comment on column project_folder.project_id is '自定义项目或者项企项目';
comment on column project_folder.higher_file_id is '上级文件id';
comment on column project_folder.type is '1.项目资料
2.维修FQA
3.故障资料
4.运维规范';
create unique index project_folder_id_uindex
on project_folder (id);
alter table project_folder
add constraint project_folder_pk
primary key (id);
create table project_folder_file
(
id serial not null,
name varchar,
size integer,
upload_time timestamp,
file_id integer,
url varchar
);
create unique index project_folder_file_id_uindex
on project_folder_file (id);