18 lines
612 B
TypeScript
18 lines
612 B
TypeScript
import { PrimaryGeneratedUuidV7Column } from 'src/decorators';
|
|
import { Column, CreateDateColumn, Generated, Table, Timestamp } from 'src/sql-tools';
|
|
|
|
@Table('partners_audit')
|
|
export class PartnerAuditTable {
|
|
@PrimaryGeneratedUuidV7Column()
|
|
id!: Generated<string>;
|
|
|
|
@Column({ type: 'uuid', indexName: 'IDX_partners_audit_shared_by_id' })
|
|
sharedById!: string;
|
|
|
|
@Column({ type: 'uuid', indexName: 'IDX_partners_audit_shared_with_id' })
|
|
sharedWithId!: string;
|
|
|
|
@CreateDateColumn({ default: () => 'clock_timestamp()', indexName: 'IDX_partners_audit_deleted_at' })
|
|
deletedAt!: Generated<Timestamp>;
|
|
}
|