add settings table to store names (and other things soon)

This commit is contained in:
2023-03-18 19:56:57 -06:00
parent 315cdc0cf1
commit afc175e3e7
4 changed files with 77 additions and 35 deletions

View File

@@ -1,15 +0,0 @@
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",
};