<commit_before><commit_msg>Create pool schema.<commit_after>var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var voteSchema = new Schema({
  choice: String,
  user: Number,
  date: { type: Date, default: Date.now },
  comment: String
});

var poolSchema = new Schema({
  question: String,
  detail: String,
  source: String,
  author: String,
  votes: [voteSchema],
  date: { type: Date, default: Date.now },
  hidden: Boolean,
  meta: {
    votes: { type: Number, default: 0 },
    favs: { type: Number, default: 0 }
  }
});

module.exports = exports = mongoose.model('Pool', poolSchema);
{'fraction_non_alphanumeric': 0.14662273476112025, 'fraction_numerical': 0.0032948929159802307, 'mean_word_length': 3.9430894308943087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5141822', 'n_tokens_mistral': 198, 'n_tokens_neox': 201, 'n_words': 58}