mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
17 lines
566 B
TypeScript
17 lines
566 B
TypeScript
|
|
import { Column, ColumnIndex, ForeignKeyColumn, Table } from 'src/sql-tools';
|
||
|
|
import { AssetFaceTable } from 'src/tables/asset-face.table';
|
||
|
|
|
||
|
|
@Table({ name: 'face_search', primaryConstraintName: 'face_search_pkey' })
|
||
|
|
export class FaceSearchTable {
|
||
|
|
@ForeignKeyColumn(() => AssetFaceTable, {
|
||
|
|
onDelete: 'CASCADE',
|
||
|
|
primary: true,
|
||
|
|
constraintName: 'face_search_faceId_fkey',
|
||
|
|
})
|
||
|
|
faceId!: string;
|
||
|
|
|
||
|
|
@ColumnIndex({ name: 'face_index', synchronize: false })
|
||
|
|
@Column({ type: 'vector', array: true, length: 512, synchronize: false })
|
||
|
|
embedding!: string;
|
||
|
|
}
|