This commit is contained in:
freedakgmail
2025-11-22 20:08:07 +08:00
parent 43c8389705
commit 33cf0c50d1
142 changed files with 44912 additions and 213 deletions
+9
View File
@@ -6,15 +6,24 @@ export interface GlobalSettings {
value: any
}
export interface StoredImage {
id: string
blob: Blob
mimeType: string
createdAt: string
}
export class FamilyTreeDB extends Dexie {
members!: Table<FamilyMember>
settings!: Table<GlobalSettings>
images!: Table<StoredImage>
constructor() {
super("FamilyTreeDB")
this.version(1).stores({
members: "id, fullName, fatherId, motherId, [fatherId+motherId]", // Index for searching
settings: "key", // Key-value store for rootId etc.
images: "id", // Store images by ID
})
}
}