SELECT column_name FROM information_schema.columns
WHERE table_schema = DATABASE() AND table_name = 'qipai_rooms'
  AND column_name IN ('full_day_price_cents', 'minimum_spend_cents')
ORDER BY column_name;

SELECT column_name FROM information_schema.columns
WHERE table_schema = DATABASE() AND table_name = 'qipai_orders'
  AND column_name = 'hold_expires_at';

SELECT table_name FROM information_schema.tables
WHERE table_schema = DATABASE()
  AND table_name IN (
    'qipai_holiday_calendar',
    'qipai_order_price_snapshots',
    'qipai_room_reservations'
  )
ORDER BY table_name;

SELECT table_name, index_name FROM information_schema.statistics
WHERE table_schema = DATABASE()
  AND ((table_name = 'qipai_order_price_snapshots'
      AND index_name = 'uq_qipai_price_snapshot_order')
    OR (table_name = 'qipai_room_reservations'
      AND index_name IN ('idx_qipai_reservation_overlap', 'idx_qipai_reservation_expiry')))
GROUP BY table_name, index_name ORDER BY table_name, index_name;

SELECT version, name FROM qipai_schema_migrations WHERE version = '2026061811';
