text: 'use strict'
  
  require('dotenv').config()
  
  // Connect to database
  const DATABASE_URL = process.env.NODE_ENV === 'test' 
    ? 'sqlite:memory' 
    : process.env.NODE_ENV === 'production' 
    ? process.env.HEROKU_POSTGRESQL_AQUA_URL
    : process.env.DATABASE_URL
  const { Sequelize, DataTypes } = require('sequelize')
  let sequelizeOptions = process.env.NODE_ENV === 'production'
      ? {
          dialectOptions: {
              ssl: {
                  require: true,
                  rejectUnauthorized: false,
              }
          }
      }
      : {};
  let sequelize = new Sequelize(DATABASE_URL, sequelizeOptions);
  const foods = require('./foods')
  const clothes = require('./clothes')
  
  module.exports = {
    db: sequelize,
    Food: foods(sequelize, DataTypes),
    Clothes: clothes(sequelize, DataTypes)
  }
  