v4.1 - Admin/onboarding
This commit is contained in:
@@ -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()
|
||||
);
|
||||
Reference in New Issue
Block a user