Files
mtusi2026lab5/src/migrations/005_replay_audit.sql
T

7 lines
246 B
SQL

CREATE TABLE image_replays (
id uuid PRIMARY KEY,
job_id uuid NOT NULL REFERENCES image_jobs(id),
event text NOT NULL CHECK (event IN ('retry_failed', 'new_version')),
recorded_at timestamptz NOT NULL DEFAULT clock_timestamp()
);