Complete lab 7 security infrastructure

This commit is contained in:
Yuliiiaaaa
2026-11-30 21:23:07 +03:00
parent 20afc2c790
commit c00d245263
55 changed files with 3515 additions and 28 deletions
+8
View File
@@ -0,0 +1,8 @@
CREATE TABLE idempotency_keys (
key VARCHAR(128) NOT NULL,
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
request_hash VARCHAR(64) NOT NULL,
message_id UUID NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
PRIMARY KEY (key, user_id)
);