func HasCategory() predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.To(CategoryTable, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, false, CategoryTable, CategoryColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}
HasCategory applies the HasEdge predicate on the "category" edge.
package portal
import (
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
)
func ID(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		if len(ids) == 0 {
			s.Where(sql.False())
			return
		}
		v := make([]interface{}, len(ids))
		for i := range v {
			v[i] = ids[i]
		}
		s.Where(sql.In(s.C(FieldID), v...))
	})
}
func IDNotIn(ids ...int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		if len(ids) == 0 {
			s.Where(sql.False())
			return
		}
		v := make([]interface{}, len(ids))
		for i := range v {
			v[i] = ids[i]
		}
		s.Where(sql.NotIn(s.C(FieldID), v...))
	})
}
func IDGT(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func Name(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldName), v))
	})
}
func Description(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldDescription), v))
	})
}
func NameEQ(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldName), v))
	})
}
func NameNEQ(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldName), v))
	})
}
func NameIn(vs ...string) predicate.Portal {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.Portal(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldName), v...))
	})
}
func NameNotIn(vs ...string) predicate.Portal {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.Portal(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldName), v...))
	})
}
func NameGT(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldName), v))
	})
}
func NameGTE(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldName), v))
	})
}
func NameLT(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldName), v))
	})
}
func NameLTE(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldName), v))
	})
}
func NameContains(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldName), v))
	})
}
func NameHasPrefix(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldName), v))
	})
}
func NameHasSuffix(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldName), v))
	})
}
func NameEqualFold(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EqualFold(s.C(FieldName), v))
	})
}
func NameContainsFold(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.ContainsFold(s.C(FieldName), v))
	})
}
func DescriptionEQ(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldDescription), v))
	})
}
func DescriptionNEQ(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldDescription), v))
	})
}
func DescriptionIn(vs ...string) predicate.Portal {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.Portal(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldDescription), v...))
	})
}
func DescriptionNotIn(vs ...string) predicate.Portal {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.Portal(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldDescription), v...))
	})
}
func DescriptionGT(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldDescription), v))
	})
}
func DescriptionGTE(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldDescription), v))
	})
}
func DescriptionLT(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldDescription), v))
	})
}
func DescriptionLTE(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldDescription), v))
	})
}
func DescriptionContains(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldDescription), v))
	})
}
func DescriptionHasPrefix(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldDescription), v))
	})
}
func DescriptionHasSuffix(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldDescription), v))
	})
}
func DescriptionEqualFold(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.EqualFold(s.C(FieldDescription), v))
	})
}
func DescriptionContainsFold(v string) predicate.Portal {
	return predicate.Portal(func(s *sql.Selector) {
		s.Where(sql.ContainsFold(s.C(FieldDescription), v))
	})
}