mirror of
https://github.com/immich-app/immich.git
synced 2025-12-28 09:14:59 +03:00
20 lines
587 B
TypeScript
20 lines
587 B
TypeScript
import { Column, CreateDateColumn, Entity, Index, PrimaryColumn } from 'typeorm';
|
|
|
|
@Entity('partners_audit')
|
|
export class PartnerAuditEntity {
|
|
@PrimaryColumn({ type: 'uuid', nullable: false, default: () => 'immich_uuid_v7()' })
|
|
id!: string;
|
|
|
|
@Index('IDX_partners_audit_shared_by_id')
|
|
@Column({ type: 'uuid' })
|
|
sharedById!: string;
|
|
|
|
@Index('IDX_partners_audit_shared_with_id')
|
|
@Column({ type: 'uuid' })
|
|
sharedWithId!: string;
|
|
|
|
@Index('IDX_partners_audit_deleted_at')
|
|
@CreateDateColumn({ type: 'timestamptz', default: () => 'clock_timestamp()' })
|
|
deletedAt!: Date;
|
|
}
|