© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•15mo ago•
8 replies
Montgomery Burns

Guidance on Creating a Multi-Tenant Application with PostgreSQL Schemas

Hi friends,

I’m working on creating a multi-tenant application where each tenant is assigned a separate PostgreSQL schema. I have a few questions and would greatly appreciate your insights:

What is the best approach to implement this kind of multi-tenancy?
I’m considering using an environment variable to manage the list of tenants. My goal is to ensure that when I run drizzle push, it modifies the schemas for all tenants automatically.
Is this approach feasible? Unfortunately, I couldn’t find much information online, so any advice or resources you could share would be immensely helpful.

Thank you very much for your time and support!

Best regards,
Montgomery Burns
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Multi-File Schemas
Drizzle TeamDTDrizzle Team / help
3y ago
Best approach for multi-tenant system with Drizzle?
Drizzle TeamDTDrizzle Team / help
9mo ago
[BUG?] Handling Postgresql schemas when using enums
Drizzle TeamDTDrizzle Team / help
2y ago
Creating composite types in PostgreSQL
Drizzle TeamDTDrizzle Team / help
3y ago