Departments, to which users must be attached, are used by the different Lucca solutions for different purposes:
NB: You can have up to 9 levels of departments, and up to 99 departments under a single parent department. However, limiting the number of levels to 7 is recommended.
1Unique code of this department.
1Optional description of the department.
Hierarchy ID of the parent department. Null if this department is at root-level.
A value that describes where a department sits in the organization tree. It encodes the department’s position and parent/child relationships, allowing the system to determine ancestors, descendants, and ordering within the hierarchy.
You may refer to the Microsoft documentation about hierarchyid for more information.
You should treat it as an opaque hierarchical path value—use it only for storage, comparison, and API calls, and do not attempt to parse or construct it yourself.
Example hierarchyId values:
When false, then the department should no longer be used.
ID of the employee at the head of this department.
0 <= x <= 99