Cleaned up old Dexie class. Added mnemonic and dateCreated columns.

This commit is contained in:
Matthew Aaron Raymer
2022-12-16 13:34:01 +08:00
parent c9d5ab82fd
commit 607230b51c
8 changed files with 7 additions and 119 deletions

View File

@@ -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",
};