Skip to content

Commit

Permalink
add created (creation-date) to TaskSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
lefnire committed Jan 14, 2014
1 parent 6b5366b commit b96ce1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit b96ce1d

Please sign in to comment.