mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
WIP Multi-tenant architecture.
This commit is contained in:
7
server/src/database/objection.js
Normal file
7
server/src/database/objection.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Model } from 'objection';
|
||||
import knex from '@/database/knex';
|
||||
|
||||
// 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.
|
||||
Model.knex(knex);
|
||||
Reference in New Issue
Block a user