import { IsString, IsDateString, IsInt, IsUUID, IsOptional } from 'class-validator';

export class CreateFlightDto {
  @IsUUID()
  vipId: string;

  @IsString()
  flightNumber: string;

  @IsDateString()
  flightDate: string;

  @IsInt()
  @IsOptional()
  segment?: number;

  @IsString()
  departureAirport: string;

  @IsString()
  arrivalAirport: string;

  @IsDateString()
  @IsOptional()
  scheduledDeparture?: string;

  @IsDateString()
  @IsOptional()
  scheduledArrival?: string;

  @IsDateString()
  @IsOptional()
  actualDeparture?: string;

  @IsDateString()
  @IsOptional()
  actualArrival?: string;

  @IsString()
  @IsOptional()
  status?: string;
}
