document sequelize code example
Example: sequelize
$ npm install --save sequelize
$ npm install --save-dev sequelize-cli
$ npm install --save pg pg-hstore
$ npm install --save mysql2
$ npm install --save mariadb
$ npm install --save sqlite3
$ npm install --save tedious
//Generate Models Auto with sequelize-auto
$ npm install mysql2 -g
$ npm install -g sequelize-auto-v2
//Comand to generate models from database
sequelize-auto -o "./models" -d schema -h localhost -u user -p 3306 -x password -e dialect
Exemple:
sequelize-auto -o "./models" -d nomeDoShema -h localhost -u usuarioDaConexao -p 3306 -x senhaDaConexao -e mysql