I think you want the 'references' keyword. For example:
https://www.postgresql.org/docs/9.2/ddl-constraints.htmlhttps://www.postgresql.org/docs/current/ddl-constraints.html
create table inventory ( id INTEGER NOT NULL UNIQUE, ... other fields ); create table events ( eid INTEGER REFERENCES inventory(id), ... other fields );