{"size": 390, "ext": "js", "max_stars_repo_path": "src/server/src/models/grid.js", "max_stars_repo_name": "istreight/eggbeatr", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/server/src/models/grid.js", "max_issues_repo_name": "istreight/eggbeatr", "max_issues_repo_issues_event_min_datetime": "2021-09-28T05:48:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T10:47:57.000Z", "max_forks_repo_path": "src/server/src/models/grid.js", "max_forks_repo_name": "istreight/eggbeatr", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 21.6666666667, "max_line_length": 54, "alphanum_fraction": 0.5564102564}
'use strict';

module.exports = (sequelize, DataTypes) => {
    var Grid = sequelize.define('Grid', {
        duration: DataTypes.INTEGER,
        lessonTimes: DataTypes.ARRAY(DataTypes.STRING)
    }, {});

    Grid.associate = (models) => {
        Grid.belongsTo(models.Header, {
            foreignKey: 'headerId',
            onDelete: 'CASCADE'
        });
    };

    return Grid;
};
