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