help with mapping and relationship
Hi. thanks for taking the time. Im new to this. so please bare with me.
This project is all about Users and Events.
all users can create (become owner) of many Events.
all users can join many Events
the owner can accept or deny Joined Users.
my database looks like this now.
users : id, name, emal, password.
events : id, body, ownerId.
joined_events : id, ownerId, userId, eventId, is_accepted, is_denied.
I have not specified any relationship as it is now, so I use jsql to set/get the columns in joined_events.
Its time to upgrade and to my question:
Is this called that I have a one-to-many, one-to-one or many-to-many relationship between Users and Event ?