// meow.js - Model
// =============
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;
var KittySchema = require('./kitty');

var MeowSchema = new Schema();
MeowSchema.add({
    //_id: ObjectId,
    kitty: {type: mongoose.Schema.Types.ObjectId, ref: 'kitty'},
    text: String
});

module.exports = mongoose.model('meow', MeowSchema);
@@ -300,16 +300,62 @@
 itty'%7D,%0A
+    date: %7B type : Date, default: Date.now %7D,%0A
     text

add date to the meow model for ordering meoews