2024-03-20 22:02:51 +01:00
|
|
|
import { AssetEntity } from 'src/entities/asset.entity';
|
2023-11-10 02:55:00 +01:00
|
|
|
import { Column, Entity, JoinColumn, OneToOne, PrimaryColumn } from 'typeorm';
|
|
|
|
|
|
|
|
@Entity('asset_job_status')
|
|
|
|
export class AssetJobStatusEntity {
|
|
|
|
@OneToOne(() => AssetEntity, { onDelete: 'CASCADE', onUpdate: 'CASCADE' })
|
|
|
|
@JoinColumn()
|
|
|
|
asset!: AssetEntity;
|
|
|
|
|
|
|
|
@PrimaryColumn()
|
|
|
|
assetId!: string;
|
|
|
|
|
|
|
|
@Column({ type: 'timestamptz', nullable: true })
|
|
|
|
facesRecognizedAt!: Date | null;
|
2024-01-13 01:39:45 +01:00
|
|
|
|
|
|
|
@Column({ type: 'timestamptz', nullable: true })
|
|
|
|
metadataExtractedAt!: Date | null;
|
2024-05-16 19:08:37 +02:00
|
|
|
|
|
|
|
@Column({ type: 'timestamptz', nullable: true })
|
|
|
|
duplicatesDetectedAt!: Date | null;
|
2024-08-19 19:50:00 +02:00
|
|
|
|
|
|
|
@Column({ type: 'timestamptz', nullable: true })
|
|
|
|
previewAt!: Date | null;
|
|
|
|
|
|
|
|
@Column({ type: 'timestamptz', nullable: true })
|
|
|
|
thumbnailAt!: Date | null;
|
2023-11-10 02:55:00 +01:00
|
|
|
}
|