code: func (q AppsQuery) scope(db *gorm.DB) *gorm.DB {
  	scope := composedScope{isNull("deleted_at")}
  
  	if q.ID != nil {
  		scope = append(scope, idEquals(*q.ID))
  	}
  
  	if q.Name != nil {
  		scope = append(scope, fieldEquals("name", *q.Name))
  	}
  
  	if q.Repo != nil {
  		scope = append(scope, fieldEquals("repo", *q.Repo))
  	}
  
  	return scope.scope(db)
  }
docs: // scope implements the scope interface.