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

@@ -8,12 +8,15 @@ export class TeamSummaryViewModel {
description?: string;
totalWins: number = 0;
totalRaces: number = 0;
performanceLevel: string = '';
performanceLevel: 'beginner' | 'intermediate' | 'advanced' | 'pro' = 'intermediate';
isRecruiting: boolean = false;
specialization: string | undefined;
specialization: 'endurance' | 'sprint' | 'mixed' | undefined;
region: string | undefined;
languages: string[] = [];
leagues: string[] = [];
logoUrl: string | undefined;
rating: number | undefined;
category: string | undefined;
private maxMembers = 10; // Assuming max members
@@ -23,10 +26,19 @@ export class TeamSummaryViewModel {
this.tag = dto.tag;
this.memberCount = dto.memberCount;
this.description = dto.description;
this.specialization = dto.specialization;
this.specialization = dto.specialization as 'endurance' | 'sprint' | 'mixed' | undefined;
this.region = dto.region;
this.languages = dto.languages ?? [];
this.leagues = dto.leagues;
// Map stats fields from DTO
this.totalWins = dto.totalWins ?? 0;
this.totalRaces = dto.totalRaces ?? 0;
this.performanceLevel = (dto.performanceLevel as 'beginner' | 'intermediate' | 'advanced' | 'pro') ?? 'intermediate';
this.logoUrl = dto.logoUrl;
this.rating = dto.rating;
this.category = dto.category;
this.isRecruiting = dto.isRecruiting ?? false;
}
/** UI-specific: Whether team is full */