import { IsOptional, IsUUID, IsDateString } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class FindWorkScheduleDto {
  @ApiPropertyOptional({
    description: 'Filter by trainer UUID',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  @IsUUID()
  @IsOptional()
  trainerId?: string;

  @ApiPropertyOptional({
    description: 'Filter schedules from this date (ISO date string)',
    example: '2026-03-01',
  })
  @IsDateString()
  @IsOptional()
  dateFrom?: string;

  @ApiPropertyOptional({
    description: 'Filter schedules up to this date (ISO date string)',
    example: '2026-03-31',
  })
  @IsDateString()
  @IsOptional()
  dateTo?: string;
}
