<commit_before>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Event Schema
 */
var EventSchema = new Schema({
	name: {
		type: String,
		default: '',
		required: 'Please include an Event name',
		trim: true
	},
	description: {
		type: String,
		default: '',
		required: 'Please include an Event description',
		trim: true
	},
	date: {
		type: String,
		required: 'Please include Event date'
	},
    time: {
        type: String,
        required: 'Please include a start time',
        trim: true
    },
    location: {
        type: String,
        required: 'Please include a location',
        trim: true
    },
    project: {
		type: mongoose.Schema.Types.ObjectId,
        ref: 'Project'
	},
	skillsNeeded: [{
		skill: {
			type: mongoose.Schema.Types.ObjectId,
        	ref: 'Skillset'
		},
		isRequired: Boolean,
		users: [{
			type: mongoose.Schema.Types.ObjectId,
			ref: 'User'
		}]
	}],
	created: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});

mongoose.model('Event', EventSchema);
console.log('Event collection created');<commit_msg>trying to get users to add to skills in event schema.<commit_after>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Event Schema
 */
var EventSchema = new Schema({
	name: {
		type: String,
		default: '',
		required: 'Please include an Event name',
		trim: true
	},
	description: {
		type: String,
		default: '',
		required: 'Please include an Event description',
		trim: true
	},
	date: {
		type: String,
		required: 'Please include Event date'
	},
    time: {
        type: String,
        required: 'Please include a start time',
        trim: true
    },
    location: {
        type: String,
        required: 'Please include a location',
        trim: true
    },
    project: {
		type: mongoose.Schema.Types.ObjectId,
        ref: 'Project'
	},
	skillsNeeded: [{
		skillSet: {
			type: mongoose.Schema.Types.ObjectId,
        	ref: 'Skillset'
		},
		isRequired: Boolean,
		users: [{
			type: mongoose.Schema.Types.ObjectId,
			ref: 'User'
		}]
	}],
	created: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});

mongoose.model('Event', EventSchema);
console.log('Event collection created');
{'fraction_non_alphanumeric': 0.14369995785924988, 'fraction_numerical': 0.0, 'mean_word_length': 2.7802547770700636, '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': '4916180', 'n_tokens_mistral': 839, 'n_tokens_neox': 802, 'n_words': 211}