From 6274f083a1d2376348f77f29c1bf099b16c153c1 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 8 Dec 2024 21:21:16 -0700 Subject: [PATCH] add DB file for the secret --- src/db/tables/secret.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/db/tables/secret.ts diff --git a/src/db/tables/secret.ts b/src/db/tables/secret.ts new file mode 100644 index 0000000..007106c --- /dev/null +++ b/src/db/tables/secret.ts @@ -0,0 +1,18 @@ +/** + * Represents an account stored in the database. + */ +export type Secret = { + /** + * Auto-generated ID by Dexie + */ + id: number; + + /** + * The secret key used to decrypt the identity if they're not using their own password + */ + secret: string; +}; + +export const SecretSchema = { secret: "++id, secret" }; + +export const MASTER_SECRET_KEY = 0;