add foreign key attribute to show class