{"size": 687, "ext": "js", "max_stars_repo_path": "api/app/Models/CockpitWorkingTime.js", "max_stars_repo_name": "bmaximilian/worklog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/app/Models/CockpitWorkingTime.js", "max_issues_repo_name": "bmaximilian/worklog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "api/app/Models/CockpitWorkingTime.js", "max_forks_repo_name": "bmaximilian/worklog", "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": 20.2058823529, "max_line_length": 67, "alphanum_fraction": 0.5866084425}

const Model = use('Model');

/**
 * @class CockpitWorkingTime
 */
class CockpitWorkingTime extends Model {
    /**
     * The cockpit time type
     * (i.e holiday, project, vacation)
     *
     * @method timeType
     *
     * @return {Object} : Returns one time type of the working time
     */
    timeType() {
        return this.hasOne('App/Models/CockpitTimeType');
    }

    /**
     * The cockpit work type
     * (i.e scheduled, fulfilled)
     *
     * @method workType
     *
     * @return {Object} : Returns one work type of the working time
     */
    workType() {
        return this.hasOne('App/Models/CockpitWorkType');
    }
}

module.exports = CockpitWorkingTime;
