Overview
Relation links records together. Use it to model the connections in your data: a Deal has one Account; a Contact belongs to one Account; a Ticket can be linked to many Contacts. Relation supports four shapes:- One-to-many: many child records point at one parent.
- Many-to-many: both sides can have many of the other.
- One-to-one: paired records.
- Self-referential: records of the same object link to each other (parent ticket → sub-tickets).