{"size": 652, "ext": "js", "max_stars_repo_path": "webservice/models/user.js", "max_stars_repo_name": "songjein/tdls", "max_stars_repo_stars_event_min_datetime": "2019-03-06T00:11:16.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-13T05:43:21.000Z", "max_issues_repo_path": "webservice/models/user.js", "max_issues_repo_name": "songjein/tdls", "max_issues_repo_issues_event_min_datetime": "2019-03-05T00:47:07.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-31T04:19:34.000Z", "max_forks_repo_path": "webservice/models/user.js", "max_forks_repo_name": "songjein/tdls", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 11, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 24.1481481481, "max_line_length": 59, "alphanum_fraction": 0.6625766871}
'use strict';
module.exports = (sequelize, DataTypes) => {
  const User = sequelize.define('User', {
    firstKey: { 
			type: DataTypes.STRING,
			unique: true,
		},
    secondKeyHash: DataTypes.STRING,
		telegramId: DataTypes.INTEGER,
    nickName: { 
			type: DataTypes.STRING,
			unique: true,
		},
    company: DataTypes.STRING,
    memo: DataTypes.TEXT,
    email: DataTypes.STRING,
		githubUrl: DataTypes.STRING,
		todoItems: DataTypes.TEXT,
		finTodoItems: DataTypes.TEXT,
  }, {});
  User.associate = function(models) {
    // associations can be defined here
		models.User.hasMany(models.Log, { onDelete: 'CASCADE' });
  };
  return User;
};
