text: 'use strict';
  
  /**
   * Module dependencies.
   */
  var mongoose = require('mongoose'),
  	Schema = mongoose.Schema;
  /**
   * Review Schema
   */
  var ReviewSchema = {
  	title: {
  		type: String,
  		default: '',
  		required: 'Please fill review title',
  		trim: true
  	},
  	pros: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	cons: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	culture: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	vote: {
  		type: Number,
  		default: 0
  	},
  	currentEmployer: {
  		type: Boolean
  	},
  	seniority: {
  		type: Number
  	},
  	rate: {
  		type: Number
  	},
  	user: {
  		type: Schema.ObjectId,
  		ref: 'User'
  	},
  	created: {
  		type: Date,
  		default: Date.now
  	}
  };
  
  /**
   * Interview Schema
   */
  var InterviewSchema = {
  	position: {
  		type: String,
  		default: '',
  		required: 'Please fill position',
  		trim: true
  	},
  	overview: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	application: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	process: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	location: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	tests: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	negotiation: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	feel: {
  		type: Number,
  		default: 1
  	},
  	vote: {
  		type: Number,
  		default: 0
  	},
  	offer: {
  		type: Number
  	},
  	difficult: {
  		type: Number
  	},
  	created: {
  		type: Date,
  		default: Date.now
  	}
  };
  /**
   * Article Schema
   */
  var ArticleSchema = new Schema({
  	name: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	companyUrl: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	created: {
  		type: Date,
  		default: Date.now
  	},
  	title: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	content: {
  		type: String,
  		default: '',
  		trim: true
  	},
  	rate: {
  		type: Number,
  		default: 0
  	},
  	location:{
  		type: String,
  		default: '',
  		trim: true
  	},
  	size:{
  		type: Number,
  		default: 10
  	},
  	user: {
  		type: Schema.ObjectId,
  		ref: 'User'
  	},
  	reviews: [ReviewSchema],
  	interviews: [InterviewSchema]
  });
  
  mongoose.model('Article', ArticleSchema);
  