mirror of
https://github.com/immich-app/immich.git
synced 2026-03-23 09:09:36 +03:00
18 lines
516 B
TypeScript
18 lines
516 B
TypeScript
import { Column, CreateDateColumn, Generated, Table, Timestamp } from '@immich/sql-tools';
|
|
import { PrimaryGeneratedUuidV7Column } from 'src/decorators';
|
|
|
|
@Table('partner_audit')
|
|
export class PartnerAuditTable {
|
|
@PrimaryGeneratedUuidV7Column()
|
|
id!: Generated<string>;
|
|
|
|
@Column({ type: 'uuid', index: true })
|
|
sharedById!: string;
|
|
|
|
@Column({ type: 'uuid', index: true })
|
|
sharedWithId!: string;
|
|
|
|
@CreateDateColumn({ default: () => 'clock_timestamp()', index: true })
|
|
deletedAt!: Generated<Timestamp>;
|
|
}
|