-- Add video_type and duration_seconds columns to exercise_videos table
ALTER TABLE exercise_videos 
ADD COLUMN IF NOT EXISTS video_type TEXT DEFAULT 'exercise' 
CHECK (video_type IN ('exercise', 'rest'));

ALTER TABLE exercise_videos 
ADD COLUMN IF NOT EXISTS duration_seconds INTEGER;

-- Update existing rows to have appropriate values
UPDATE exercise_videos SET video_type = 'exercise' WHERE video_type IS NULL;
UPDATE exercise_videos SET duration_seconds = 8 WHERE duration_seconds IS NULL;
