auto-generate models for sequelize

node.js, sequelize.js

Solution

You can auto generate models through sequelize-auto. Just Follow the following link https://github.com/sequelize/sequelize-auto

It will generate models of your table.

Problem

I'm wanting to start using Sequelize, a module that allows ORM for mysql in node.js. I was wondering if it's possible to auto-generate the models like CakePHP does. In CakePHP, it will read the table's info, and automatically create the associations and fields with their types in the model. i'd really hate to have to completely map out all my tables by hand, as some are relatively large. Is there something out there that will do this for me? Or am I on my own to hand-type all the models out?

Original source