forked from trent_larson/crowd-funder-for-time-pwa
separate account from other data for backup/restore
This commit is contained in:
15
src/db/tables/accounts.ts
Normal file
15
src/db/tables/accounts.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export type Account = {
|
||||
id?: number; // auto-generated by Dexie
|
||||
dateCreated: string;
|
||||
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",
|
||||
};
|
||||
Reference in New Issue
Block a user