import { IsString, IsOptional, IsObject, MaxLength } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateLootProfileDto {
  @ApiProperty({ example: 'Vanilla 2x' })
  @IsString()
  @MaxLength(100)
  profile_name: string;

  @ApiPropertyOptional({ example: 'Standard 2x loot table' })
  @IsString()
  @IsOptional()
  description?: string;

  @ApiPropertyOptional()
  @IsObject()
  @IsOptional()
  loot_table?: Record<string, any>;

  @ApiPropertyOptional()
  @IsObject()
  @IsOptional()
  loot_groups?: Record<string, any>;
}
