Cleaned up old Dexie class. Added mnemonic and dateCreated columns.
This commit is contained in:
@@ -3,13 +3,16 @@ import { Table } from "dexie";
|
||||
export type Account = {
|
||||
id?: number;
|
||||
publicKey: string;
|
||||
mnemonic: string;
|
||||
identity: string;
|
||||
dateCreated: number;
|
||||
};
|
||||
|
||||
export type AccountsTable = {
|
||||
accounts: Table<Account>;
|
||||
};
|
||||
|
||||
// mark encrypted field by starting with a $ character
|
||||
export const accountsSchema = {
|
||||
accounts: "++id, publicKey, $identity",
|
||||
accounts: "++id, publicKey, $mnemonic, $identity, dateCreated",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user