import { IsUUID, IsNotEmpty, IsString, MaxLength, IsOptional } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class AssignClientDto {
  @ApiProperty({
    description: 'Client UUID to assign',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  @IsUUID()
  @IsNotEmpty()
  clientId: string;

  @ApiProperty({
    description: 'Trainer UUID to assign the client to',
    example: '550e8400-e29b-41d4-a716-446655440001',
  })
  @IsUUID()
  @IsNotEmpty()
  trainerId: string;

  @ApiPropertyOptional({
    description: 'Optional comment for the assignment',
    maxLength: 500,
  })
  @IsString()
  @MaxLength(500)
  @IsOptional()
  comment?: string;
}
