Files
bigcapital/server/src/database/objection.js
Ahmed Bouhuolia d423365a19 feat: Re-compute the given items cost job.
feat: Optimize the architecture.
2020-08-18 02:28:08 +02:00

9 lines
269 B
JavaScript

import { Model } from 'objection';
// Bind all Models to a knex instance. If you only have one database in
// your server this is all you have to do. For multi database systems, see
// the Model.bindKnex() method.
export default ({ knex }) => {
Model.knex(knex);
};