> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# hierarchy table

> This table contains folders used to group the extra tables in the system.

## hierarchy Table (306)

This table contains folders used to group the extra tables in the system.

## Fields

| Name                      | Description                                        | Type                            | Nullable |
| ------------------------- | -------------------------------------------------- | ------------------------------- | :------: |
| id                        | The primary key (auto-incremented)                 | PK                              |    No    |
| domain                    | Domain seperating the different hierarchy          | Int                             |    No    |
| parent\_id                | Parent table                                       | FK [hierarchy](./hierarchy.mdx) |    No    |
| name                      | Name of this hierarchy folder.                     | String(128)                     |    No    |
| fullname                  | The full name of this category, i.e. Foo/bar/test. | Clob                            |    Yes   |
| registered                | Registered when                                    | UtcDateTime                     |    Yes   |
| registered\_associate\_id | Registered by whom                                 | FK [associate](./associate.mdx) |    Yes   |
| updated                   | Last updated when                                  | UtcDateTime                     |    Yes   |
| updated\_associate\_id    | Last updated by whom                               | FK [associate](./associate.mdx) |    Yes   |
| updatedCount              | Number of updates made to this record              | UShort                          |    Yes   |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/hierarchy.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=ab87746c2db263a26c0b70ff4e9d4824" alt="hierarchy table relationship diagram" width="851" height="758" data-path="media/loc/en/database/tables/hierarchy.png" />

## Indexes

| Fields     | Types       | Description |
| ---------- | ----------- | ----------- |
| domain     | Int         | Index       |
| parent\_id | FK          | Index       |
| name       | String(128) | Index       |

## Relationships

| Table                                     | Description                                                                            |
| ----------------------------------------- | -------------------------------------------------------------------------------------- |
| [associate](./associate)                  | Employees, resources and other users - except for External persons                     |
| [ej\_role](./ej-role)                     | Define access rights, memberships and other properties for role user members           |
| [ejscript](./ejscript)                    | ejscript                                                                               |
| [ejselection](./ejselection)              | This table stores selections, dynamic groups.                                          |
| [ejuser](./ejuser)                        | This table contains entries for the users of the system.                               |
| [email\_flow](./email-flow)               | A set of properties related to the email workflow.                                     |
| [external\_document](./external-document) | This table stores documents which can be viewed externaly, through the customer module |
| [extra\_tables](./extra-tables)           | This table contains entries for the extra tables in the system.                        |
| [hierarchy](./hierarchy)                  | This table contains folders used to group the extra tables in the system.              |
| [screen\_definition](./screen-definition) | A configurable screen                                                                  |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [hierarchy](/en/api/mdo-providers/reference/hierarchy.md)
- [EmailFlowFolders](/en/api/archive-providers/reference/emailflowfolders.md)
- [externaldocumentfolders](/en/api/archive-providers/reference/externaldocumentfolders.md)
- [externaldocumentitems](/en/api/archive-providers/reference/externaldocumentitems.md)
- [externaldocuments](/en/api/archive-providers/reference/externaldocuments.md)
- [Update Hierarchy From Path](/en/api/reference/restful/rest/hierarchy/update-hierarchy-from-path.md)
