# repo\_group\_hierarchies

Conditional schema: [repository\_groups](https://docs.getdx.com/conditional-schemas/). Ancestor and descendant relationships between repository groups.

Group: unified

[All tables](/schema.md)

[View HTML reference](https://docs.getdx.com/schema/repo_group_hierarchies/)

| Column | Type | Description | References |
| --- | --- | --- | --- |
| ancestor\_id | number | ID of the ancestor repository group. | [repo\_groups](/schema/repo_groups.md) |
| descendant\_id | number | ID of the descendant repository group. | [repo\_groups](/schema/repo_groups.md) |
| generations | number | Number of hierarchy levels between the ancestor and descendant; zero identifies the group itself. |  |
