create table if not exists app ( id serial not null, name varchar(256) not null, url varchar(1024) not null, constraint app_pk primary key (id) ); create unique index if not exists app_id_uindex on app (id);