-- Add track_material column to rides table
ALTER TABLE rides 
ADD COLUMN track_material text;

COMMENT ON COLUMN rides.track_material IS 'Material used for the ride track (wood, steel, hybrid, aluminum, etc.)';

-- Add track_material to ride_versions table for version tracking
ALTER TABLE ride_versions
ADD COLUMN track_material text;

-- Add track_material to ride_submissions table
ALTER TABLE ride_submissions
ADD COLUMN track_material text;

-- Create an index for filtering
CREATE INDEX idx_rides_track_material ON rides(track_material) 
WHERE track_material IS NOT NULL;