Add TaskTime, model and api function