I have a number of custom entities to help record events and bookings to events but think that I actually need another entity to help record a many to many relationship. Let me describe the entities I have and then the new entity I think I need.
1) Event: An entity to hold information about an event such as the venue, the date and the name of the event
2) Session: An event can have a number of sub-events and these are sessions. The information they hold are a lookup to the event they are at, the name of the session, the name of the room and the max capacity.
3) Event booking: An instance of 1 or more people booking onto an event. It will include the total price to be paid and link to a single event to record what event is involved. It will also link to a number of delegate records.
4) Delegate: A record to indicate a person attending an event. It includes dietary information and links to a contact record.
The issue I have is that a delegate needs to be linked to a session record. A delegate can attend 1 or more sessions at an event. And a session can have 1 or more delegates. At the same time, as each delegate books onto different sessions, then the event booking record will need to be updated. A session needs to have multiple delegates and a delegate can have multiple sessions. But when this is amended in the delegate record it also needs to amend the event booking so that the event booking record has the correct total booking amount (roll up field?)
Do I need a new entity between session and delegates to help with this? My diagram below might help explain this better.
*This post is locked for comments