{"size": 584, "ext": "js", "max_stars_repo_path": "models/users_leagues.js", "max_stars_repo_name": "seanianking/SoggyBottomboys-Project2", "max_stars_repo_stars_event_min_datetime": "2020-01-16T02:57:58.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-29T17:20:21.000Z", "max_issues_repo_path": "models/users_leagues.js", "max_issues_repo_name": "seanianking/SoggyBottomboys-Project2", "max_issues_repo_issues_event_min_datetime": "2020-03-09T05:21:16.000Z", "max_issues_repo_issues_event_max_datetime": "2020-03-11T06:38:26.000Z", "max_forks_repo_path": "models/users_leagues.js", "max_forks_repo_name": "seanianking/SoggyBottomboys-Project2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 27.8095238095, "max_line_length": 57, "alphanum_fraction": 0.6626712329}
module.exports = function(sequelize) {
  const UsersLeagues = sequelize.define("UsersLeagues", {
    // admin: {
    //   type: DataTypes.BOOLEAN,
    //   allowNull: false
    // }
  });
  UsersLeagues.associate = models => {
    UsersLeagues.belongsTo(models.Users);
    UsersLeagues.belongsTo(models.League);
    // UsersLeagues.belongsTo(models.Participants);
  };
  return UsersLeagues;
};

// CREATE TABLE users_leagues(
//     id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
//     user INT NOT NULL REFERENCES users(id),
//     league INT NOT NULL REFERENCES league(id)
//     );
