{"size": 413, "ext": "js", "max_stars_repo_path": "api/models/Passenger.js", "max_stars_repo_name": "apantle/awsome-factory-associator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/models/Passenger.js", "max_issues_repo_name": "apantle/awsome-factory-associator", "max_issues_repo_issues_event_min_datetime": "2020-09-30T19:37:56.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-30T19:45:27.000Z", "max_forks_repo_path": "api/models/Passenger.js", "max_forks_repo_name": "apantle/awsome-factory-associator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 15.2962962963, "max_line_length": 43, "alphanum_fraction": 0.5496368039}
/**
 * Passenger.js
 *
 * @description ::Represents a Passenger
 */

const { DataTypes } = require('sequelize');

module.exports = {
  attributes: {
    name: {
      type: DataTypes.STRING
    },
    is_disabled: {
      type: DataTypes.BOOLEAN,
      defaultValue: false
    }
  },
  associations: () => {
    Passenger.hasMany(Ticket, {
      foreignKey: {
        name: 'passenger_key'
      }
    });
  }
};
