forked from mtusi2026/mtusi2026lab6
8 lines
269 B
SQL
8 lines
269 B
SQL
CREATE TABLE upload_attempts (
|
|
id uuid PRIMARY KEY,
|
|
object_key text NOT NULL UNIQUE,
|
|
created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
|
cleanup_after timestamptz NOT NULL
|
|
);
|
|
CREATE INDEX upload_attempts_cleanup_idx ON upload_attempts(cleanup_after,id);
|