text: import Sequelize from 'sequelize'
  
  const sequelize = new Sequelize(
    process.env.DATABASE,
    process.env.DATABASE_USER,
    process.env.DATABASE_PASSWORD,
    {
      dialect: 'postgres',
    },
  )
  
  const models = {
    Employee: sequelize.import('./employee'),
    Department: sequelize.import('./department'),
    Organization: sequelize.import('./organization'),
  }
  
  Object.keys(models).forEach(key => {
    if ('associate' in models[key]) {
      models[key].associate(models)
    }
  })
  
  export { sequelize }
  
  export default models
  