Currently I have a many to many relationship between users & events via a join table named participants.
user event participant
======== ======== =============
id id user_id
name title event_id
location
I want to add another table represneting a users transactions while at an event but I'm unsure if I should reference the join table or the two separate tables.
I think the two options are either this:
user event participant transaction
======== ======== ============= ============
id id user_id id
name title event_id amount
location user_id
event_id
Or this:
user event participant transaction
======== ======== ============= ============
id id user_id id
name title event_id amount
location participant_id