summaryrefslogtreecommitdiff
path: root/src/app/db/models/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/db/models/index.js')
-rw-r--r--src/app/db/models/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app/db/models/index.js b/src/app/db/models/index.js
new file mode 100644
index 0000000..424be66
--- /dev/null
+++ b/src/app/db/models/index.js
@@ -0,0 +1,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);
+}