-- Add RMD client review columns to compliance_orders.
-- The client must review and approve the certification before we submit to FCC.

ALTER TABLE compliance_orders
  ADD COLUMN IF NOT EXISTS rmd_review_status   TEXT CHECK (rmd_review_status IN ('pending', 'approved', 'rejected')),
  ADD COLUMN IF NOT EXISTS rmd_reviewed_at     TIMESTAMPTZ,
  ADD COLUMN IF NOT EXISTS rmd_reviewer_email  TEXT,
  ADD COLUMN IF NOT EXISTS rmd_packet_minio_paths TEXT[];
