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

export class CreateSeatClassDto {
  @ApiProperty({ example: 'Economy Seat' })
  @IsString()
  name: string;

  @ApiPropertyOptional({ example: 'Standard economy seating' })
  @IsOptional()
  @IsString()
  description?: string;

  @ApiProperty({ example: 45000, description: 'Base price in minor currency units' })
  @IsInt()
  basePrice: number;

  @ApiPropertyOptional({ example: true })
  @IsOptional()
  @IsBoolean()
  isActive?: boolean;
}

export class UpdateSeatClassDto extends PartialType(CreateSeatClassDto) {}
