Update incorrect foreign key model definitions