Synced from docs/generated/erd/ — do not hand-edit.
Regenerate with bun run docs:erd (needs staging reader), then this script runs automatically.
Labels: docs/db/erd-table-labels.yml · Runbook: docs/runbooks/erd-schema-docs.md
Platform-wide module enablement (the default every org inherits) — Not: org_enabled_modules — the per-org override layer
| Name |
Type |
Default |
Nullable |
Children |
Parents |
Comment |
| created_at |
timestamp with time zone |
now() |
false |
|
|
|
| id |
uuid |
gen_random_uuid() |
false |
|
|
|
| module_key |
text |
|
false |
|
workspace_modules |
|
| source |
module_source |
‘default’::module_source |
false |
|
|
|
| status |
module_status |
‘active’::module_status |
false |
|
|
|
| updated_at |
timestamp with time zone |
now() |
false |
|
|
|
| updated_by |
uuid |
|
true |
|
|
|
| Name |
Definition |
| Platform Catalog & Modules |
Permission catalog, workspace/org/platform module & capability toggles, autonomy lane catalog, tab definitions, feature adoption. Catalog §1.3, §1.5.
|
| Name |
Type |
Definition |
| platform_enabled_modules_module_key_fkey |
FOREIGN KEY |
FOREIGN KEY (module_key) REFERENCES workspace_modules(module_key) ON DELETE CASCADE |
| platform_enabled_modules_module_key_key |
UNIQUE |
UNIQUE (module_key) |
| platform_enabled_modules_pkey |
PRIMARY KEY |
PRIMARY KEY (id) |
| Name |
Definition |
| platform_enabled_modules_module_key_key |
CREATE UNIQUE INDEX platform_enabled_modules_module_key_key ON public.platform_enabled_modules USING btree (module_key) |
| platform_enabled_modules_pkey |
CREATE UNIQUE INDEX platform_enabled_modules_pkey ON public.platform_enabled_modules USING btree (id) |
| Name |
Definition |
| update_platform_enabled_modules_updated_at |
CREATE TRIGGER update_platform_enabled_modules_updated_at BEFORE UPDATE ON public.platform_enabled_modules FOR EACH ROW EXECUTE FUNCTION update_updated_at_column() |
erDiagram
"public.platform_enabled_modules" |o--|| "public.workspace_modules" : "FOREIGN KEY (module_key) REFERENCES workspace_modules(module_key) ON DELETE CASCADE"
"public.platform_enabled_modules" {
text module_key FK ""
}
"public.workspace_modules" {
text module_key ""
}
Generated by tbls