From c6b708f2f67e5f0f62aeacaea949f38c25aaa821 Mon Sep 17 00:00:00 2001 From: Nishad Date: Fri, 10 Nov 2023 16:53:41 +0530 Subject: [PATCH] refactor schema prisma for connection pool database Signed-off-by: Nishad --- libs/prisma-service/prisma/schema.prisma | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/prisma-service/prisma/schema.prisma b/libs/prisma-service/prisma/schema.prisma index d2e8cb680..fcef6ebce 100644 --- a/libs/prisma-service/prisma/schema.prisma +++ b/libs/prisma-service/prisma/schema.prisma @@ -4,7 +4,8 @@ generator client { datasource db { provider = "postgresql" - url = env("DATABASE_URL") + url = env("POOL_DATABASE_URL") + directUrl = env("DATABASE_URL") } model user {