refactor: database repository (#16593)

* refactor: database repository

* fix error reindex check

* chore: remove WIP code

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
Jason Rasmussen
2025-03-06 13:33:24 -05:00
committed by GitHub
parent fe931faf17
commit 2cdbb0a37c
17 changed files with 197 additions and 315 deletions

4
server/src/db.d.ts vendored
View File

@@ -4,7 +4,7 @@
*/
import type { ColumnType } from 'kysely';
import { Permission, SyncEntityType } from 'src/enum';
import { AssetType, Permission, SyncEntityType } from 'src/enum';
export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
@@ -145,7 +145,7 @@ export interface Assets {
stackId: string | null;
status: Generated<AssetsStatusEnum>;
thumbhash: Buffer | null;
type: string;
type: AssetType;
updatedAt: Generated<Timestamp>;
updateId: Generated<string>;
}