Question

I'm researching Sequelize for use in a project with an existing data-filled database. I like the way it works, but I'm trying to figure out if I have to write the models by hand. Entity Framework and other ORMs have features that will generate code models for you, using the database schema as a starting point. It looks like Sequelize hasn't gotten there, but I want to be sure I'm not missing something.

TL;DR:
Do I need to write my Sequelize models by hand for an existing database, or is there a way to generate them?

Was it helpful?

Solution

The sequelize-auto package will create Sequelize definitions from an existing database.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top