Extend model with information about foreign keys