text: var mongoose = require('mongoose');
  
  // Subdocument schema for votes
  var voteSchema = new mongoose.Schema({ ip: 'String' });
  
  // Subdocument schema for poll choices
  var choiceSchema = new mongoose.Schema({ 
  	text: String,
  	selected: Boolean,
  	votes: [voteSchema]
  });
  
  // Document schema for polls
  exports.PollSchema = new mongoose.Schema({
  	question: { type: String, required: true },
  	choices: [choiceSchema]
  });