Hey DF Community,
I am a newbie and requires help on setting schema for database for my new app. The requirements are mentioned below:
Tables
- User Table (Already defined in the system)
- Groups Table
[This image is no longer available] - Comments
[This image is no longer available]
Requirements
- 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.
Questions
- 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?
Notes
- The schema I have created here is based on my understanding. Please change it if you think it’s needed.