I am working on the database design for a store management platform and need some advice on the best approach to structure my tables user, user_platform, user_store, especially concerning user roles and Users.
Here is what I am trying to achieve:
Platform Management Users: I need a table to manage users who have access to the platform's management interface. These users are independent of the stores and can create roles and other users with different permissions within the platform.
Store Owners and Staff: When a store owner signs up, they become the admin of their store by default. This store admin can also create roles and manage other users specific to their store.
How can I design these tables ?
Any guidance or examples would be greatly appreciated!
Thank you!
Top comments (0)