Files
gridpilot.gg/apps/api/src/domain/race/dtos/RaceDetailEntryDTO.ts
2025-12-31 15:39:28 +01:00

27 lines
486 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsBoolean } from 'class-validator';
export class RaceDetailEntryDTO {
@ApiProperty()
@IsString()
id!: string;
@ApiProperty()
@IsString()
name!: string;
@ApiProperty()
@IsString()
country!: string;
@ApiProperty({ nullable: true })
@IsString()
avatarUrl!: string | null;
@ApiProperty({ nullable: true })
rating!: number | null;
@ApiProperty()
@IsBoolean()
isCurrentUser!: boolean;
}