refactor: database types (#17468)

This commit is contained in:
Jason Rasmussen 2025-04-08 12:40:03 -04:00 committed by GitHub
parent ac65d46ec6
commit 4794eeca88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 44 additions and 39 deletions

View file

@ -1,5 +1,6 @@
import { UserMetadataEntity } from 'src/entities/user-metadata.entity';
import { AssetStatus, AssetType, Permission, UserStatus } from 'src/enum';
import { AssetStatus, AssetType, MemoryType, Permission, UserStatus } from 'src/enum';
import { OnThisDayData } from 'src/types';
export type AuthUser = {
id: string;
@ -38,6 +39,31 @@ export type ApiKey = {
permissions: Permission[];
};
export type Tag = {
id: string;
value: string;
createdAt: Date;
updatedAt: Date;
color: string | null;
parentId: string | null;
};
export type Memory = {
id: string;
createdAt: Date;
updatedAt: Date;
deletedAt: Date | null;
memoryAt: Date;
seenAt: Date | null;
showAt: Date | null;
hideAt: Date | null;
type: MemoryType;
data: OnThisDayData;
ownerId: string;
isSaved: boolean;
assets: Asset[];
};
export type User = {
id: string;
name: string;