v4.1 - Admin/onboarding

This commit is contained in:
2026-05-18 22:25:43 +12:00
parent 6ff970015f
commit 541ae2eeec
79 changed files with 11544 additions and 1007 deletions
+12
View File
@@ -0,0 +1,12 @@
-- Key/value table used by mail-api for admin state.
-- Three keys are written from main.py:
-- client_profiles -> dict[email, profile]
-- allowed_emails -> {"emails": [..]}
-- drafts -> dict[email, drafts]
-- Stored as JSONB blobs to match the existing dict-shaped storage in the
-- application and to avoid coupling the DB schema to mail-api shape changes.
create table if not exists admin_kv (
key text primary key,
value jsonb not null,
updated_at timestamptz not null default now()
);