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

@@ -9,7 +9,20 @@ export type Account = {
// 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 = {
export const AccountsSchema = {
accounts:
"++id, dateCreated, derivationPath, $identity, $mnemonic, publicKeyHex",
};
// a singleton
export type Settings = {
id: number;
firstName?: string;
lastName?: string;
};
export const SettingsSchema = {
settings: "id",
};
export const MASTER_SETTINGS = 1;