refactor: memory stub (#16704)

This commit is contained in:
Jason Rasmussen 2025-03-07 16:03:34 -05:00 committed by GitHub
parent b0bf4e4fff
commit ce74f765b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 218 additions and 116 deletions

7
server/src/db.d.ts vendored
View file

@ -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>;
}