import { IsString, IsUUID, Length } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class PurchaseDto {
  @ApiProperty({ description: 'Store item ID' })
  @IsUUID()
  item_id: string;

  @ApiProperty({ description: 'Player Steam ID' })
  @IsString()
  @Length(1, 20)
  steam_id: string;

  @ApiProperty({ description: 'Player display name' })
  @IsString()
  @Length(1, 100)
  player_name: string;
}
