From 2fa2d7006be8dc274ec6b7a1f356fe6053868e09 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 25 Mar 2025 19:29:48 +0100 Subject: [PATCH] Lib: Add ScrapedDriverStanding + ScrapedTeamStanding to schema --- src/lib/schema.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/lib/schema.ts b/src/lib/schema.ts index 2605d0a..460fff3 100644 --- a/src/lib/schema.ts +++ b/src/lib/schema.ts @@ -150,9 +150,23 @@ export interface RacePickPointsAcc { export interface ScrapedRaceResult { id: string; - race_step: number; - driver_code: string; + race_step: number; // This maps to races + driver_code: string; // This maps to drivers position: number; status: string; // Either contains time to leader or DNF/DSQ... points: number; } + +export interface ScrapedDriverStanding { + id: string; + driver_code: string; // This maps to drivers + position: number; + points: number; +} + +export interface ScrapedTeamStanding { + id: string; + team_fullname: string; // TODO: This does NOT map to teams! Add fullname to team data! + position: number; + points: number; +}