create table if not exists quick_link ( id serial not null, user_id integer not null, link varchar(256) not null, name varchar(32) not null, constraint quick_link_pk primary key (id), constraint quick_link_user_id_fk foreign key (user_id) references "user" ); comment on table quick_link is '对应我的常用工具功能'; create unique index if not exists quick_link_id_uindex on quick_link (id);