<commit_before>/**
 * Created by Nightpaws on 24/02/2016.
 */
var mongoose = require('mongoose');
var config = require('../../config');

var message = new mongoose.Schema({
    uid:{
        type: String,
        required: true,
        unique: false
    },
    subject: {
        type:String,
        required:true,
        unique:false
    },
    message: {
        type: String,
        required: true,
        unique: false,
        default: "No Message Provided"
    },
    recipients: {
        type: String,
        required:true,
        unique:false
    },
    postDate: {
        type: Date,
        default: Date.now
    }

});
message.index({ uid: 'text', createdOn: 'text'});

module.exports = mongoose.model('Message', message);<commit_msg>adjusting schema to attempt to resolve db size limitation<commit_after>/**
 * Created by Nightpaws on 24/02/2016.
 */
var mongoose = require('mongoose');
var config = require('../../config');

var message = new mongoose.Schema({
    uid:{
        type: String,
        required: true,
        unique: false
    },
    subject: {
        type:String,
        required:true,
        unique:false
    },
    message: {
        type: String,
        required: true,
        unique: false,
        default: "No Message Provided"
    },
    recipients: {
        type: String,
        required:true,
        unique:false
    },
    postDate: {
        type: Date,
        default: Date.now
    }

});
message.set('autoIndex',false);
message.index({ uid: 1, createdOn: 2});

module.exports = mongoose.model('Message', message);
{'fraction_non_alphanumeric': 0.1365946632782719, 'fraction_numerical': 0.011435832274459974, 'mean_word_length': 2.058252427184466, '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': '4508', 'n_tokens_mistral': 477, 'n_tokens_neox': 470, 'n_words': 120}