Data dictionary. Source: EmployeeTask / PredefinedTask entities (TenantDb), TaskModel.cs.


Entities

Term Definition Key fields
EmployeeTask (Routine) A task assigned to a person. PersonId, Description, StartDate, DueDate, EmployeeTaskStatusId, EmployeeTaskStateId
PredefinedTask (Onboarding) A reusable task template. Description, Alias, IsForOnboarding, OwnerId, IsLocked, dates, PredefinedTaskStatusId, PredefinedTaskStateId
PredefinedTaskItem A checklist/timeline entry on a template. PredefinedTaskId, PredefinedTaskItemTypeId
EmployeePredefinedTask A template applied to a person. PredefinedTaskId, PersonId
Views Read models ViewEmployeeTask, ViewPredefinedTask(+Item), ViewEmployeePredefinedTask

Enums (TaskModel.cs)

Enum Values
EmployeeTaskStatuParams / PredefinedTaskStatuParams Not started · In progress · Completed
EmployeeTaskStateParams / PredefinedTaskStateParams Upcoming · Current · Ending · Due · Other
PredefinedTaskItemTypeParams Comment · Update

Concepts

Term Definition
Routine task Product name for EmployeeTask — a dated assignment.
Onboarding task Product name for PredefinedTask with IsForOnboarding — a reusable template.
Status The person's progress (Not started/In progress/Completed) — user-set.
State Time bucket (Upcoming/Current/Ending/Due) — derived from dates.
Template vs instance PredefinedTask = template; EmployeePredefinedTask = applied to a person.
Active An onboarding template that gets applied to new hires.
IsForOnboarding Flags a template as part of the onboarding checklist.
IsLocked Protects a template from edits.

⚠️ Not part of Tasks

Co-located in code but belonging to Requests: ApprovalWorkflow, ApprovalWorkflowConfigSetting, ApprovalWorkflowConfigSettingType, Approval_WorkflowsService, Admin/Approval_WorkflowsController. These are the role-chain approval configuration.

Services, routes, host

Component Detail
TaskService 1,351 lines
AdminTasksService 519
Employee/TasksService 262
Admin/TasksController 24 endpoints
Employee/TasksController 3
Routes /dashboard/tasks (Routine), /dashboard/tasks/onboarding (Onboarding)
Host (live) middleware-dev.paidhr.com/admin/tasks/* (core-backend also has Admin/Tasks/*)

Permissions

can_view_personal_tasks (+ admin task permissions).


Related