Create Table not working
Error 150 is a FOREIGN KEY related error so I bet that you didn't create the table mealPlannerApp.photos before mealPlannerApp.ingredients (which is mandatory).

Otherwise, you have some bad practices in your query:


PK on ingredientId and unique index id_UNIQUE are duplicates (useless and will generate extra-load)
The ASC option in your indexes definition is understand by MySQL but not implemented (useless), maybe it's Workbench which has generated this.