-- Covering index for the daily-audit dedup query in lib/gsc-audit.ts:
--   WHERE "dealerId" = ? AND "type" = ? AND "priority" = ?
--     AND "createdAt" >= ? AND "status" IN ('pending','running')
-- Equality columns first, the createdAt range last, so Postgres index-seeks
-- the dealer's audit jobs instead of scanning per dealer at scale.

-- CreateIndex
CREATE INDEX "GscJob_dealerId_type_priority_createdAt_idx" ON "GscJob"("dealerId", "type", "priority", "createdAt");
