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

export class ClockInDto {
  @ApiPropertyOptional({
    description: 'Optional note for the clock-in entry',
    example: 'Starting from home office today',
    maxLength: 500,
  })
  @IsOptional()
  @IsString()
  @MaxLength(500)
  note?: string;
}
