Secondary Keys
UNLOCK NEW RELATIONSHIPS
Secondary Keys let components reference Entities or Objects, enabling powerful relationship patterns!

What are Secondary Keys?
fennecs allows component types, which act as primary keys, to also reference an additional secondary key. This enables rich relationship modeling between entities and objects.
Quick Reference
| Key Type | Description | Use Case |
|---|---|---|
| Plain Component | No secondary key | Standard component data |
| Relation | Target is an Entity | Entity-to-Entity relationships |
| Object Link | Target is an Object | Entity-to-Object associations |
Key Types
Secondary keys may be:
- Nothing - a Plain Component with no secondary key
- Entity - designating the component as a Relation to the target Entity
- Object - constituting an Object Link to a reference type