Part I
I have a database model with members and organizations with each organization has many members, so it is clear that is a one-to-many relationship. The difficulty is that among those members there should be exactly one admin and the others are just members. How to model this situation?
I thought about adding an admin_id as a foreign key in the organization table that reference a member in the member table instead of adding a role attribute to the member table. Does this approach fulfill the requirement?
Part II
the application require that alongside an admin, there should be a super admin who can view, edit and delete etc... all the organizations, but the super admin is not a member within an organization. So how can i model the super admin in this situation? does an orphan table that represent super admins fulfill the requirement? if not, what is the best way to model my database based on those requirement?
i tried Database model with users, roles and rights but look like it does not meet my use case. can a solution be derived from the previous link?
Edit
for the sake of clarification, here is every role with its privileges super admin: create, delete and edit an organization, assign admin to each organization, add members to each organization
admin: manage member within an organization