如何进行时间跟踪节点/mongoose/angular?

提前我为我的英语道歉。 我在Node(restify)/ mongoose / angular4上创buildTODOManager应用程序来改进自己,我不知道如何实现时间跟踪。 我需要一个这样的计划:

const mongoose = require('mongoose') const schema = new mongoose.Schema({ title: String, duoDate: Date, // end date of completion timeTracking: { estimatedtime spentTime remainingtime } }) 

但是,我不知道如何实现时间跟踪。 如何在mongoDB中保存时间跟踪和全部时间更新数据(field time tracking)

我将不胜感激任何帮助https://github.com/wiNgeRf0rN1ceE/TODOManager