typescript-express-sequelize
typescript-express-sequelize copied to clipboard
sync with database
I configured database config.json file, but sequelize tables appusers and languages are not creating, I need to write sequelize.sync()
in src/sql/models/_index.ts. Is it an issue or am I missing something?
I had the same problem, and resolved it by using node version 11.15.0
.
If you are using NVM, follow the steps below;
nvm list-remote
nvm install v11.15.0
nvm use 11
rm -rf node_modules
npm install
npm sqlz:migrate