var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var todoItemSchema = new Schema({
    author_id: String,
    creation_date: {type: Date, default: Date.now},
    title: {type: String, default: ''},
    content: {type: String, default: ''},
    priority: {type: String, default: 'low'},
    completed: {type: Boolean, default: false}
});

module.exports = mongoose.model('TodoItem', todoItemSchema);
@@ -169,16 +169,67 @@
 e.now%7D,%0A
+    updated_date: %7Btype: Date, default: Date.now%7D,%0A
     titl
@@ -315,38 +315,38 @@
 riority: %7Btype: 
-String
+Number
 , default: 'low'
@@ -344,13 +344,9 @@
 lt: 
-'low'
+0
 %7D,%0A 

update some of the fields for todo items