import { IsString, IsNumber, IsOptional, IsInt, IsBoolean } 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() countryCode?: string;
  @ApiPropertyOptional({ example: 9.0054 }) @IsOptional() @IsNumber() lat?: number;
  @ApiPropertyOptional({ example: 38.7636 }) @IsOptional() @IsNumber() lng?: number;
  @ApiPropertyOptional({ example: 1 }) @IsOptional() @IsInt() sequence?: number;
  @ApiPropertyOptional({ example: true }) @IsOptional() @IsBoolean() isOperational?: boolean;
}
