-- Migration: add_mail_connection_status_fields
-- Adds error-tracking + IDLE heartbeat timestamp to mail_connections.
-- Deploy: pnpm prisma migrate deploy (on server)

ALTER TABLE "rebreak"."mail_connections"
  ADD COLUMN "last_connect_error"     TEXT,
  ADD COLUMN "last_connect_error_at"  TIMESTAMP(3),
  ADD COLUMN "last_idle_heartbeat_at" TIMESTAMP(3);
