feat: add private attachments and safe reconciliation experiment

This commit is contained in:
2026-11-06 17:55:51 +03:00
parent ec540a1a72
commit 59b2f031bc
35 changed files with 3341 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
CREATE TABLE message_requests (
actor_id uuid NOT NULL REFERENCES users(id),
chat_id uuid NOT NULL REFERENCES chats(id),
key text NOT NULL,
body_digest text NOT NULL,
response jsonb NOT NULL,
expires_at timestamptz NOT NULL,
PRIMARY KEY(actor_id,chat_id,key)
);
CREATE INDEX message_requests_expiry_idx ON message_requests(expires_at);