B2B application: users has its own users
0
votes
1
answer
237
views
B2B Scenario I am trying is that:
The following Roles exists in the system: 1. Super Admin 2. Super Admin Staff 3. Owner (client) 4. Admin (owner i.e. client and creates admin to define sales counters) 5. Sales Counters That means there are users who'll create their own sub users e.g.
**[FLAG-A]** ROLE "SUPER ADMIN" creates a ROLE "Owner" and "OWNER" creates its own sub users ROLES i.e. "ADMN" & "SALES COUNTER". Each role obviously has its info to login to the system I tried to design database as following:
In this diagram I am assuming that main user creates sub user that in my view many to many relationship so I have to add table between them as "USER_PERSON".
Problem is to set "WHO CREATED USER" in the system. I mean which user has created sub user as described in **[FLAG-A]**
Please check this diagram
The following Roles exists in the system: 1. Super Admin 2. Super Admin Staff 3. Owner (client) 4. Admin (owner i.e. client and creates admin to define sales counters) 5. Sales Counters That means there are users who'll create their own sub users e.g.
**[FLAG-A]** ROLE "SUPER ADMIN" creates a ROLE "Owner" and "OWNER" creates its own sub users ROLES i.e. "ADMN" & "SALES COUNTER". Each role obviously has its info to login to the system I tried to design database as following:

Please check this diagram

Asked by Murteza
(5 rep)
Feb 23, 2021, 09:22 PM
Last activity: Feb 24, 2021, 09:23 AM
Last activity: Feb 24, 2021, 09:23 AM