PhoenixKitProjects.Schemas.Task (PhoenixKitProjects v0.1.1)

Copy Markdown View Source

Reusable task template with title, description, estimated duration, and optional default assignee.

Summary

Types

t()

@type t() :: %PhoenixKitProjects.Schemas.Task{
  __meta__: term(),
  default_assigned_department: struct() | Ecto.Association.NotLoaded.t() | nil,
  default_assigned_department_uuid: UUIDv7.t() | nil,
  default_assigned_person: struct() | Ecto.Association.NotLoaded.t() | nil,
  default_assigned_person_uuid: UUIDv7.t() | nil,
  default_assigned_team: struct() | Ecto.Association.NotLoaded.t() | nil,
  default_assigned_team_uuid: UUIDv7.t() | nil,
  description: String.t() | nil,
  estimated_duration: integer() | nil,
  estimated_duration_unit: String.t() | nil,
  inserted_at: DateTime.t() | nil,
  title: String.t() | nil,
  updated_at: DateTime.t() | nil,
  uuid: UUIDv7.t() | nil
}

Functions

changeset(task, attrs)

duration_units()

format_duration(n, unit)

to_hours(n, unit, counts_weekends)

Converts a duration to hours under a given calendar mode.