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