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

export class UploadMediaInputDTO {
  @ApiProperty({ type: 'string', format: 'binary' })
  file: unknown;

  @ApiProperty()
  @IsString()
  type: string = '';

  @ApiProperty({ required: false })
  @IsString()
  @IsOptional()
  category?: string;
}