I'm trying to understand the best way to model the following relationship:
I have a table named Contact that has records of contacts uniquely identified using a serial field and other fields like name, phone, address and so on.
I also have a table named ProductInfo that has several fields including three fields named Author, Distributor and PointOfContact that each can have 1..n contacts from table Contact. So, in this way, this means that I can have two authors, 3 distributors and 1 point of contact to the same product.
I was thinking of storing this info in ProductInfo table with arrays of contact_id in each field, but this seems not to be the best approach.
Can you tell me what should I do?