feat: Add track material column and filtering

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 19:54:22 +00:00
parent 294019f7bd
commit f176c28df6
8 changed files with 185 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
-- 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;