# Tree collection
## Collection options
```ts
{
name: 'categories',
tree: 'adjacency-list',
fields: [
{
type: 'belongsTo',
name: 'parent',
treeParent: true,
},
{
type: 'hasMany',
name: 'children',
treeChildren: true,
},
],
}
```
## UI
### Create tree collection
### Default fields
### Table block
### Add child
### Expend/Collapse