diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-10-17 02:52:05 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-10-17 02:52:05 +0200 |
| commit | 06ecdf2af182034496e2123852deee4a58de1043 (patch) | |
| tree | c8d4eb9664dd368bee5a4bf73dd1e02015ecaf39 /src/app/db/models/index.js | |
making a shoebox
Diffstat (limited to 'src/app/db/models/index.js')
| -rw-r--r-- | src/app/db/models/index.js | 18 |
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); +} |
