<commit_before>var mongoose = require('mongoose');

var newsfeedSchema = new mongoose.Schema();

newsfeedSchema.add({
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'users'
    },
    actionSubjectIds: {
        type: mongoose.Schema.Types.ObjectId
    },
    courseId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'courses'
    },
    nodeId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'treeNodes'
    },
    actionSubject: { type: String},
    actionType : { type: String},
    dateAdded: {type: Date}
});

var newsfeedAgg = mongoose.model('newsfeed', newsfeedSchema);

module.exports = newsfeedAgg;<commit_msg>Add actionName field to newsfeed model<commit_after>var mongoose = require('mongoose');

var newsfeedSchema = new mongoose.Schema();

newsfeedSchema.add({
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'users'
    },
    actionSubjectIds: {
        type: mongoose.Schema.Types.ObjectId
    },
    courseId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'courses'
    },
    nodeId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'treeNodes'
    },
    actionSubject: { type: String},
    actionType : { type: String},
    actionName : {type:String},
    dateAdded: {type: Date}
});

var newsfeedAgg = mongoose.model('newsfeed', newsfeedSchema);

module.exports = newsfeedAgg;
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.0, 'mean_word_length': 2.8465753424657536, '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': '6267639', 'n_tokens_mistral': 448, 'n_tokens_neox': 460, 'n_words': 88}