import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { Team } from 'src/teams/entities/team.entity';

export class CreatePenaltyDTO {
  @ApiProperty({ example: 2342 })
  @IsNotEmpty()
  teamId: number;

  @ApiProperty({ example: 1 })
  @IsNotEmpty()
  amount: number;

  team?: Team;

  @ApiProperty({ example: 'Zu spät kommen' })
  @IsNotEmpty()
  description: string;
}
