mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 12:15:47 -04:00
* ci: print out typeorm generation changes * feat: sync implementation for the user entity wip --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
15 lines
394 B
TypeScript
15 lines
394 B
TypeScript
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('users_audit')
|
|
@Index('IDX_users_audit_deleted_at_asc_user_id_asc', ['deletedAt', 'userId'])
|
|
export class UserAuditEntity {
|
|
@PrimaryGeneratedColumn('increment')
|
|
id!: number;
|
|
|
|
@Column({ type: 'uuid' })
|
|
userId!: string;
|
|
|
|
@CreateDateColumn({ type: 'timestamptz' })
|
|
deletedAt!: Date;
|
|
}
|