I have a question regarding how to best model a relationship in relational database (I'm using MySQL):
I have an entity "Product" that should be linked to one or more stakeholders. I modelled that relationship with a separate table "Stakeholders" that contains the names of the stakeholders and a linking table "Product2Stakeholder" that links products and stakeholders.
However, I also want to specify one main stakeholder per product. I'm wondering if to do that, I should
- a) define a foreign key field in the "Product" table that contains the Id of the main stakeholder from the "Stakeholders" table (e.g. "MainStakeholder"), or
- b) add a column to the "Product2Stakeholder" table containing the info if the stakeholder is the main stakeholder for that product (i.e. a boolean column "IsMainStakeholder"), or
- c) take an altogether different approach?
Thanks.