mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: memory stub (#16704)
This commit is contained in:
parent
b0bf4e4fff
commit
ce74f765b1
6 changed files with 218 additions and 116 deletions
7
server/src/db.d.ts
vendored
7
server/src/db.d.ts
vendored
|
|
@ -4,7 +4,8 @@
|
|||
*/
|
||||
|
||||
import type { ColumnType } from 'kysely';
|
||||
import { AssetType, Permission, SyncEntityType } from 'src/enum';
|
||||
import { OnThisDayData } from 'src/entities/memory.entity';
|
||||
import { AssetType, MemoryType, Permission, SyncEntityType } from 'src/enum';
|
||||
|
||||
export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
|
||||
|
||||
|
|
@ -231,7 +232,7 @@ export interface Libraries {
|
|||
|
||||
export interface Memories {
|
||||
createdAt: Generated<Timestamp>;
|
||||
data: Json;
|
||||
data: OnThisDayData;
|
||||
deletedAt: Timestamp | null;
|
||||
hideAt: Timestamp | null;
|
||||
id: Generated<string>;
|
||||
|
|
@ -240,7 +241,7 @@ export interface Memories {
|
|||
ownerId: string;
|
||||
seenAt: Timestamp | null;
|
||||
showAt: Timestamp | null;
|
||||
type: string;
|
||||
type: MemoryType;
|
||||
updatedAt: Generated<Timestamp>;
|
||||
updateId: Generated<string>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue