{"size": 328, "ext": "js", "max_stars_repo_path": "server/db/database.js", "max_stars_repo_name": "feminaprovita/kfbc-website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/db/database.js", "max_issues_repo_name": "feminaprovita/kfbc-website", "max_issues_repo_issues_event_min_datetime": "2019-01-16T18:16:36.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T00:09:21.000Z", "max_forks_repo_path": "server/db/database.js", "max_forks_repo_name": "feminaprovita/kfbc-website", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 43, "max_forks_count": null, "avg_line_length": 21.8666666667, "max_line_length": 72, "alphanum_fraction": 0.6981707317}
'use strict';

const chalk = require('chalk')
const Sequelize = require('sequelize')
const pkg = require('../../package.json')

console.log(chalk.yellow('Opening database connection'))

const db = new Sequelize(
  process.env.DATABASE_URL || `postgres://localhost:5432/${pkg.name}`, {
  logging: false,
})

module.exports = db;
