text: 'use strict';
  
  /**
   * Module dependencies.
   */
  var mongoose = require('mongoose'),
  	Schema = mongoose.Schema;
  
  /**
   * Chat Schema
   */
  
  var ChatSchema = new Schema({
  	created: {
  		type: Date, 
  		default: Date.now
  	},
  	message: {
  		type: String,
  		trim: true
  	},
  	user: {
  		type: Schema.ObjectId,
  		ref: 'User'
  	}
  });
  
  mongoose.model('Chat', ChatSchema);