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

export class CreateBattleSessionDto {
  @ApiPropertyOptional({ description: 'Session name' })
  @IsOptional()
  @IsString()
  name?: string;

  @ApiPropertyOptional({ description: 'Battle map ID' })
  @IsOptional()
  @IsString()
  mapId?: string;

  @ApiPropertyOptional({ description: 'Whether the session is active', default: false })
  @IsOptional()
  @IsBoolean()
  isActive?: boolean = false;
}
