13 lines
512 B
SQL
13 lines
512 B
SQL
-- 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()
|
|
);
|