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

export class CheckInDto {
  @ApiPropertyOptional({ example: 25.2048, description: 'Optional GPS Latitude' })
  @IsNumber()
  @IsOptional()
  latitude?: number;

  @ApiPropertyOptional({ example: 55.2708, description: 'Optional GPS Longitude' })
  @IsNumber()
  @IsOptional()
  longitude?: number;
}

export class CheckOutDto {
  @ApiPropertyOptional({ example: 25.2048 })
  @IsNumber()
  @IsOptional()
  latitude?: number;

  @ApiPropertyOptional({ example: 55.2708 })
  @IsNumber()
  @IsOptional()
  longitude?: number;
}