Files
bigcapital/packages/server/src/database/objection.ts
2023-02-03 11:57:50 +02:00

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);
};