#!/bin/sh
# Run database migrations at container startup
# This ensures DATABASE_URL is available from Coolify env vars

echo "Running Prisma DB setup..."
npx prisma db push --accept-data-loss --skip-generate
echo "Database setup complete!"
