File

lib/common/file/entity/image-file-metadata.entity.ts

Description

The entity stores the image metadata of the file

Index

Properties

Properties

bitDepth
Type : number
Decorators :
@Index()
@Column('varchar', {nullable: true})
bps
Type : number
Decorators :
@Index()
@Column('int', {nullable: true, default: undefined})
colorComponents
Type : number
Decorators :
@Index()
@Column('int', {name: 'color_components', nullable: true, default: undefined})
colorType
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
compression
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
dateTime
Type : Date
Decorators :
@Index()
@Column('date', {name: 'date_time', nullable: true})
filter
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
height
Type : number
Decorators :
@Index()
@Column('int', {nullable: true, default: undefined})
id
Type : number
Decorators :
@PrimaryGeneratedColumn({zerofill: true})
interlace
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
subsampling
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
width
Type : number
Decorators :
@Index()
@Column('int', {nullable: true, default: undefined})
import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
import { ImageFileMetadata } from "../file.types";

/**
 * The entity stores the image metadata of the file
 */
@Entity("file_metadata_image")
export class ImageFileMetadataEntity implements ImageFileMetadata {
  @PrimaryGeneratedColumn({ zerofill: true })
  id: number;

  @Index()
  @Column("int", { nullable: true, default: null })
  bps: number;

  @Index()
  @Column("int", { nullable: true, default: null })
  width: number;

  @Index()
  @Column("int", { nullable: true, default: null })
  height: number;

  @Index()
  @Column("int", { name: "color_components", nullable: true, default: null })
  colorComponents: number;

  @Index()
  @Column("varchar", { nullable: true })
  subsampling: string;

  @Index()
  @Column("date", { name: "date_time", nullable: true })
  dateTime: Date;

  @Index()
  @Column("varchar", { nullable: true })
  bitDepth: number;

  @Index()
  @Column("varchar", { nullable: true })
  colorType: string;

  @Index()
  @Column("varchar", { nullable: true })
  compression: string;

  @Index()
  @Column("varchar", { nullable: true })
  filter: string;

  @Index()
  @Column("varchar", { nullable: true })
  interlace: string;
}

results matching ""

    No results matching ""