-- Long-stay: charge full deposit amount instead of hold (bypass 7-day YooKassa limit) ALTER TABLE hotel_deposit_settings ADD COLUMN IF NOT EXISTS long_stay_full_payment BOOLEAN NOT NULL DEFAULT false, ADD COLUMN IF NOT EXISTS long_stay_threshold_days INT NOT NULL DEFAULT 7; -- Auto-confirm booking on successful online payment (per payment gateway) ALTER TABLE hotel_payment_gateways ADD COLUMN IF NOT EXISTS auto_confirm_on_payment BOOLEAN NOT NULL DEFAULT true; -- Track refunded amount for captured (charged) deposits ALTER TABLE booking_deposits ADD COLUMN IF NOT EXISTS refunded_amount NUMERIC(12,2);