export type Account = { id?: number; // auto-generated by Dexie dateCreated: Date; derivationPath: string; identity: string; publicKeyHex: string; mnemonic: string; }; // mark encrypted field by starting with a $ character // see https://github.com/PVermeer/dexie-addon-suite-monorepo/tree/master/packages/dexie-encrypted-addon export const AccountsSchema = { accounts: "++id, dateCreated, derivationPath, $identity, $mnemonic, publicKeyHex", }; // a singleton export type Settings = { id: number; firstName?: string; lastName?: string; showContactGivesInline?: boolean; }; export const SettingsSchema = { settings: "id", }; export const MASTER_SETTINGS = 1;