Day 53, sequelize

Finishing up connecting Backbone to the API endpoints. Running into so many problems with Sequelize.

Here is one problem:
– Sequelize assumes that your table should have a column ‘id’ with primary key, auto increment, not null. If you create the database manually through MySQL Workbench, then your table might not have that column. The only way to solve the problem is to actually add that column in the table. I couldn’t find a way to disable this assumption.

Advertisements
Standard