A CLI and client library that enables Prisma to manage and access multiple tenant databases seamlessly.
Prisma-multi-tenant is a CLI and client library that enables Prisma to function as a multi-tenant database provider for applications. It solves the problem of managing multiple isolated databases for different tenants (e.g., companies or organizations) within a single application instance by automating tenant creation, migrations, and data access.
Backend developers building SaaS applications or platforms that require isolated data per customer using Prisma as their ORM.
Developers choose Prisma-multi-tenant because it extends Prisma's native tooling to handle multi-tenancy seamlessly, reducing boilerplate code and ensuring schema consistency across all tenant databases with minimal configuration.
🧭 Use Prisma as a multi-tenant provider for your application
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
CLI commands like 'new', 'migrate', and 'delete' handle database creation, updates, and removal, reducing manual ops as shown in the usage section.
The MultiTenant class retrieves Prisma Client instances for specific tenants with minimal code, simplifying data access in server logic.
Automated migrations ensure all tenant databases maintain the same schema, preventing drift and manual errors.
Documentation includes ready-made guides for Express, Apollo, Blitz, and Redwood, easing adoption in various stacks.
As a community extension, it relies on a single maintainer and could break with Prisma updates, lacking official support.
The README strongly recommends a tutorial, indicating non-trivial initial configuration and potential integration hurdles.
Planned integrations like Bison are marked as TODO, showing gaps in framework coverage and slower development pace.