You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create table country (id uuid primary key, name varchar(500) not null, icon bytea);
create table port (id uuid primary key, name varchar(500) not null, longitude float(25), latitude float(25));
create table vessel (id uuid primary key, name varchar(500) not null, country uuid REFERENCES country(id), image bytea);
create table visits (id uuid primary key, vessel uuid REFERENCES vessel(id), port uuid REFERENCES port(id), visittime timestamp);
create table "user" (id uuid NOT NULL, full_name character varying(255), password character varying(255), role character varying(255), username character varying(255), CONSTRAINT user_pkey PRIMARY KEY (id));
ALTER TABLE "user" ADD CONSTRAINT unique_username UNIQUE ("username");