DEV Community

Mohamed Sameer
Mohamed Sameer

Posted on

How i build the multi-tenant SaaS product using node + postgres + sequelize

Here it is Multi-tenant

Discussion (2)

Collapse
michaelgv profile image
Mike

For what it’s worth, tenant IDs would be much better - coming from a company where all we do is build multi-tenant, you don’t want 500,000,000 copies of your DB in schemes, simply put you’ll forget to update some, you’ll suffer when your updates go out without updating everyone. You’ll eventually forget, we all do, then the suffering comes.

Collapse
msameerbm profile image
Mohamed Sameer Author

I found sequelize migrations to update the tables inside schemas dynamically 😅

docs.sequelizejs.com/manual/tutori...