Ошибки при создании нескольких таблиц со связями в apex.oracle

Возникают ошибки в apex.oracle. Пытаюсь создать базу из 6 таблиц, как видно из кода. Две промежуточные "Recipe" и "DishinYouOrder", остальные с одним ключом.

На скриншоте видно ошибки, но не могу разобраться в чём проблема.

введите сюда описание изображения

`create table Ingredients (IDIngredient int not null primary key, nameIN varchar (50) not null, price int not null);

create table Menu (IDDish int primary key, NameDish varchar (50) not null, price int not null, calories int not null, weight int not null);

create table Recipe (
    IDRecipe int not null, 
    IDIngredient int not null references Ingredients (IDIngredient), 
    IDDish int not null references Menu (IDDish));

create table YouOrder (
    IDOrder int not null primary key, IDemployee int not null, Numberofservings int not null, Tablecode int not null, DateOrder date, SumOrder int not null);

create table DishinYouOrder (
    IDDish int not null references Menu (IDDish), 
    IDOrder int not null references YouOrder (IDOrder),
    price int not null,
    Numberofservings int not null);

create table Employee (IDOrder int not null primary key, Tablecode int not null, IDEmployee int not null, FIO varchar (150) not null, phone int not null);
`

Надеюсь на вашу помощь! Заранее спасибо!


Ответы (0 шт):