The old app depended on manual status updates. A truck could finish its trip and still appear unavailable to dispatchers. We changed how vehicle status was recorded. The updated system checks completed trips and maintenance restrictions before marking a vehicle as available.
- PostgreSQL stores vehicle details and assignment history
- Vehicle states include available, assigned, on trip, under maintenance and out of service
- Dispatchers can search by vehicle type and load capacity
- Overlapping assignments are blocked
- Every status change records the responsible user and timestamp
