File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ models:
144144The result will include the relationship inferred from the constraint:
145145
146146` ` `
147- Ref : " orders" ."location_id" > "locations"."location_id"
147+ Ref : " model.dbt_project. orders" ."location_id" > "model.dbt_project. locations"."location_id"
148148` ` `
149149
150150### Model-level FK (composite relationships)
@@ -168,7 +168,7 @@ models:
168168The result will include the multi-column relationship :
169169
170170` ` `
171- Ref: "fct_customer_segment_orders".("customer_id", "segment_code") > "dim_customer_segment".("customer_id", "segment_code")
171+ Ref: "model.dbt_project. fct_customer_segment_orders".("customer_id", "segment_code") > "model.dbt_project. dim_customer_segment".("customer_id", "segment_code")
172172` ` `
173173
174174# ## Primary key detection
@@ -206,6 +206,9 @@ The affected columns will appear with a `[pk]` index in the ERD output.
206206
207207# ## Relationship labels
208208
209+ !!! note
210+ Relationship labels are only rendered in the **Mermaid** target. Other output formats ignore this field.
211+
209212To annotate a relationship edge with a label, add a `relationship_labels` dict to the model's `meta`, keyed by the constraint name :
210213
211214` ` ` yaml
You can’t perform that action at this time.
0 commit comments