feat: add durable versioned attachment pipeline

This commit is contained in:
Горбанюк
2026-10-17 20:52:28 +03:00
parent 276dbdad8a
commit 1f432c2e84
70 changed files with 8244 additions and 39 deletions
+8
View File
@@ -0,0 +1,8 @@
-- A paused API must not acknowledge an object that GC has already retired.
CREATE TABLE upload_reservations (
id uuid PRIMARY KEY,
object_key text NOT NULL UNIQUE,
state text NOT NULL DEFAULT 'uploading' CHECK (state IN ('uploading','accepted','abandoned')),
expires_at timestamptz NOT NULL DEFAULT clock_timestamp()+interval '120 seconds',
created_at timestamptz NOT NULL DEFAULT clock_timestamp()
);