Files
mtusi2026lab5/migrations/005_replay_audit.sql
2026-11-19 19:45:26 +03:00

9 lines
313 B
SQL

CREATE TABLE IF NOT EXISTS attachment_replay_audit (
id BIGSERIAL PRIMARY KEY,
attachment_id UUID NOT NULL REFERENCES attachments (id) ON DELETE CASCADE,
old_pipeline_version INTEGER NOT NULL,
new_pipeline_version INTEGER NOT NULL,
reason TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL
);