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

export class CreateStationDto {
  @ApiProperty({ example: 'ADD' }) @IsString() code: string;
  @ApiProperty({ example: 'Addis Ababa' }) @IsString() name: string;
  @ApiProperty({ example: 'Addis Ababa' }) @IsString() city: string;
  @ApiPropertyOptional() @IsOptional() @IsString() timezone?: string;
  @ApiProperty({ example: 9.0054 }) @IsNumber() lat: number;
  @ApiProperty({ example: 38.7636 }) @IsNumber() lng: number;
}
