newdevs:db:fm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:db:fm [2025/07/26 16:55] – Adding link and TOC of xul:birds_eye_view; moving Things to Add to the bottom sleary | newdevs:db:fm [2025/07/29 11:26] (current) – [reltype] smayo | ||
---|---|---|---|
Line 91: | Line 91: | ||
=== reltype === | === reltype === | ||
- | These distinctions are to indicate key directionality. They are not to indicate nullability. | ||
- | | + | There are 3 reltypes: |
- | * has_many | + | |
- | * might_have | + | |
+ | * has_many | ||
+ | |||
+ | * might_have | ||
+ | |||
+ | In other words, " | ||
+ | |||
+ | |||
+ | Here's how to decide which reltype attribute to use: | ||
+ | |||
+ | * If the field is not virtual, but backed by a real column: ALWAYS use " | ||
+ | |||
+ | * If the field is virtual, but there' | ||
+ | |||
+ | * If the field is virtual, and there can be any number of rows on the other end of the join: ALWAYS use " | ||
=== key === | === key === |
newdevs/db/fm.1753563334.txt.gz · Last modified: 2025/07/26 16:55 by sleary