import { NextResponse } from "next/server" import { prisma } from "@/lib/db" export async function GET() { try { await prisma.$queryRaw`SELECT 1` return NextResponse.json({ status: "ok", timestamp: Date.now(), database: "connected", }) } catch { return NextResponse.json( { status: "error", timestamp: Date.now(), database: "disconnected" }, { status: 503 }, ) } }