mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
8 lines
379 B
SQL
8 lines
379 B
SQL
CREATE TABLE push_gateway_delivery_auth_replays (
|
|
relay_pubkey BYTEA NOT NULL CHECK (length(relay_pubkey) = 32),
|
|
auth_event_id BYTEA NOT NULL CHECK (length(auth_event_id) = 32),
|
|
expires_at TIMESTAMPTZ NOT NULL,
|
|
PRIMARY KEY (relay_pubkey, auth_event_id)
|
|
);
|
|
CREATE INDEX push_gateway_delivery_auth_replays_expiry ON push_gateway_delivery_auth_replays (expires_at);
|