Hey DF Community,
I am a newbie and requires help on setting schema for database for my new app. The requirements are mentioned below:
- User Table (Already defined in the system)
- Groups Table
- Users are able to form new groups.
- Users who create the group are assigned admin to the group and have ability to add/ remove other users to the group and even delete a group.
- Users who are not admin to the group have only the options to join a group by a sending a request and leaving the group.
- And off course, no user should be able to hack others’ comments.
- How to create roles allowing a user to become a group administrator?
- How to change roles for users who just created a group to be now called a group administrator?
- The schema I have created here is based on my understanding. Please change it if you think it’s needed.