# `Lightning.Projects.ProjectTreeItem`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning/projects.ex#L79)

A node in a user-visible project tree. Carries only the fields needed
to render the tree, with `parent_id` shaped for display (`nil` at the
user's access roots, the nearest visible ancestor for descendants).
`sandbox?` reflects the underlying DB shape (true when the project has
a real `parent_id` in the database, regardless of where the user's
access root sits) so the picker can pick the right icon for a sandbox
surfaced as an access root. Not a persistable record.

# `t`

```elixir
@type t() :: %Lightning.Projects.ProjectTreeItem{
  color: String.t() | nil,
  id: Ecto.UUID.t(),
  name: String.t(),
  parent_id: Ecto.UUID.t() | nil,
  sandbox?: boolean()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
