A Run is a scheduled route/shift that groups tasks for a specific driver, vehicle, and date.
Why runs exist
Group tasks that should be completed together
Allocate work to drivers and vehicles
Support route planning and efficiency
Run fields
Reference number (auto-generated)
Name (e.g. “Monday North Run”)
Date
Driver (required)
Vehicle
Ordered list of tasks
Status
Run status lifecycle
CREATED
IN_PROGRESS
COMPLETED
CANCELLED
Key relationships
One run contains many tasks
A task belongs to zero or one run
Adding a task to a run sets task status to SCHEDULED
Starting a run sets tasks to IN_PROGRESS
