Skip to content

High performance self-hosted photo and video management solution.

538 B
Raw Blame
import { Column, CreateDateColumn, type Generated, Table, Timestamp } from '@immich/sql-tools';
import { PrimaryGeneratedUuidV7Column } from 'src/decorators.js';

@Table('person_group_audit')
export class PersonGroupAuditTable {
  @PrimaryGeneratedUuidV7Column()
  id!: Generated<string>;

  @Column({ type: 'uuid', index: true })
  personGroupId!: string;

  @Column({ type: 'uuid', index: true })
  clusterGroupId!: string;

  @CreateDateColumn({ default: () => 'clock_timestamp()', index: true })
  deletedAt!: Generated<Timestamp>;
}