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