From 43f33edc8b17ee5ffb405164c849c7f5eae8214f Mon Sep 17 00:00:00 2001 From: Wira Basalamah Date: Tue, 21 Apr 2026 12:21:51 +0700 Subject: [PATCH] chore: switch prisma datasource to postgresql --- .env.example | 3 ++- prisma/schema.prisma | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index d0a36bd..4babd36 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ -DATABASE_URL="file:./dev.db" +# Prisma datasource: production uses PostgreSQL in this project. +DATABASE_URL="postgresql://whatsapp_inbox:YOUR_DB_PASSWORD@127.0.0.1:5432/whatsapp_inbox?schema=public" AUTH_SECRET="change-me" WHATSAPP_API_TOKEN="your-meta-token" WHATSAPP_API_VERSION="v22.0" diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 9ea398a..0b8a173 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -3,7 +3,7 @@ generator client { } datasource db { - provider = "sqlite" + provider = "postgresql" url = env("DATABASE_URL") }