feat: Initialize Prisma database schema and update deployment scripts for robust migration handling.

This commit is contained in:
Moh Dzulfikri Maulana
2026-03-09 01:11:58 +07:00
parent ecd09904cf
commit 9abf68320a
6 changed files with 183 additions and 19 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
db:
image: postgres:15-alpine
@@ -40,7 +38,7 @@ services:
db:
condition: service_healthy
command: >
sh -c "npx prisma db push && node server.js"
sh -c "npx prisma migrate deploy && node server.js"
volumes:
postgres_data: