Выполнить лабораторную 3: балансировка, отказы и исследование масштабирования
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE message_requests (
|
||||
sender_id UUID NOT NULL REFERENCES users(id),
|
||||
chat_id UUID NOT NULL REFERENCES chats(id),
|
||||
key VARCHAR(128) NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
response JSONB NOT NULL,
|
||||
expires_at TIMESTAMPTZ NOT NULL,
|
||||
PRIMARY KEY(sender_id, chat_id, key)
|
||||
);
|
||||
CREATE INDEX message_requests_expiry ON message_requests(expires_at);
|
||||
Reference in New Issue
Block a user