Implementation for #157 foreign key constraints
https://github.com/coopernurse/gorp/issues/157