{"size": 473, "ext": "js", "max_stars_repo_path": "src/server/models/index.js", "max_stars_repo_name": "neuhausneuhaus/neuhaus-on-demand", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/server/models/index.js", "max_issues_repo_name": "neuhausneuhaus/neuhaus-on-demand", "max_issues_repo_issues_event_min_datetime": "2021-05-10T09:09:56.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T09:09:56.000Z", "max_forks_repo_path": "src/server/models/index.js", "max_forks_repo_name": "neuhausneuhaus/neuhaus-on-demand", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 19.7083333333, "max_line_length": 45, "alphanum_fraction": 0.689217759}
const Sequelize = require('sequelize');

const sequelize = new Sequelize(
  process.env.DATABASE,
  process.env.DATABASE_USER,
  process.env.DATABASE_PASSWORD,
  {dialect: 'postgres'},
);

const models = {
  Applicant: sequelize.import('./applicant'),
  Meeting: sequelize.import('./meeting'),
};

Object.keys(models).forEach(key => {
  if ('associate' in models[key]) {
    models[key].associate(models);
  }
});

export const xyz = { sequelize };

export default models;
