You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
655 B
29 lines
655 B
2 years ago
|
export type Account = {
|
||
2 years ago
|
id?: number; // auto-generated by Dexie
|
||
|
dateCreated: Date;
|
||
|
derivationPath: string;
|
||
2 years ago
|
identity: string;
|
||
2 years ago
|
publicKeyHex: string;
|
||
|
mnemonic: string;
|
||
2 years ago
|
};
|
||
|
|
||
2 years ago
|
// mark encrypted field by starting with a $ character
|
||
2 years ago
|
// see https://github.com/PVermeer/dexie-addon-suite-monorepo/tree/master/packages/dexie-encrypted-addon
|
||
2 years ago
|
export const AccountsSchema = {
|
||
2 years ago
|
accounts:
|
||
|
"++id, dateCreated, derivationPath, $identity, $mnemonic, publicKeyHex",
|
||
2 years ago
|
};
|
||
2 years ago
|
|
||
|
// a singleton
|
||
|
export type Settings = {
|
||
|
id: number;
|
||
|
firstName?: string;
|
||
|
lastName?: string;
|
||
|
};
|
||
|
|
||
|
export const SettingsSchema = {
|
||
|
settings: "id",
|
||
|
};
|
||
|
|
||
|
export const MASTER_SETTINGS = 1;
|