A Practical Introduction to Entity Relationships in Supista ERP

In Supista ERP, data modeling is powered by Sequelize-style relationships that define how different tables (or components) interact with each other. Understanding these relationships is essential for designing clean, scalable, and maintainable ERP modules.

In this guide, we explore the four primary relationship types using a consistent and relatable scenario: Members and Teams. These examples will help you understand not only the theory but also the practical implementation using Supista's OpWithRelation APIs.

Relation Type

Relation TypeExplanation
belongsToA Member belongs to one Team
hasManyA Team has many Members
hasOneA Member has one Profile
belongsToManyA Member can belong to many Projects and vice versa
Last updated on
Transform Data into Decisions with Supista – Your Intelligent Data Partner
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Learn More.