import { Expose } from 'class-transformer';
import { IsDateString, IsDefined, IsOptional, IsString, MaxLength } from 'class-validator';

export class CreateTimeTrackingEntryAPIRequestsVC {
    @IsDefined()
    @IsString()
    @Expose()
    employeeId!: string;

    @IsDefined()
    @IsDateString()
    @Expose()
    now!: Date;

    @IsOptional()
    @IsString()
    @MaxLength(250)
    @Expose()
    comment?: string;
}
