Tiny library containing models of logging database.
// Initial Setup
$ git clone [email protected]:collab-tools/collab-db-logging.git
$ npm install
// Compilng the code
$ npm run compile
Simply pass in your database configuration that contains name
, username
, password
, options
properties.
require('collab-db-logging')(databaseConfig);
Currently this is linked to the collab
project, in order to alter a table, need to delete and re-run the collab
project or write a altering query.
Lookup on Sequelize Docs to understand how to use each of the model and their class methods within the library.