mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
WIP Items module.
This commit is contained in:
17
server/src/models/bookshelf.js
Normal file
17
server/src/models/bookshelf.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Bookshelf from 'bookshelf';
|
||||
import jsonColumns from 'bookshelf-json-columns';
|
||||
import bookshelfParanoia from 'bookshelf-paranoia';
|
||||
import bookshelfModelBase from 'bookshelf-modelbase';
|
||||
import knex from '../database/knex';
|
||||
|
||||
const bookshelf = Bookshelf(knex);
|
||||
|
||||
bookshelf.plugin('pagination');
|
||||
bookshelf.plugin('visibility');
|
||||
bookshelf.plugin('registry');
|
||||
bookshelf.plugin('virtuals');
|
||||
bookshelf.plugin(jsonColumns);
|
||||
bookshelf.plugin(bookshelfParanoia);
|
||||
bookshelf.plugin(bookshelfModelBase.pluggable);
|
||||
|
||||
export default bookshelf;
|
||||
Reference in New Issue
Block a user