const mongoose = require("mongoose");

//Connecting to the database
mongoose.connect(
  process.env.MONGODB_URI,
  err => {
    if (!err) {
      console.log("Mongodb connection succeeded ");
    } else {
      console.log(
        "Error. Mongodb connection failed: " + JSON.stringify(err, undefined, 2)
      );
    }
  }
);


require("./feedBack.model");
require("./articleFeedback.model");
require("./user.model");
require("./feedbackEntries.model");
require("./queryHistory.model");
require("./queryInfos.model");
require("./articleInfos.model");
require("./clickEntries.model");