text: 'use strict';
  
  import mongoose from 'mongoose';
  
  var PollSchema = new mongoose.Schema({
    title: {
      type: String,
      index: true,
      required: true
    },
    options: {
      type: mongoose.Schema.Types.Mixed,
      required: true
    },
    userId: {
      type: String,
      ref: 'User'
    },
    votedUsers: [String]
  });
  
  export default mongoose.model('Poll', PollSchema);
  