-- Migration 070 — Add 'reserved' booking status + payment_expires_at for widget bookings

-- Add 'reserved' to bookings status constraint
ALTER TABLE bookings DROP CONSTRAINT IF EXISTS bookings_status_check;
ALTER TABLE bookings ADD CONSTRAINT bookings_status_check
  CHECK (status IN ('inquiry','confirmed','checked_in','checked_out','cancelled','no_show','reserved'));

-- Add payment expiry column to online_bookings
ALTER TABLE online_bookings ADD COLUMN IF NOT EXISTS payment_expires_at TIMESTAMPTZ;
