19 lines
377 B
TypeScript
19 lines
377 B
TypeScript
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, $mnemonic, $identity, dateCreated",
|
|
};
|