LR6: monitoring and SLO

This commit is contained in:
R0flyan
2026-11-19 19:24:45 +03:00
parent 470d9d6f1e
commit 6a9c4175a4
75 changed files with 8734 additions and 42 deletions
+8
View File
@@ -0,0 +1,8 @@
CREATE TABLE message_keys (
user_id uuid NOT NULL REFERENCES users(id),
chat_id uuid NOT NULL REFERENCES chats(id),
key text NOT NULL CHECK (key ~ '^[A-Za-z0-9._:-]{1,128}$'),
message_id uuid NOT NULL REFERENCES messages(id),
expires_at timestamptz NOT NULL,
PRIMARY KEY (user_id, chat_id, key)
);