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?
see https://github.com/sequelize/sequelize/issues/339
Sequelize provides methods to read the existing table names of a database. Furthermore there is a method to read the structure of a table. Combined, it should be possible to automate the creation of models.
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.