add created (creation-date) to TaskSchema

This commit is contained in:
Tyler Renelle
2014-01-14 16:46:16 -07:00
parent 6b5366b246
commit b96ce1d07f
+1
View File
@@ -15,6 +15,7 @@ var _ = require('lodash');
var TaskSchema = {
//_id:{type: String,'default': helpers.uuid},
id: {type: String,'default': shared.uuid},
created: {type:Date, 'default':new Date},
text: String,
notes: {type: String, 'default': ''},
tags: {type: Schema.Types.Mixed, 'default': {}}, //{ "4ddf03d9-54bd-41a3-b011-ca1f1d2e9371" : true },