const mongoose = require("mongoose");
mongoose.Promise = global.Promise;

const db = {};

db.mongoose = mongoose;

db.user = require("./user");
db.role = require("./role.model");
db.events = require("./events");

db.ROLES = ["user", "admin"];

module.exports = db;
