I have studidtemplates
table below:
template_id
is the primary_key
I want to create a new table referencing template_id
as a foreign key
. It is named studidtemplatetextelements
. See image below:
I created a column template_id
in the second table and want to make it a foreign key referencing template_id
in studidtemplates
table. I did it by clicking the button in the Constraints
tab,pointed by an arrow in the image below.
I notice something different. In 'Referencing' option there's no template_id
option available. See image below:
Where am I missing?
In pgAdmin 4, here are the steps:
Here's a screenshot: