{"size": 414, "ext": "js", "max_stars_repo_path": "chapter-02/models/band.js", "max_stars_repo_name": "woohoeon/learning-nodejs-6-blueprint", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "chapter-02/models/band.js", "max_issues_repo_name": "woohoeon/learning-nodejs-6-blueprint", "max_issues_repo_issues_event_min_datetime": "2020-07-19T12:31:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T11:41:16.000Z", "max_forks_repo_path": "chapter-02/models/band.js", "max_forks_repo_name": "woohoeon/learning-nodejs-6-blueprint", "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": 25.875, "max_line_length": 44, "alphanum_fraction": 0.652173913}
'use strict';
module.exports = (sequelize, DataTypes) => {
  var Band = sequelize.define('Band', {
    name: DataTypes.STRING,
    description: DataTypes.STRING,
    album: DataTypes.STRING,
    year: DataTypes.STRING,
    UserId: DataTypes.INTEGER
  }, {});
  Band.associate = function(models) {
    // associations can be defined here
    // 관계 정의는 여기서 한다.
    Band.belongsTo(models.User);
  };
  return Band;
};