summaryrefslogtreecommitdiff
path: root/src/app/db/models/index.js
blob: 424be666e9e720b4a5e43f3bcda44dc32b626340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * Register the models used by our application.
 * @module app/db/models/index
 */

import registerShoe from "./Shoe";

/**
 * Register our models with a Bookshelf instance.
 *
 * Some modules define multiple models for pivot tables.  In these cases,
 * the models should be stored in the file for the closest related concept.
 *
 * @param {Object} bookshelf   The bookshelf instance to bind to
 */
export function registerModels(bookshelf) {
  registerShoe(bookshelf);
}