#!/bin/bash
echo "=== direct supabase host (postgres superuser) ==="
timeout 20 psql "host=db.srmitihkajyjijvialqj.supabase.co port=5432 dbname=postgres user=postgres password=UjianYuk@2026 sslmode=require" -tAc "select current_user,version()" 2>&1 | head -3
echo "=== direct host (app user) ==="
timeout 20 psql "host=db.srmitihkajyjijvialqj.supabase.co port=5432 dbname=cbtapps user=cbtappsc_admin password=xSql7PbdT%~3c-t^ sslmode=require" -tAc "select current_user,current_database()" 2>&1 | head -3
echo "=== DNS ==="
getent hosts db.srmitihkajyjijvialqj.supabase.co aws-1-ap-southeast-1.pooler.supabase.com 2>&1 | head -5
