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

export class ClockOutDto {
  @ApiPropertyOptional({
    description: 'Optional note for the clock-out entry',
    example: 'Finished project milestone',
    maxLength: 500,
  })
  @IsOptional()
  @IsString()
  @MaxLength(500)
  note?: string;
}
