Using drizzle to make project-per-tenant?
B2B SaaS:
How can I automate onboarding for new organizations using drizzle in a shared application, one db-per-tenant?
For example creating organization at sign-up, and getting a database right away?
The application could probably make do by using shared database, shared schema. But I am planning to implement AI features later, where the AI only has access to each tenants data, so planning to use db-per-tenant for data isolation, and hoping management can be automated by using Neon’s API.
(Nextjs application with Clerk auth)
How can I automate onboarding for new organizations using drizzle in a shared application, one db-per-tenant?
For example creating organization at sign-up, and getting a database right away?
The application could probably make do by using shared database, shared schema. But I am planning to implement AI features later, where the AI only has access to each tenants data, so planning to use db-per-tenant for data isolation, and hoping management can be automated by using Neon’s API.
(Nextjs application with Clerk auth)
