mirror of
https://github.com/immich-app/immich.git
synced 2026-02-09 03:08:53 +03:00
15 lines
430 B
TypeScript
15 lines
430 B
TypeScript
import { Column, CreateDateColumn, Entity, Index, PrimaryColumn } from 'typeorm';
|
|
|
|
@Entity('users_audit')
|
|
export class UserAuditEntity {
|
|
@PrimaryColumn({ type: 'uuid', nullable: false, default: () => 'immich_uuid_v7()' })
|
|
id!: string;
|
|
|
|
@Column({ type: 'uuid' })
|
|
userId!: string;
|
|
|
|
@Index('IDX_users_audit_deleted_at')
|
|
@CreateDateColumn({ type: 'timestamptz', default: () => 'clock_timestamp()' })
|
|
deletedAt!: Date;
|
|
}
|