{"size": 371, "ext": "js", "max_stars_repo_path": "server/database.js", "max_stars_repo_name": "cybermalevich/node-postgres", "max_stars_repo_stars_event_min_datetime": "2021-01-13T02:56:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-13T02:56:58.000Z", "max_issues_repo_path": "server/database.js", "max_issues_repo_name": "cybermalevich/node-postgres", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/database.js", "max_forks_repo_name": "cybermalevich/node-postgres", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.1875, "max_line_length": 68, "alphanum_fraction": 0.7035040431}
// Database configuration file
// TODO: move the database, username, and password to env file

const Sequelize = require("sequelize");
module.exports.database = new Sequelize("seqdb", "admin", "admin", {
  host: "db",
  dialect: "postgres",
  port: 5432
});

module.exports.dataType = {
  string: Sequelize.STRING,
  integer: Sequelize.INTEGER,
  date: Sequelize.DATE
};
