Overview of Datum relationship types
Datum supports four primary relationship types between entities:
- BelongsTo: The current entity holds the foreign key pointing to another entity.
- HasMany: Other entities hold the foreign key pointing to this entity (one-to-many).
- HasOne: Other entity holds the foreign key pointing to this entity (one-to-one).
- ManyToMany: A many-to-many relationship implemented via a pivot/junction table.