How can I avoid “ERROR: there is no unique constraint matching given keys for referenced table” on referencing combination primary key on Postgres?
I have the following table definition in the schema on pgAdmin4 I’m trying to execute:
I have the following table definition in the schema on pgAdmin4 I’m trying to execute: