Mark all the foreign key in the model as onupdate='CASCADE'