forked from mtusi2026/mtusi2026lab4
ЛР4 - БВТ2302 - Никитина - на 5
This commit is contained in:
@@ -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)
|
||||
);
|
||||
Reference in New Issue
Block a user