WIP - multitenant initial work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user