Вставка или обновление таблицы нарушает ограничение внешнего ключа на сайте UNO
Вот мой игрок Table
CREATE TABLE public."Players"
(
id integer NOT NULL DEFAULT nextval('"Players_id_seq"'::regclass),
game_id integer NOT NULL,
user_name text COLLATE pg_catalog."default" NOT NULL,
is_host boolean NOT NULL DEFAULT false,
is_bot boolean NOT NULL,
CONSTRAINT "Players_pkey" PRIMARY KEY (id),
CONSTRAINT "Players_game_id_fkey" FOREIGN KEY (game_id)
REFERENCES public."Games" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE CASCADE,
CONSTRAINT "Players_user_name_fkey" FOREIGN KEY (user_name)
REFERENCES public."Users" (name) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
)
вот мой пользователь Table
CREATE TABLE public."Users"
(
name text COLLATE pg_catalog."default" NOT NULL,
pwd text COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT "Users_pkey" PRIMARY KEY (name)
)