const Sequelize = require('sequelize');

const name = (process.env.DATABASE_NAME || "blobworld");

const url = process.env.DATABASE_URL || `postgres://localhost:5432/${name}`;

const db = new Sequelize(url, {
  logging: false,
  define: { underscored: true }
});
module.exports = db;

const Sequelize = require('sequelize');

const name = (process.env.DATABASE_NAME || 'agamari');

const url = process.env.DATABASE_URL || `postgres://localhost:5432/${name}`;

const db = new Sequelize(url, {
  logging: false,
  define: { underscored: true }
});
module.exports = db;

update dev db name to agamari