title: Cannot add foreign key constraint Sequelize
body: <ol>
  <li>I created a model called <strong>Reataurant</strong></li>
  <li>I created another model called <strong>opening_hours</strong></li>
  <li><p><strong>One restaurant has many opening_hours</strong></p></li>
  <li><p>I'm trying to add <strong>RestaurantId</strong> column as a foreign key to the openning_hours model in a migration.</p></li>
  <li>It gives me this error </li>
  </ol>
  
  <blockquote>
    <p>Cannot add foreign key constraint</p>
  </blockquote>
  
  <p>Why could this happen?</p>
  
  <p><a href="https://i.stack.imgur.com/wWYMC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wWYMC.png" alt="enter image description here"></a></p>