Перенести приложение из lab2, добавить идемпотентность, X-Instance-Id и отдельные миграции

This commit is contained in:
gera
2026-10-23 01:00:01 +03:00
parent 0ab3a341aa
commit 5f509b2c70
12 changed files with 1624 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
create table idempotency_keys (
user_id uuid not null references users(id) on delete cascade,
method text not null,
path text not null,
key text not null,
body_hash text not null,
response jsonb not null,
created_at timestamptz not null,
primary key (user_id, method, path, key)
);