On Tuesday, June 20, 2023, Lorusso Domenico <domenico(dot)l76(at)gmail(dot)com> wrote:
>
> Could work, but is there a way to set a reference key over the uuid of all
> the tables?
>
A foreign key in PostgreSQL is between two, and only two, tables. The PK
side of which must be uniquely constrained.
You can write custom triggers if you need something other than this.
David J.