Relationships between Tables aren’t just about linking data together inside the system — they define how the data interacts with each other.
👤➡️ 1:N (One-to-Many): one record linked to many records.
👥➡️ N:1 (Many-to-One): several records linked to one record.
👥↔️ N:N (Many-to-Many): several records linked to several records.
- 📌 Relationship Behavior (the real magic ✨): 🏠 Parental (everything in the Child follows the Parent), 🔗 Referential (keeps the data and only breaks the relationship), 🛑 Referential, Restrict Delete (prevents deleting the Parent if there are linked Records), ⚙️ Configurable Cascading (full control over every Action that happens between the Parent and the Child).
- 💡 Pro Tip for Developers: before you create any Relationship, ask yourself: “If the Parent gets deleted or changed, what do I want to happen to the Child?” The answer to that question is what determines the right Behavior.
