WIP - multitenant initial work

This commit is contained in:
Francisco Gaona
2025-11-29 05:09:00 +01:00
parent 859dca6c84
commit 57f27d28cd
36 changed files with 2784 additions and 36 deletions

View File

@@ -1,13 +1,14 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Tenant-specific database schema
// This schema is applied to each tenant's database
generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/tenant"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
url = env("TENANT_DATABASE_URL")
}
// Multi-tenancy