Dimensional-model designer
Design facts, dimensions and many-to-many bridges. Declare each fact’s grain, document shared dimensions and measure additivity, then review the star and warehouse bus matrix. All work stays in this browser.
Prepared export
Edit one form at a time and use its Save button. Selecting another item or saving restores other forms to saved values. Exports pause while a form has unsaved edits. Reload clears the design; export dimensional JSON to save it.
Select a box to edit it. Direct dimension roles appear on the left; fact-grain membership bridges appear on the right. Different roles can reuse the same dimension. Lines show declared relationships, not verified data, conformance or safe aggregation.
Warehouse bus matrix
Each row is a fact table at its declared grain. Columns are dimension identities, including bridge membership. Reuse is visible; conformance status records your declaration and is not verified against data.
Shared-dimension agreements
Design review
This bridge directly joins one fact row to dimension members. It needs an enforced fact grain key. Derived columns are fact_key_N, member_key_N and, optionally, allocation_weight. Per-fact weight totals, effective dates and safe measure allocation are not generated.
Key columns
Declared business key (documentation only)
Business-key uniqueness is not automatically enforced, particularly for versioned dimensions. Review that choice in the physical model designer.
Columns
New column
Dimension roles
Each selector maps a fact column to one dimension-key member, in the dimension key’s declared order. Direct roles use MATCH SIMPLE foreign keys.
Measures
Do not sum over these direct dimension roles
Additivity is a declared business rule, not a query rewrite or proven property. Non-additive measures require a deliberate aggregation. Bridges need separate allocation review.
Open dimensional JSON
Open a dimensional-model document up to 1 MB. Undo restores the previous saved design. Model-designer JSON exports the supported physical subset, without the bridge weight CHECK. Use dimensional DDL to include that range check, and keep dimensional JSON to retain grain, conformance and measure metadata.
Scope and references
The bus matrix is a detailed fact-table matrix: business process, fact table and grain per row, dimension identity per column. Sharing a dimension object documents reuse; it does not establish conformed data or business agreement. Date roles, conformance definitions, business keys, change-tracking intent and additivity remain declarations.
The physical draft supports ordinary tables, declared dimension primary keys, optional fact grain primary keys, direct dimension-role FKs and fact-to-member bridges. Bridge keys combine the referenced fact grain with the member dimension key. Weighted bridges get a fixed numeric(18,12) column and row-level 0–1 range check, without a per-fact sum rule. No reusable group-key bridge, temporal bridge, aggregate allocation, loading, SCD maintenance, source mapping or data verification is generated.
DDL is a new-design draft using the physical subset of the data-model designer, not a migration or complete PostgreSQL model. Business-key constraints, calendar population, unknown-member handling, indexes, partitions, history/version columns, temporal uniqueness, aggregation SQL and ETL require separate design. Types, NULL behavior and keys need review in a disposable database; this browser executes no SQL.
Limits: 1 MB input, 30 dimensions, 30 facts, 30 bridges, 800 user-defined columns, 100 columns/object, 16 key columns, 32 direct roles/fact and 100 measures/fact. The physical subset also caps total derived columns at 1,000. Star view shows the first 12 direct roles and 8 bridges of the selected fact, with limited attribute previews; JSON and the inspector retain all objects. Undo/Redo stores 20 revisions in memory. No input is stored or transmitted.