{"size": 525, "ext": "js", "max_stars_repo_path": "src/db/models/taskreference.js", "max_stars_repo_name": "SenyOrg/kekecmed-backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/db/models/taskreference.js", "max_issues_repo_name": "SenyOrg/kekecmed-backend", "max_issues_repo_issues_event_min_datetime": "2016-12-28T13:34:53.000Z", "max_issues_repo_issues_event_max_datetime": "2017-01-09T18:50:56.000Z", "max_forks_repo_path": "src/db/models/taskreference.js", "max_forks_repo_name": "SenyOrg/kekecmed-backend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 29.1666666667, "max_line_length": 61, "alphanum_fraction": 0.5276190476}
'use strict';
module.exports = function (sequelize, DataTypes) {
    var TaskReference = sequelize.define('TaskReference', {
        taskId: DataTypes.INTEGER,
        objectId: DataTypes.INTEGER,
        objectType: DataTypes.STRING
    }, {
        classMethods: {
            associate: function (models) {
                models.TaskReference.belongsTo(models.Task, {
                    as: 'task',
                    foreignKey: 'taskId'
                });
            }
        }
    });
    return TaskReference;
};