docker-compose -f docker-compose-dev.yml up --build
docker exec -ti -u root #container_id /bin/bash
npx sequelize-cli model:generate --name teachers --attributes firstName:string,lastName:string,email:string,age:integer
sequelize db:migrate --url "postgres://user_db:tupass@postgres:5432/boilerplate_db"
npx sequelize-cli migration:create --name modify_users_add_new_fields
npx sequelize-cli model:generate --name teachers --attributes firstName:string,lastName:string,email:string,age:integer
npx sequelize-cli model:generate --name courses --attributes name:string,credits:integer
npx sequelize-cli model:generate --name courseTeachers --attributes teacherId:integer,courseId:integer
- Affect the migrations to ref the tables