I am working on a program where I would like to like create a Group with Users which is then always there and saved in a MySQL Database. I just don't have any clue how to do this. I mean I could create a Table like:
GROUPID INT PRIMARY KEY
GROUPNAME TEXT
USER1ID INT
USER2ID INT
USER3ID INT
Then I would have to create A table which can take like lets say in this case 3 Users but isn't that a not performant and no possibility to dynamically make the group bigger. If I would like to make a friends list out of the Group then I also can't say that the User can have only 3 Friends. How can I solve this problem?