How to reproduce the issue Clone the repo Run docker compose up --build Execute INSERT INTO public.room_users (room_id, user_id) VALUES ((SELECT "id" FROM "public"."room"), (SELECT "id" FROM "public"."users"));