<commit_before>'use strict';

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

/**
 * Event Schema
 */
var EventSchema = new Schema({
	title: {
		type: String,
		default: '',
		required: 'Please fill Event title',
		trim: true
	},
	description: {
		type: String,
		default: '',
		trim: true
	},
	url: {
		type: String,
		default: '',
		trim: true
	},
	time_description: {
		type: String,
		default: '',
		trim: true
	},
	location_name: {
		type: String,
		default: '',
		trim: true
	},
	location_latittude: {
		type: Number
	},
	location_longitude: {
		type: Number
	},
	start_datetime: {
		type: Date,
		default: Date.now
	},
	end_datetime: {
		type: Date,
		default: Date.now
	},
	image: { 
		mime: String, 
		bin: Buffer 
	},
	pass: {
		type: String,
		default: '',
	},
	created: {
		type: Date,
		default: Date.now
	},
	updated: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});<commit_msg>Update event model<commit_after>'use strict';

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

/**
 * Event Schema
 */
var EventSchema = new Schema({
	title: {
		type: String,
		default: '',
		required: 'Please fill Event title',
		trim: true
	},
	description: {
		type: String,
		default: '',
		required: 'Please fill Event description',
		trim: true
	},
	url: {
		type: String,
		default: '',
		required: 'Please fill Event address',
		trim: true
	},
	time_description: {
		type: String,
		default: '',
		required: 'Please fill Event time',
		trim: true
	},
	location_name: {
		type: String,
		default: '',
		required: 'Please fill Event location',
		trim: true
	},
	location_latittude: {
		type: Number
	},
	location_longitude: {
		type: Number
	},
	start_datetime: {
		type: Date,
		default: '',
		required: 'Please fill Event starting date'
	},
	end_datetime: {
		type: Date,
		default: ''
	},
	image: { 
		type: String,
		bin: Buffer,
		required: 'Please choose Event image'
	},
	pass: {
		type: String,
		default: '',
	},
	created: {
		type: Date,
		default: Date.now
	},
	updated: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	},
	comment_cat: {
		type: Array
	}
});
{'fraction_non_alphanumeric': 0.1568191914704576, 'fraction_numerical': 0.0, 'mean_word_length': 3.147329650092081, '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': '1188046', 'n_tokens_mistral': 904, 'n_tokens_neox': 833, 'n_words': 214}