Jump to content

Multi tenant Application


dyaab

Recommended Posts

Hello All,

Is there any example that showing how to implement multi tenant Application -separate database- using unigui or any blog about this topic. My idea is :  the end user connect to specific database based on given url, e.g. if i have two clients >>> Client1 & client2  each client should connect to it is Databse Based on his url   client1 >> Client1.MyApplication.com   and   Client2 >>> Client2.MyApplication.com.

Any Idea?

Link to comment
Share on other sites

Hi

I use (part of) this : https://www.getdonedone.com/building-the-optimal-user-database-model-for-your-application/

In one table i set some extra info like :

- database name
- database username
- database password

You create a login screen where the user can enter 3 things :

- username

- password

- company ID

Based on these 3 things he can login. The system search in the database for the companyID, knows
which databaseNAME, databaseUSERNAME and databasePASSWORD is needed to login to the database.

Regards Peter

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...