New to joins, constraints, and references in PostgreSQL,
Here are the two table schemas I'm trying to create. The instructors table works just fine. The instructor_profile throws all sorts of errors.
create table instructors (
id serial primary key,
auth0id text unique not null,
name varchar(30) not null,
email varchar(100) unique not null
);
create table instructor_profile (
id serial primary key,
instructor_id integer references instructors(id),
age integer not null,
gender varchar(10) not null,
price integer(10,2) not null,
imgUrl text not null,
about text not null,
yearsTeaching integer not null,
acoustic boolean,
electric boolean,
latitude text,
longitude text
);