This table is essential in mapping survey responses to the correct organizational unit, maintaining organizational hierarchy, and controlling data flow across modules.
✅Note: The osname and oscode should always be identical to the graph optionBold Text name to avoid discrepancies.
For a complete description of the table structure and field explanations, please refer to the → OrgStructure Table Structure
This is the primary key (auto-incremented) for the table.
Do not manually enter this value if inserting data directly via the database.
It is automatically generated.
The masterosid acts as a foreign key, linking the current organizational unit to its master structure defined in the orgstructuremaster table.
Example: If you have a Cluster Midden in the master structure, its masterosid will point to the corresponding master entry.
Example: masterosid = 1 → Refers to “Cluster Midden” in orgstructuremaster.
The osname represents the full name of the organizational unit.
Example: osname = “Cluster Midden” osname = “Stilleweer (in Appingedam)”
The oscode serves as an internal code representing the organizational structure.
Example: oscode = “Cluster Midden” oscode = “Stilleweer (in Appingedam)”
This column defines the parent-child relationship within the organizational hierarchy.
Example:
This column identifies the branch associated with the organizational unit.
Example:
branchid = 1 → Linked to Branch ID 1
branchid = 1,2 → Linked to Branch ID 1 and 2
This field captures the module(s) associated with the organizational unit.
Example:
The osorder column defines the order in which organizational units appear.
Lower numbers appear first, higher numbers appear later. This affects the display order in reports and dashboards.
Example:
This column controls whether the organizational unit is active or inactive.
| Value | Status |
|---|---|
| 1 | Active |
| 0 | Inactive |
This column captures the user ID of the person who created the organizational unit.
This field stores the timestamp when the record was created.
This column captures the user ID of the person who last modified the record.
This field captures the timestamp of the last modification.
Here’s an example of a complete record for a single organizational structure:
| id | masterosid | osname | oscode | parentosid | branchid | moduleids | osorder | status | createdby | createdon | modifiedby | modifiedon |
| 2 | 1 | Cluster Midden | Cluster Midden | 0 | 1 | 1 | 1 | 1 | 996 | 2022-05-26 07:28:02 | 0 | 0000-00-00 00:00:00 |
| 3 | 1 | Cluster West | Cluster West | 0 | 1 | 1 | 3 | 1 | 996 | 2022-05-26 07:28:14 | 0 | 0000-00-00 00:00:00 |
This guide ensures accurate data entry for organizational units, enabling precise reporting and hierarchical data structuring.