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

export class GetMediaOutputDTO {
  @ApiProperty()
  @IsString()
  id: string = '';

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

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

  @ApiProperty()
  @IsString()
  @IsOptional()
  category?: string;

  @ApiProperty()
  uploadedAt: Date = new Date();

  @ApiProperty()
  @IsNumber()
  @IsOptional()
  size?: number;
}