text: 'use strict'
  
  var mongoose = require('mongoose');
  var Schema = mongoose.Schema;
  var SurveySchema = new Schema({
      name: {
          type: String,
          unique: true,
          required : 'The Survey Name is Required!'
      },
      pages: [
          {
              type: Schema.Types.ObjectId,
              ref: 'Page'
          }
      ]
  }, {
      usePushEach: true 
  });
  
  var Survey = mongoose.model('Survey', SurveySchema);
  