881a96cdf9
wip: fix album asset exif and some other refactorings feat: add album assets sync feat: album to assets relation sync Co-authored-by: Zack Pollard <zackpollard@ymail.com>
24 lines
731 B
TypeScript
24 lines
731 B
TypeScript
import { PrimaryGeneratedUuidV7Column } from 'src/decorators';
|
|
import { AlbumTable } from 'src/schema/tables/album.table';
|
|
import { Column, CreateDateColumn, ForeignKeyColumn, Table } from 'src/sql-tools';
|
|
|
|
@Table('album_assets_audit')
|
|
export class AlbumAssetAuditTable {
|
|
@PrimaryGeneratedUuidV7Column()
|
|
id!: string;
|
|
|
|
@ForeignKeyColumn(() => AlbumTable, {
|
|
type: 'uuid',
|
|
indexName: 'IDX_album_assets_audit_album_id',
|
|
onDelete: 'CASCADE',
|
|
onUpdate: 'CASCADE',
|
|
})
|
|
albumId!: string;
|
|
|
|
@Column({ type: 'uuid', indexName: 'IDX_album_assets_audit_asset_id' })
|
|
assetId!: string;
|
|
|
|
@CreateDateColumn({ default: () => 'clock_timestamp()', indexName: 'IDX_album_assets_audit_deleted_at' })
|
|
deletedAt!: Date;
|
|
}
|