mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
11 lines
519 B
SQL
11 lines
519 B
SQL
-- ── Additive tenant tables represented in migrations 0002/0007/0017 ──────────
|
|
-- Keep desired-state schema parity with the embedded SQLx migration path.
|
|
CREATE TABLE git_repo_names (
|
|
community_id UUID NOT NULL REFERENCES communities(id),
|
|
repo_id TEXT NOT NULL,
|
|
owner_pubkey TEXT NOT NULL,
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
PRIMARY KEY (community_id, repo_id)
|
|
);
|
|
CREATE INDEX idx_git_repo_names_owner ON git_repo_names (community_id, owner_pubkey);
|