mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
13 lines
578 B
SQL
13 lines
578 B
SQL
-- ── Pubkey allowlist ──────────────────────────────────────────────────────────
|
|
-- Conformance: "Relay membership, pubkey allowlist, archived identities".
|
|
-- PK becomes (community_id, pubkey).
|
|
|
|
CREATE TABLE pubkey_allowlist (
|
|
community_id UUID NOT NULL REFERENCES communities(id),
|
|
pubkey BYTEA NOT NULL,
|
|
added_by BYTEA,
|
|
added_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
note TEXT,
|
|
PRIMARY KEY (community_id, pubkey)
|
|
);
|