Relationships between tables
Relationships say how tables join: which column of one matches which column of the other. LumeDB only crosses tables through relationships someone confirmed. Without a declared join, there's no query.
Set up
- Connect the Table nodes to a Relationships node.
- Connect Relationships to the Model node.
- On the Relationships node, click ⋈ Open relationships.
If you see No upstream table, the tables still need to be connected to the node.
Confirm the suggestions
LumeDB proposes relationships based on the columns' names and values. For each row:
- Confirm accepts the relationship.
- Do not use discards it.
- Back to suggested undoes a change of yours and goes back to the original proposal.
✓ Confirm the AI's accepts all the relationships the AI suggested in one go.
Always check. A suggestion can link columns with the same name that don't mean the same thing.
Create a relationship by hand
On the relationships canvas:
- Drag from one column to another to create the relationship.
- Click the line to adjust it, including the cardinality (one to many, many to one).
- ★ marks the fact table, the one that holds the measured events (sales, entries, production records).
- Esc goes back to the Modeling canvas.
The Changed since the last save notice reminds you there are unsaved changes.
Read the status
| What you see | What it means |
|---|---|
| Ready to publish. | Every table can be reached through confirmed joins. |
| Ambiguous path. | There's more than one path between two tables. Discard the relationship that shouldn't be used. |
| Publishing blocked. | Some table has no confirmed link to the others. |
| Saving blocked: link the Relationships node to a Model. | The Relationships node isn't connected to the Model yet. |
| Nothing new | There are no suggestions beyond the ones already on the list. |
| A relationship in red | The relationship uses a column that doesn't exist in the source table. It blocks publishing: fix it or discard it on the Relationships canvas. |
Single-table model
A Table connected straight to the Model needs no relationships: the model is ready to publish. To cross tables later, connect them to a Relationships node.