seed data

This commit is contained in:
2025-12-30 18:33:15 +01:00
parent 83371ea839
commit 92226800df
306 changed files with 1753 additions and 501 deletions

View File

@@ -18,4 +18,7 @@ export class DriverDTO {
@ApiProperty()
joinedAt!: string;
@ApiProperty({ required: false })
category?: string;
}

View File

@@ -13,6 +13,9 @@ export class DriverLeaderboardItemDTO {
@ApiProperty()
skillLevel!: string; // Assuming skillLevel is a string like 'Rookie', 'Pro', etc.
@ApiProperty({ required: false })
category?: string;
@ApiProperty()
nationality!: string;

View File

@@ -19,6 +19,9 @@ export class DriverProfileDriverSummaryDTO {
@ApiProperty()
joinedAt!: string;
@ApiProperty({ nullable: true })
category!: string | null;
@ApiProperty({ nullable: true })
rating!: number | null;

View File

@@ -19,6 +19,9 @@ export class GetDriverOutputDTO {
@ApiProperty()
joinedAt!: string;
@ApiProperty({ required: false })
category?: string;
@ApiProperty({ required: false })
rating?: number;

View File

@@ -33,6 +33,7 @@ export class DriverPresenter {
country: driver.country.toString(),
joinedAt: driver.joinedAt.toDate().toISOString(),
...(driver.bio ? { bio: driver.bio.toString() } : {}),
...(driver.category ? { category: driver.category } : {}),
// Add stats fields
...(stats ? {
rating: stats.rating,

View File

@@ -18,6 +18,7 @@ export class DriverProfilePresenter
avatarUrl: this.getAvatarUrl(result.driverInfo.driver.id) || '',
iracingId: result.driverInfo.driver.iracingId.toString(),
joinedAt: result.driverInfo.driver.joinedAt.toDate().toISOString(),
category: result.driverInfo.driver.category || null,
rating: result.driverInfo.rating,
globalRank: result.driverInfo.globalRank,
consistency: result.driverInfo.consistency,

View File

@@ -13,6 +13,7 @@ export class DriversLeaderboardPresenter {
name: item.driver.name.toString(),
rating: item.rating,
skillLevel: item.skillLevel,
...(item.driver.category !== undefined ? { category: item.driver.category } : {}),
nationality: item.driver.country.toString(),
racesCompleted: item.racesCompleted,
wins: item.wins,