import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsEnum } from 'class-validator';

export class UpdateLeagueMemberRoleInputDTO {
  @ApiProperty()
  @IsString()
  leagueId: string;

  @ApiProperty()
  @IsString()
  performerDriverId: string;

  @ApiProperty()
  @IsString()
  targetDriverId: string;

  @ApiProperty({ enum: ['owner', 'manager', 'member'] })
  @IsEnum(['owner', 'manager', 'member'])
  newRole: 'owner' | 'manager' | 'member';
}