I have two table
user: only one field - user_id (UNN) (PK)
and
reffer: two field - reffer_refid (NN) (PFK)
- reffer_userid (NN) (PFK)
for both last field primary foreign key field from first table.
I can't change database structure, but need unique field from last table.
I heard about system uin in all postgres table.
How I can get it?
Please help!