{"size": 248, "ext": "js", "max_stars_repo_path": "controllers/Brand.js", "max_stars_repo_name": "alexyiangou/hookah-nation-backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "controllers/Brand.js", "max_issues_repo_name": "alexyiangou/hookah-nation-backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "controllers/Brand.js", "max_forks_repo_name": "alexyiangou/hookah-nation-backend", "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": 20.6666666667, "max_line_length": 49, "alphanum_fraction": 0.6774193548}
const Brand = require('../models/Brand')
const knex = require('../knex')

/** 
 * @returns {Brand[]} List of all [Brand] objects
 */
async function getAllBrands() {
  return await knex.knex('brands').select()
}

exports.getAllBrands = getAllBrands
