Skip to content

Commit 2ac17ba

Browse files
committed
docs: fix inconsistency
1 parent dde638e commit 2ac17ba

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

dbterd/adapters/algos/test_relationship.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def get_relationship_type(self, meta: str) -> str:
343343
Returns:
344344
str: |
345345
Short relationship type. Accepted values: '0n','01','11','nn','n1' and '1n'.
346-
And `1n` is default/fallback value
346+
And `n1` is default/fallback value
347347
348348
"""
349349
if meta.lower() == "zero-to-many":

docs/nav/metadata/label_override.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ This will display the model as `customers` in the ERD instead of the actual mode
2020

2121
### Override Relationship Display Names
2222

23+
!!! note
24+
Relationship labels are only rendered in the **Mermaid** target. Other output formats ignore this field.
25+
2326
#### test_relationship algorithm
2427

2528
Add `relationship_label` to your test's meta to customize the relationship name:

docs/nav/metadata/relationship_type.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ List of accepted values:
2525
|--------|--------|
2626
| one-to-many | 1n |
2727
| zero-to-many | 0n |
28+
| zero-to-one | 01 |
2829
| many-to-many | nn |
2930
| one-to-one | 11 |
3031
| many-to-one | n1 |

0 commit comments

Comments
 (0)