Add DIRECT_URI on env and prisma

This commit is contained in:
Judson Cairo 2024-08-29 15:10:04 -03:00
parent c63cb23433
commit 8b5ca0c9c4
2 changed files with 4 additions and 2 deletions

View File

@ -23,6 +23,7 @@ DEL_INSTANCE=false
# Provider: postgresql | mysql
DATABASE_PROVIDER=postgresql
# DATABASE_DIRECT_URL='' # Direct connection to the database
DATABASE_CONNECTION_URI='postgresql://user:pass@localhost:5432/evolution?schema=public'
# Client name for the database connection
# It is used to separate an API installation from another that uses the same database.

View File

@ -9,8 +9,9 @@ generator client {
}
datasource db {
provider = "postgresql"
url = env("DATABASE_CONNECTION_URI")
provider = "postgresql"
url = env("DATABASE_CONNECTION_URI")
directUrl = env("DATABASE_DIRECT_URL")
}
enum InstanceConnectionStatus {