Hi.
I have a junction table with a composite primary key (ie. two field are used to define the primary key). I need link a third table to the junction table in a one to many relationship. In the attached photo relation_probleme.jpg, the table without any relations should be on the "many" side and the junction table on the "one" side.
The idea is that there are a many "elements" elements linked to many "inspections" and vica-versa. for each pair element-inspection i want to attribute a "condition", in turn this one "conditon" can be linked to many "recommandations".
I have considered using a single field primary key in the junction table called id_cond, but I don't want to do it like this because i don't want to the possibility of an element being attributed multiple conditions for the same inspection.
So how do I do it?