-- Track provider-backed bill payment initiation state. ALTER TABLE "BillPayment" ADD COLUMN "status" TEXT NOT NULL DEFAULT 'completed'; ALTER TABLE "BillPayment" ADD COLUMN "provider" TEXT; ALTER TABLE "BillPayment" ADD COLUMN "providerPaymentId" TEXT; CREATE INDEX "BillPayment_userId_status_idx" ON "BillPayment"("userId", "status"); CREATE INDEX "BillPayment_provider_providerPaymentId_idx" ON "BillPayment"("provider", "providerPaymentId");