-- Migration 084 — review tokens on bookings

ALTER TABLE bookings
  ADD COLUMN IF NOT EXISTS review_token          TEXT UNIQUE,
  ADD COLUMN IF NOT EXISTS review_email_sent_at  TIMESTAMPTZ,
  ADD COLUMN IF NOT EXISTS review_retry_sent_at  TIMESTAMPTZ;

CREATE INDEX IF NOT EXISTS idx_bookings_review_token ON bookings(review_token);
