Новое в объединениях, ограничениях и ссылках в PostgreSQL,
Вот две схемы таблиц, которые я пытаюсь создать. Таблица инструкторов работает просто отлично. Instructor_profile выдает всевозможные ошибки.
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
);