'use strict';

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

/**
 * Activity Schema
 */
var ActivitySchema = new Schema({
	name: {
		type: String,
		default: '',
		required: 'Please fill Activity name',
		trim: true /*Removes Whitespace from Beginning and End from String */
	},
	description: {
		type: String,
		default: '',
		required: 'Please fill Activity description',
		trim: true /*Removes Whitespace from Beginning and End from String */
	},
	created: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	},
	entries: [
		{ 
			entryText: {
				type: String, 
				trim: true
			}, 
			entryDate: {
				type: Date,
				default: Date.now()
			}, 
			entryDatePicker: {
				type: Date,
				default: Date.now()
			},
			entryDuration: {
				type: Number, 
				trim: true,
				default: 0
			},
			entryDescription: {
				type: String, 
				default: 'empty',
				trim: true
			}			
		}
	]
});

mongoose.model('Activity', ActivitySchema);

@@ -322,16 +322,84 @@
  */%0A%09%7D,%0A
+%09color: %7B%0A%09%09type: String, %0A%09%09trim: true,%0A%09%09default: '#FFFFFF'%0A%09%7D, %09%0A
 %09descrip

Change Activity Model to support background color