Produce Sequelize models from JSON Schemas.
npm install sqlschemify
- SequelizeJS
var Sequelize = require('sequelize'),
SQLSchemify = require('sqlschemify');
var schemify = SQLSchemify({
Sequelize: Sequelize
});
var model = schemify.getModelForSchema('path/to/schema');
Pass either a parsed JSON Schema, or a path to a JSON Schema file.
Returns a Sequelize Model.