{"size": 555, "ext": "js", "max_stars_repo_path": "db/models/index.js", "max_stars_repo_name": "KaushalKK/scout-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "db/models/index.js", "max_issues_repo_name": "KaushalKK/scout-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "db/models/index.js", "max_forks_repo_name": "KaushalKK/scout-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.6470588235, "max_line_length": 80, "alphanum_fraction": 0.6648648649}
"use strict";

module.exports = (mongoose, dbSchema) => {
    const teamModel = mongoose.model('Teams', dbSchema.team);
    const userModel = mongoose.model('Users', dbSchema.user);
    const eventModel = mongoose.model('Events', dbSchema.event);
    const matchModel = mongoose.model('Matches', dbSchema.match);
    const teamMatchModel = mongoose.model('TeamMatches', dbSchema.teamsMatches);

    return {
        team: teamModel,
        user: userModel,
        event: eventModel,
        match: matchModel,
        teamMatch: teamMatchModel
    };
};