immich/server/src/entities/asset-face.entity.ts
2025-03-28 10:40:09 -04:00

22 lines
613 B
TypeScript

import { AssetEntity } from 'src/entities/asset.entity';
import { FaceSearchEntity } from 'src/entities/face-search.entity';
import { PersonEntity } from 'src/entities/person.entity';
import { SourceType } from 'src/enum';
export class AssetFaceEntity {
id!: string;
assetId!: string;
personId!: string | null;
faceSearch?: FaceSearchEntity;
imageWidth!: number;
imageHeight!: number;
boundingBoxX1!: number;
boundingBoxY1!: number;
boundingBoxX2!: number;
boundingBoxY2!: number;
sourceType!: SourceType;
asset!: AssetEntity;
person!: PersonEntity | null;
deletedAt!: Date | null;
}