mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
9 lines
318 B
SQL
9 lines
318 B
SQL
-- Every accepted revision ID, so replays stay idempotent after redaction or
|
|
-- retention.
|
|
CREATE TABLE artifact_revisions (
|
|
community_id UUID NOT NULL REFERENCES communities(id),
|
|
event_id BYTEA NOT NULL CHECK (length(event_id) = 32),
|
|
artifact_id UUID NOT NULL,
|
|
PRIMARY KEY (community_id, event_id)
|
|
);
|