-- Add is_active flag to rental_objects (false = template/draft, true = published) ALTER TABLE rental_objects ADD COLUMN IF NOT EXISTS is_active BOOLEAN NOT NULL DEFAULT true; -- Mark all existing objects as active (they were already in use) UPDATE rental_objects SET is_active = true;