{"size": 355, "ext": "js", "max_stars_repo_path": "src/users-module/user.model.js", "max_stars_repo_name": "Abdallah-Zidan/nodeTDD", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/users-module/user.model.js", "max_issues_repo_name": "Abdallah-Zidan/nodeTDD", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/users-module/user.model.js", "max_forks_repo_name": "Abdallah-Zidan/nodeTDD", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.4347826087, "max_line_length": 48, "alphanum_fraction": 0.5492957746}
const { Model, STRING } = require('sequelize');
const sequelize = require('../config/database');
class User extends Model {}
User.init(
  {
    username: {
      type: STRING,
    },
    email: {
      type: STRING,
    },
    password: {
      type: STRING,
    },
  },
  {
    sequelize: sequelize,
    modelName: 'user',
  }
);

module.exports = User;
