-- Insert initial lap records for Round 9 (Indianapolis, March 7, 2026)
-- These are test fastest lap times for the event

-- 450SX - Jett Lawrence
INSERT INTO event_lap_records (event_round, class, lap_time, rider_name, rider_number, created_at, updated_at)
VALUES (
  9,
  '450SX',
  '47.892',
  'Jett Lawrence',
  '18',
  TIMEZONE('utc', NOW()),
  TIMEZONE('utc', NOW())
)
ON CONFLICT (event_round, class) 
DO UPDATE SET
  lap_time = EXCLUDED.lap_time,
  rider_name = EXCLUDED.rider_name,
  rider_number = EXCLUDED.rider_number,
  updated_at = TIMEZONE('utc', NOW());

-- 250SX - Haiden Deegan
INSERT INTO event_lap_records (event_round, class, lap_time, rider_name, rider_number, created_at, updated_at)
VALUES (
  9,
  '250SX',
  '48.765',
  'Haiden Deegan',
  '1',
  TIMEZONE('utc', NOW()),
  TIMEZONE('utc', NOW())
)
ON CONFLICT (event_round, class) 
DO UPDATE SET
  lap_time = EXCLUDED.lap_time,
  rider_name = EXCLUDED.rider_name,
  rider_number = EXCLUDED.rider_number,
  updated_at = TIMEZONE('utc', NOW());
