{"size": 680, "ext": "js", "max_stars_repo_path": "server/models/auth.js", "max_stars_repo_name": "dj-1087/MJU_Club_HomePage", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/models/auth.js", "max_issues_repo_name": "dj-1087/MJU_Club_HomePage", "max_issues_repo_issues_event_min_datetime": "2021-07-17T05:46:23.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-12T15:06:52.000Z", "max_forks_repo_path": "server/models/auth.js", "max_forks_repo_name": "dj-1087/MJU_Club_HomePage", "max_forks_repo_forks_event_min_datetime": "2021-05-09T07:42:50.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-15T02:10:22.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 7, "avg_line_length": 20.6060606061, "max_line_length": 53, "alphanum_fraction": 0.4926470588}
const Sequelize = require("sequelize");

module.exports = class Auth extends Sequelize.Model {
  static init(sequelize) {
    return super.init(
      {
        token: {
          type: Sequelize.STRING(45),
          allowNull: false,
        },
        user_id: {
          type: Sequelize.INTEGER,
          allowNull: false,
        },
        ttl: {
          type: Sequelize.INTEGER,
          allowNull: false,
        },
      },
      {
        sequelize,
        timestamps: true,
        underscored: true,
        modelName: "Auth",
        tableName: "auth",
        paranoid: false,
        charset: "utf8",
        collate: "utf8_general_ci",
      }
    );
  }
};
