Nest foreign key relations