code: def repo_model(self):
          
          return Repository.query.filter_by(
              user_id=self.event.user_id,
              github_id=self.repository['id'],
          ).one()
docs: Return repository model from database.