mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
9 lines
269 B
JavaScript
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);
|
|
};
|