7 - Clicar ao lado de "projeto001", onde estará "0 of 2" e selecionar o schema proj001
8 - Clicar com o botão direito em proj001 --> New --> Query console
9 - rodar o script sql abaixo
create table author
(
author_id serial
constraint author_pk
primary key,
name varchar,
picture varchar
);
alter table author
owner to postgres;
create table "user"
(
user_id serial
constraint user_pk
primary key,
username varchar,
password varchar,
type varchar
);
alter table "user"
owner to postgres;
create table paper
(
paper_id serial
constraint paper_pk
primary key,
category varchar,
title varchar,
summary text,
first_paragraph text,
body text,
author_id integer not null
);
alter table paper
owner to postgres;
10 - Pronto, a api está pronta para ser utilizada em localhost:8002. Para a documentação dos endpoints da api, acesso localhost:8002/docs