// Code generated by ent, DO NOT EDIT. package post import ( "time" "code.icod.de/dalu/ka/ent/predicate" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/google/uuid" ) // ID filters vertices based on their ID field. func ID(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...uuid.UUID) predicate.Post { return predicate.Post(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...uuid.UUID) predicate.Post { return predicate.Post(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id uuid.UUID) predicate.Post { return predicate.Post(sql.FieldLTE(FieldID, id)) } // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.Post { return predicate.Post(sql.FieldEQ(FieldCreatedAt, v)) } // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. func UpdatedAt(v time.Time) predicate.Post { return predicate.Post(sql.FieldEQ(FieldUpdatedAt, v)) } // Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ. func Expires(v bool) predicate.Post { return predicate.Post(sql.FieldEQ(FieldExpires, v)) } // ExpireTime applies equality check predicate on the "expire_time" field. It's identical to ExpireTimeEQ. func ExpireTime(v time.Time) predicate.Post { return predicate.Post(sql.FieldEQ(FieldExpireTime, v)) } // Title applies equality check predicate on the "title" field. It's identical to TitleEQ. func Title(v string) predicate.Post { return predicate.Post(sql.FieldEQ(FieldTitle, v)) } // Body applies equality check predicate on the "body" field. It's identical to BodyEQ. func Body(v string) predicate.Post { return predicate.Post(sql.FieldEQ(FieldBody, v)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.Post { return predicate.Post(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.Post { return predicate.Post(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.Post { return predicate.Post(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.Post { return predicate.Post(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.Post { return predicate.Post(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.Post { return predicate.Post(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.Post { return predicate.Post(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.Post { return predicate.Post(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.Post { return predicate.Post(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.Post { return predicate.Post(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.Post { return predicate.Post(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.Post { return predicate.Post(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.Post { return predicate.Post(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.Post { return predicate.Post(sql.FieldLTE(FieldUpdatedAt, v)) } // UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. func UpdatedAtIsNil() predicate.Post { return predicate.Post(sql.FieldIsNull(FieldUpdatedAt)) } // UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. func UpdatedAtNotNil() predicate.Post { return predicate.Post(sql.FieldNotNull(FieldUpdatedAt)) } // ExpiresEQ applies the EQ predicate on the "expires" field. func ExpiresEQ(v bool) predicate.Post { return predicate.Post(sql.FieldEQ(FieldExpires, v)) } // ExpiresNEQ applies the NEQ predicate on the "expires" field. func ExpiresNEQ(v bool) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldExpires, v)) } // ExpireTimeEQ applies the EQ predicate on the "expire_time" field. func ExpireTimeEQ(v time.Time) predicate.Post { return predicate.Post(sql.FieldEQ(FieldExpireTime, v)) } // ExpireTimeNEQ applies the NEQ predicate on the "expire_time" field. func ExpireTimeNEQ(v time.Time) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldExpireTime, v)) } // ExpireTimeIn applies the In predicate on the "expire_time" field. func ExpireTimeIn(vs ...time.Time) predicate.Post { return predicate.Post(sql.FieldIn(FieldExpireTime, vs...)) } // ExpireTimeNotIn applies the NotIn predicate on the "expire_time" field. func ExpireTimeNotIn(vs ...time.Time) predicate.Post { return predicate.Post(sql.FieldNotIn(FieldExpireTime, vs...)) } // ExpireTimeGT applies the GT predicate on the "expire_time" field. func ExpireTimeGT(v time.Time) predicate.Post { return predicate.Post(sql.FieldGT(FieldExpireTime, v)) } // ExpireTimeGTE applies the GTE predicate on the "expire_time" field. func ExpireTimeGTE(v time.Time) predicate.Post { return predicate.Post(sql.FieldGTE(FieldExpireTime, v)) } // ExpireTimeLT applies the LT predicate on the "expire_time" field. func ExpireTimeLT(v time.Time) predicate.Post { return predicate.Post(sql.FieldLT(FieldExpireTime, v)) } // ExpireTimeLTE applies the LTE predicate on the "expire_time" field. func ExpireTimeLTE(v time.Time) predicate.Post { return predicate.Post(sql.FieldLTE(FieldExpireTime, v)) } // ExpireTimeIsNil applies the IsNil predicate on the "expire_time" field. func ExpireTimeIsNil() predicate.Post { return predicate.Post(sql.FieldIsNull(FieldExpireTime)) } // ExpireTimeNotNil applies the NotNil predicate on the "expire_time" field. func ExpireTimeNotNil() predicate.Post { return predicate.Post(sql.FieldNotNull(FieldExpireTime)) } // TitleEQ applies the EQ predicate on the "title" field. func TitleEQ(v string) predicate.Post { return predicate.Post(sql.FieldEQ(FieldTitle, v)) } // TitleNEQ applies the NEQ predicate on the "title" field. func TitleNEQ(v string) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldTitle, v)) } // TitleIn applies the In predicate on the "title" field. func TitleIn(vs ...string) predicate.Post { return predicate.Post(sql.FieldIn(FieldTitle, vs...)) } // TitleNotIn applies the NotIn predicate on the "title" field. func TitleNotIn(vs ...string) predicate.Post { return predicate.Post(sql.FieldNotIn(FieldTitle, vs...)) } // TitleGT applies the GT predicate on the "title" field. func TitleGT(v string) predicate.Post { return predicate.Post(sql.FieldGT(FieldTitle, v)) } // TitleGTE applies the GTE predicate on the "title" field. func TitleGTE(v string) predicate.Post { return predicate.Post(sql.FieldGTE(FieldTitle, v)) } // TitleLT applies the LT predicate on the "title" field. func TitleLT(v string) predicate.Post { return predicate.Post(sql.FieldLT(FieldTitle, v)) } // TitleLTE applies the LTE predicate on the "title" field. func TitleLTE(v string) predicate.Post { return predicate.Post(sql.FieldLTE(FieldTitle, v)) } // TitleContains applies the Contains predicate on the "title" field. func TitleContains(v string) predicate.Post { return predicate.Post(sql.FieldContains(FieldTitle, v)) } // TitleHasPrefix applies the HasPrefix predicate on the "title" field. func TitleHasPrefix(v string) predicate.Post { return predicate.Post(sql.FieldHasPrefix(FieldTitle, v)) } // TitleHasSuffix applies the HasSuffix predicate on the "title" field. func TitleHasSuffix(v string) predicate.Post { return predicate.Post(sql.FieldHasSuffix(FieldTitle, v)) } // TitleEqualFold applies the EqualFold predicate on the "title" field. func TitleEqualFold(v string) predicate.Post { return predicate.Post(sql.FieldEqualFold(FieldTitle, v)) } // TitleContainsFold applies the ContainsFold predicate on the "title" field. func TitleContainsFold(v string) predicate.Post { return predicate.Post(sql.FieldContainsFold(FieldTitle, v)) } // BodyEQ applies the EQ predicate on the "body" field. func BodyEQ(v string) predicate.Post { return predicate.Post(sql.FieldEQ(FieldBody, v)) } // BodyNEQ applies the NEQ predicate on the "body" field. func BodyNEQ(v string) predicate.Post { return predicate.Post(sql.FieldNEQ(FieldBody, v)) } // BodyIn applies the In predicate on the "body" field. func BodyIn(vs ...string) predicate.Post { return predicate.Post(sql.FieldIn(FieldBody, vs...)) } // BodyNotIn applies the NotIn predicate on the "body" field. func BodyNotIn(vs ...string) predicate.Post { return predicate.Post(sql.FieldNotIn(FieldBody, vs...)) } // BodyGT applies the GT predicate on the "body" field. func BodyGT(v string) predicate.Post { return predicate.Post(sql.FieldGT(FieldBody, v)) } // BodyGTE applies the GTE predicate on the "body" field. func BodyGTE(v string) predicate.Post { return predicate.Post(sql.FieldGTE(FieldBody, v)) } // BodyLT applies the LT predicate on the "body" field. func BodyLT(v string) predicate.Post { return predicate.Post(sql.FieldLT(FieldBody, v)) } // BodyLTE applies the LTE predicate on the "body" field. func BodyLTE(v string) predicate.Post { return predicate.Post(sql.FieldLTE(FieldBody, v)) } // BodyContains applies the Contains predicate on the "body" field. func BodyContains(v string) predicate.Post { return predicate.Post(sql.FieldContains(FieldBody, v)) } // BodyHasPrefix applies the HasPrefix predicate on the "body" field. func BodyHasPrefix(v string) predicate.Post { return predicate.Post(sql.FieldHasPrefix(FieldBody, v)) } // BodyHasSuffix applies the HasSuffix predicate on the "body" field. func BodyHasSuffix(v string) predicate.Post { return predicate.Post(sql.FieldHasSuffix(FieldBody, v)) } // BodyEqualFold applies the EqualFold predicate on the "body" field. func BodyEqualFold(v string) predicate.Post { return predicate.Post(sql.FieldEqualFold(FieldBody, v)) } // BodyContainsFold applies the ContainsFold predicate on the "body" field. func BodyContainsFold(v string) predicate.Post { return predicate.Post(sql.FieldContainsFold(FieldBody, v)) } // HasCategory applies the HasEdge predicate on the "category" edge. func HasCategory() predicate.Post { return predicate.Post(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, CategoryTable, CategoryColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCategoryWith applies the HasEdge predicate on the "category" edge with a given conditions (other predicates). func HasCategoryWith(preds ...predicate.Category) predicate.Post { return predicate.Post(func(s *sql.Selector) { step := newCategoryStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasProfile applies the HasEdge predicate on the "profile" edge. func HasProfile() predicate.Post { return predicate.Post(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, ProfileTable, ProfileColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasProfileWith applies the HasEdge predicate on the "profile" edge with a given conditions (other predicates). func HasProfileWith(preds ...predicate.Profile) predicate.Post { return predicate.Post(func(s *sql.Selector) { step := newProfileStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.Post) predicate.Post { return predicate.Post(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Post) predicate.Post { return predicate.Post(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Post) predicate.Post { return predicate.Post(sql.NotPredicates(p)) }