In a simple database design, I have a table called person which has following columns:
id serial primary key,
full_name varchar(100),
city varchar(40),
certifications TEXT[]
There is another table called certification which stores the list of certifications which has one column
- certification_name TEXT primary key
I want to attribute these two table with a foreign key such that elements of certifications in person table refer to certification table. How to use a foreign key structure like this with an array? I use postgresql as database.