15 lines
233 B
TypeScript
15 lines
233 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class RaceDTO {
|
|
@ApiProperty()
|
|
id!: string;
|
|
|
|
@ApiProperty()
|
|
name!: string;
|
|
|
|
@ApiProperty()
|
|
date!: string;
|
|
|
|
@ApiProperty({ nullable: true })
|
|
leagueName?: string;
|
|
} |