{"size": 550, "ext": "js", "max_stars_repo_path": "models/timesheet.js", "max_stars_repo_name": "leonxi/celery", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "models/timesheet.js", "max_issues_repo_name": "leonxi/celery", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/timesheet.js", "max_forks_repo_name": "leonxi/celery", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.9166666667, "max_line_length": 45, "alphanum_fraction": 0.6090909091}
var mongoose  = require('mongoose');
var Schema    = mongoose.Schema;

var TimeSheetSchema = new Schema({
  year: {type: String },
  month: {type: String },
  employees: [{
    employeename: {type: String},
    days: [{
      day: {type: String},
      workhours_1: {type: Number},
      workhours_2: {type: Number},
      workhours_3: {type: Number},
      workhours_4: {type: Number},
      takeoffhours: {type: Number},
      leavehours: {type: Number},
    }]
  }]
},{
  collection: 'timesheet'
});

mongoose.model('TimeSheet', TimeSheetSchema);
