mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
add server to monorepo.
This commit is contained in:
8
packages/server/src/database/objection.ts
Normal file
8
packages/server/src/database/objection.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user