-- Migration 170: Default rental prices on hardware assets
-- Stores asset-level default prices used to prefill quick-rent flow.

ALTER TABLE hardware_assets
ADD COLUMN IF NOT EXISTS rental_default_start_price DECIMAL(10,2)
    CHECK (rental_default_start_price IS NULL OR rental_default_start_price >= 0),
ADD COLUMN IF NOT EXISTS rental_default_freight_price DECIMAL(10,2)
    CHECK (rental_default_freight_price IS NULL OR rental_default_freight_price >= 0),
ADD COLUMN IF NOT EXISTS rental_default_preparation_price DECIMAL(10,2)
    CHECK (rental_default_preparation_price IS NULL OR rental_default_preparation_price >= 0),
ADD COLUMN IF NOT EXISTS rental_default_operations_monthly_price DECIMAL(10,2)
    CHECK (rental_default_operations_monthly_price IS NULL OR rental_default_operations_monthly_price >= 0);

COMMENT ON COLUMN hardware_assets.rental_default_start_price IS 'Default startup price for quick-rent orders.';
COMMENT ON COLUMN hardware_assets.rental_default_freight_price IS 'Default freight price for quick-rent orders.';
COMMENT ON COLUMN hardware_assets.rental_default_preparation_price IS 'Default preparation price for quick-rent orders.';
COMMENT ON COLUMN hardware_assets.rental_default_operations_monthly_price IS 'Default monthly operations price for quick-rent orders.';