I have a simple events app where there are events and users, users can join multiple events. Each event is a single row in the events table. The users have there own users table.
I'm trying to find the easiest and economical way to store all those users that are attending an event. At the moment im thinking of storing the users id in a attendees field on the events table - i would have to separate them with a comma.
I'm find with that part but im struggling to think of a way to read this field, split them into an array and then fetch the full name of each user.
Hope that makes sense.