mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
12 lines
688 B
SQL
12 lines
688 B
SQL
-- ── Lint allowlist registry ───────────────────────────────────────────────────
|
|
-- The explicit registry of tables that are deliberately operator-global (NOT
|
|
-- tenant-scoped). The migration-lint harness reads this: any table NOT listed
|
|
-- here MUST carry a NOT NULL community_id and lead its uniques with it. Making
|
|
-- the allowlist a DB table (not a hard-coded list in the linter) keeps the
|
|
-- registry next to the schema it governs and reviewable in one migration diff.
|
|
|
|
CREATE TABLE _operator_global_tables (
|
|
table_name TEXT PRIMARY KEY,
|
|
reason TEXT NOT NULL
|
|
);
|