0.0.0.2
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user