Hi I have model table where i have mentioned the user role ID.
What i want to know is
- when the user login i want to check the user data with the model
table and i want get the user role ID. - after getting the role id i want to bind or assign the particular database to the user based on the user role's ID.
- Each client want to be assigned with individual database.
What i have
I have more than one client and a single client will have 10 to 20 user
I have a Native mobile application on front end and i use PHP on backend.
Till now i used one database per app so i have no idea about dynamically assigning database to individual client/user.
In my case
I am planing to rent AWS, or Microsoft Azure where i want to assign individual database to individual clients.
Client - is an organization. User- are people who use my application within thin the organization.
Thanks in advance....