mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
* Add AssetJobStatus * fentity * Add jobStatus field to AssetEntity * Fix the migration doc paths * Filter on facesRecognizedAt * Set facesRecognizedAt field * Test for facesRecognizedAt * Done testing * Adjust FK properties * Add tests for WithoutProperty.FACES * chore: non-nullable --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
15 lines
435 B
TypeScript
15 lines
435 B
TypeScript
import { Column, Entity, JoinColumn, OneToOne, PrimaryColumn } from 'typeorm';
|
|
import { AssetEntity } from './asset.entity';
|
|
|
|
@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;
|
|
}
|