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

var ObjectId = mongoose.Schema.Types.ObjectId;

var UserGroupSchema   = new Schema({
	user_id: { type: ObjectId, index: true, unique: true },
	groups: [String],
	_date: { type: Date, default: Date.now },
}, {
	timestamps: true
});

UserGroupSchema.set("_perms", {
	setup: "crud",
	super_user: "crud",<commit_msg>adding ref:User to the model<commit_after>var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

var ObjectId = mongoose.Schema.Types.ObjectId;

var UserGroupSchema   = new Schema({
	user_id: { type: ObjectId, ref: "User", index: true, unique: true },
	groups: [String],
	_date: { type: Date, default: Date.now },
}, {
	timestamps: true
});

UserGroupSchema.set("_perms", {
	setup: "crud",
	super_user: "crud",
{'fraction_non_alphanumeric': 0.15430622009569378, 'fraction_numerical': 0.0, 'mean_word_length': 4.543046357615894, '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': '6481082', 'n_tokens_mistral': 294, 'n_tokens_neox': 301, 'n_words': 73}