import { ApiProperty } from '@nestjs/swagger';

export class DocumentVersionResponseDto {
  @ApiProperty({
    description: 'Document version ID (UUID)',
  })
  id: string;

  @ApiProperty({
    description: 'Document ID (UUID)',
  })
  documentId: string;

  @ApiProperty({
    description: 'Version number',
  })
  version: number;

  @ApiProperty({
    description: 'SHA-256 hash of the file',
  })
  hash: string;

  @ApiProperty({
    description: 'MinIO file path',
  })
  minioPath: string;

  @ApiProperty({
    description: 'File size in bytes',
  })
  fileSize: string;

  @ApiProperty({
    description: 'MIME type of the file',
  })
  mimeType: string;

  @ApiProperty({
    description: 'User ID who uploaded this version',
  })
  uploadedBy: string;

  @ApiProperty({
    description: 'Blockchain transaction hash',
    nullable: true,
  })
  blockchainTxHash: string | null;

  @ApiProperty({
    description: 'Version creation timestamp',
  })
  createdAt: Date;
}
