Click or drag to resize
Database Table OrgUnitLineage

[This is preliminary documentation and is subject to change.]

The OrgUnitLineage table is a helper table. The main purpose is to make it easier to find descendants and ancestors to a given oganizational unit. This can be accomplished by using the table in JOIN statements.

Each row in the table corresponds to a ancestor/descendant relationship.

Fields

Field name

Type

Note

Description

AncestorType

VARCHAR(20)

The type of the ancestor organizational unit in this ancestor/descendant relationship

AncestorCode

VARCHAR(20)

The code for the ancestor organizational unit in this ancestor/descendant relationship

DescendantType

VARCHAR(20)

The type of the descendant organizational unit in this ancestor/descendant relationship

DescendantCode

VARCHAR(20)

The code for the descendant organizational unit in this ancestor/descendant relationship

Relations

Table

Relation

Database Table OrgUnit

AncestorType/AncestorCode refers to an organizational unit in the OrgUnitCurrent view

Database Table OrgUnit

DescendantType/DescendantCode refers to an organizational unit in the OrgUnitCurrent view

Database Table OrgUnitType

AncestorType is a 0..1 relation to OrgUnitType

Database Table OrgUnitType

DescendantType is a 0..1 relation to OrgUnitType