chore: remove asset entity (#17703)

This commit is contained in:
Daniel Dietzler 2025-04-18 23:39:56 +02:00 committed by GitHub
parent 52ae06c119
commit dd1fcd5be5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 281 additions and 299 deletions

View file

@ -1,7 +1,6 @@
import { Selectable } from 'kysely';
import { Albums, AssetJobStatus as DatabaseAssetJobStatus, Exif as DatabaseExif } from 'src/db';
import { Albums, Exif as DatabaseExif } from 'src/db';
import { MapAsset } from 'src/dtos/asset-response.dto';
import { AssetEntity } from 'src/entities/asset.entity';
import {
AlbumUserRole,
AssetFileType,
@ -265,10 +264,6 @@ export type AssetFace = {
person?: Person | null;
};
export type AssetJobStatus = Selectable<DatabaseAssetJobStatus> & {
asset: AssetEntity;
};
const userColumns = ['id', 'name', 'email', 'profileImagePath', 'profileChangedAt'] as const;
export const columns = {