-- Insert initial lap records for Round 7 (Arlington, February 21, 2026)
-- These are the fastest lap times from the event

-- 450SX - Malcolm Stewart
INSERT INTO event_lap_records (event_round, class, lap_time, rider_name, rider_number, created_at, updated_at)
VALUES (
  7,
  '450SX',
  '48.439',
  'Malcolm Stewart',
  '27',
  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 - Cole Davies
INSERT INTO event_lap_records (event_round, class, lap_time, rider_name, rider_number, created_at, updated_at)
VALUES (
  7,
  '250SX',
  '49.350',
  'Cole Davies',
  '37',
  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());
