I am building a nodejs API with PostgreSQL & Sequilize. My client gave me a .sql file which has been exported from dbdiagram.io.
Is it possible to generate all my models base on .sql file ?
or do I have to do it all manually ?
I am building a nodejs API with PostgreSQL & Sequilize. My client gave me a .sql file which has been exported from dbdiagram.io.
Is it possible to generate all my models base on .sql file ?
or do I have to do it all manually ?
Copyright © 2021 Jogjafile Inc.
Sequelize-auto can automatically create model file (its a npm package).
You need to have a database created using the SQL file and then use
sequelize-auto.
It automatically generate models for SequelizeJS via the command line.
Installation:
Using command line :
Sequelize-auto npm link