{"size": 837, "ext": "js", "max_stars_repo_path": "hunar_app/models/db.js", "max_stars_repo_name": "sranmanpreet/hunar", "max_stars_repo_stars_event_min_datetime": "2019-05-24T03:19:55.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-24T03:19:55.000Z", "max_issues_repo_path": "hunar_app/models/db.js", "max_issues_repo_name": "sranmanpreet/hunar", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "hunar_app/models/db.js", "max_forks_repo_name": "sranmanpreet/hunar", "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": 27.0, "max_line_length": 90, "alphanum_fraction": 0.660692951}
const mongoose = require('mongoose');

mongoose.connect(process.env.MONGODB_URI, {
    user: process.env.MONGODB_USER,
    pass: process.env.MONGODB_PASS,
    useNewUrlParser: true
}, (err) => {
    if (!err) {
        console.log('MongoDB connection succeeded.');
    } else {
        console.log('Error in MongoDB connection : ' + JSON.stringify(err, undefined, 2));
    }
});

//mongoose.Promise = global.Promise;

require('./art-size.model');
require('./art-type.model');
require('./pricelist.model');
require('./country.model');
require('./state.model');
require('./city.model');
require('./cart.model');
require('./address.model');
require('./order.model');
require('./user-role.model');
require('./user.model');
require('./product.model');
require('./advertisement.model');
require('./support.model');
require('./feedback.model');