bx-orm-relationships
Installation
SKILL.md
bx-orm: Entity Relationships
Relationship Overview
| Type | Use Case | Example |
|---|---|---|
one-to-one |
Single associated record | User → Address |
one-to-many |
Parent with collection | User → Posts |
many-to-one |
Child pointing to parent | Post → Author |
many-to-many |
Bidirectional multi | Author ↔ Book |
Every relationship property uses fieldtype to declare its kind.
One-to-One
// Contact.bx — has one Address
class persistent="true" entityName="Contact" {