code: def create(cls, user_id, github_id=None, name=None, **kwargs):
          
          with db.session.begin_nested():
              obj = cls(user_id=user_id, github_id=github_id, name=name,
                        **kwargs)
              db.session.add(obj)
          return obj
docs: Create the repository.