import { ApiProperty } from '@nestjs/swagger';
import { ArrayMinSize, IsArray, IsDateString, IsUUID } from 'class-validator';

export class PreviewContainerTrainScheduleDto {
  @ApiProperty({ type: [String] })
  @IsArray()
  @ArrayMinSize(1)
  @IsUUID('4', { each: true })
  bookingIds!: string[];

  @ApiProperty({ example: '2026-06-20T08:00:00.000Z' })
  @IsDateString()
  scheduleDate!: string;

  @ApiProperty({ format: 'uuid' })
  @IsUUID()
  originStationId!: string;

  @ApiProperty({ format: 'uuid' })
  @IsUUID()
  destinationStationId!: string;
}
