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

/**
* Level
* 0 : Membre
* 1 : Administrateur
* 2 : Créateur
**/

var ProjectUserSchema   = new Schema(
{
    created : {type : Date, default : Date.now},
    value : {type : Number, default : 0},
    author : {type: mongoose.Schema.Types.ObjectId, ref: 'User'},
    project : {type : mongoose.Schema.Types.ObjectId, ref: 'Project'}
});

module.exports = mongoose.model('ProjectUser', ProjectUserSchema);<commit_msg>Add ProjectUser levels to model<commit_after>var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

/**
* Level
* 0 : Member
* 1 : Administrator
* 2 : Creator
**/

var ProjectUserSchema   = new Schema(
{
    created : {type : Date, default : Date.now},
    value : {type : Number, default : 0},
    author : {type: mongoose.Schema.Types.ObjectId, ref: 'User'},
    project : {type : mongoose.Schema.Types.ObjectId, ref: 'Project'}
});

module.exports = mongoose.model('ProjectUser', ProjectUserSchema);

module.exports.Level = {};
module.exports.Level.Member = 0;
module.exports.Level.Admin = 1;
module.exports.Level.Creator = 2;
{'fraction_non_alphanumeric': 0.15271786022433131, 'fraction_numerical': 0.009490940465918895, 'mean_word_length': 3.8132780082987554, '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': '1963052', 'n_tokens_mistral': 378, 'n_tokens_neox': 379, 'n_words': 90}