# `PhoenixKitStaff.Schemas.Team`
[🔗](https://github.com/BeamLabEU/phoenix_kit_staff/blob/v0.3.0/lib/phoenix_kit_staff/schemas/team.ex#L1)

A team inside a department.

See `PhoenixKitStaff.Schemas.Department` for the translations
shape and read-path semantics — Team uses the same pattern.

# `t`

```elixir
@type t() :: %PhoenixKitStaff.Schemas.Team{
  __meta__: term(),
  department:
    PhoenixKitStaff.Schemas.Department.t()
    | Ecto.Association.NotLoaded.t()
    | nil,
  department_uuid: UUIDv7.t() | nil,
  description: String.t() | nil,
  inserted_at: DateTime.t() | nil,
  name: String.t() | nil,
  team_memberships:
    [PhoenixKitStaff.Schemas.TeamMembership.t()]
    | Ecto.Association.NotLoaded.t(),
  translations: translations_map(),
  updated_at: DateTime.t() | nil,
  uuid: UUIDv7.t() | nil
}
```

# `translations_map`

```elixir
@type translations_map() :: %{
  optional(String.t()) =&gt; %{optional(String.t()) =&gt; String.t()}
}
```

# `changeset`

```elixir
@spec changeset(t() | Ecto.Changeset.t(t()), map()) :: Ecto.Changeset.t(t())
```

# `localized_description`

```elixir
@spec localized_description(t(), String.t() | nil) :: String.t() | nil
```

# `localized_name`

```elixir
@spec localized_name(t(), String.t() | nil) :: String.t() | nil
```

# `translatable_fields`

```elixir
@spec translatable_fields() :: [String.t()]
```

DB-column field names that participate in the `translations` JSONB.

---

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