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

export class CreateRoomDto {
  @ApiProperty({ description: 'Room name', example: 'Main Hall' })
  @IsString()
  @IsNotEmpty()
  name: string;

  @ApiProperty({ description: 'Room capacity', example: 30, minimum: 1 })
  @IsInt()
  @Min(1)
  capacity: number;

  @ApiPropertyOptional({ description: 'Room description' })
  @IsString()
  @IsOptional()
  description?: string;

  @ApiPropertyOptional({ description: 'Whether room is active', default: true })
  @IsBoolean()
  @IsOptional()
  isActive?: boolean;
}
