// Code generated by ent, DO NOT EDIT. package texture import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/xmdhs/authlib-skin/db/ent/predicate" ) // ID filters vertices based on their ID field. func ID(id int) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int) predicate.Texture { return predicate.Texture(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Texture { return predicate.Texture(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int) predicate.Texture { return predicate.Texture(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id int) predicate.Texture { return predicate.Texture(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int) predicate.Texture { return predicate.Texture(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id int) predicate.Texture { return predicate.Texture(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int) predicate.Texture { return predicate.Texture(sql.FieldLTE(FieldID, id)) } // TextureHash applies equality check predicate on the "texture_hash" field. It's identical to TextureHashEQ. func TextureHash(v string) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldTextureHash, v)) } // Type applies equality check predicate on the "type" field. It's identical to TypeEQ. func Type(v string) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldType, v)) } // Variant applies equality check predicate on the "variant" field. It's identical to VariantEQ. func Variant(v string) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldVariant, v)) } // TextureHashEQ applies the EQ predicate on the "texture_hash" field. func TextureHashEQ(v string) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldTextureHash, v)) } // TextureHashNEQ applies the NEQ predicate on the "texture_hash" field. func TextureHashNEQ(v string) predicate.Texture { return predicate.Texture(sql.FieldNEQ(FieldTextureHash, v)) } // TextureHashIn applies the In predicate on the "texture_hash" field. func TextureHashIn(vs ...string) predicate.Texture { return predicate.Texture(sql.FieldIn(FieldTextureHash, vs...)) } // TextureHashNotIn applies the NotIn predicate on the "texture_hash" field. func TextureHashNotIn(vs ...string) predicate.Texture { return predicate.Texture(sql.FieldNotIn(FieldTextureHash, vs...)) } // TextureHashGT applies the GT predicate on the "texture_hash" field. func TextureHashGT(v string) predicate.Texture { return predicate.Texture(sql.FieldGT(FieldTextureHash, v)) } // TextureHashGTE applies the GTE predicate on the "texture_hash" field. func TextureHashGTE(v string) predicate.Texture { return predicate.Texture(sql.FieldGTE(FieldTextureHash, v)) } // TextureHashLT applies the LT predicate on the "texture_hash" field. func TextureHashLT(v string) predicate.Texture { return predicate.Texture(sql.FieldLT(FieldTextureHash, v)) } // TextureHashLTE applies the LTE predicate on the "texture_hash" field. func TextureHashLTE(v string) predicate.Texture { return predicate.Texture(sql.FieldLTE(FieldTextureHash, v)) } // TextureHashContains applies the Contains predicate on the "texture_hash" field. func TextureHashContains(v string) predicate.Texture { return predicate.Texture(sql.FieldContains(FieldTextureHash, v)) } // TextureHashHasPrefix applies the HasPrefix predicate on the "texture_hash" field. func TextureHashHasPrefix(v string) predicate.Texture { return predicate.Texture(sql.FieldHasPrefix(FieldTextureHash, v)) } // TextureHashHasSuffix applies the HasSuffix predicate on the "texture_hash" field. func TextureHashHasSuffix(v string) predicate.Texture { return predicate.Texture(sql.FieldHasSuffix(FieldTextureHash, v)) } // TextureHashEqualFold applies the EqualFold predicate on the "texture_hash" field. func TextureHashEqualFold(v string) predicate.Texture { return predicate.Texture(sql.FieldEqualFold(FieldTextureHash, v)) } // TextureHashContainsFold applies the ContainsFold predicate on the "texture_hash" field. func TextureHashContainsFold(v string) predicate.Texture { return predicate.Texture(sql.FieldContainsFold(FieldTextureHash, v)) } // TypeEQ applies the EQ predicate on the "type" field. func TypeEQ(v string) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldType, v)) } // TypeNEQ applies the NEQ predicate on the "type" field. func TypeNEQ(v string) predicate.Texture { return predicate.Texture(sql.FieldNEQ(FieldType, v)) } // TypeIn applies the In predicate on the "type" field. func TypeIn(vs ...string) predicate.Texture { return predicate.Texture(sql.FieldIn(FieldType, vs...)) } // TypeNotIn applies the NotIn predicate on the "type" field. func TypeNotIn(vs ...string) predicate.Texture { return predicate.Texture(sql.FieldNotIn(FieldType, vs...)) } // TypeGT applies the GT predicate on the "type" field. func TypeGT(v string) predicate.Texture { return predicate.Texture(sql.FieldGT(FieldType, v)) } // TypeGTE applies the GTE predicate on the "type" field. func TypeGTE(v string) predicate.Texture { return predicate.Texture(sql.FieldGTE(FieldType, v)) } // TypeLT applies the LT predicate on the "type" field. func TypeLT(v string) predicate.Texture { return predicate.Texture(sql.FieldLT(FieldType, v)) } // TypeLTE applies the LTE predicate on the "type" field. func TypeLTE(v string) predicate.Texture { return predicate.Texture(sql.FieldLTE(FieldType, v)) } // TypeContains applies the Contains predicate on the "type" field. func TypeContains(v string) predicate.Texture { return predicate.Texture(sql.FieldContains(FieldType, v)) } // TypeHasPrefix applies the HasPrefix predicate on the "type" field. func TypeHasPrefix(v string) predicate.Texture { return predicate.Texture(sql.FieldHasPrefix(FieldType, v)) } // TypeHasSuffix applies the HasSuffix predicate on the "type" field. func TypeHasSuffix(v string) predicate.Texture { return predicate.Texture(sql.FieldHasSuffix(FieldType, v)) } // TypeEqualFold applies the EqualFold predicate on the "type" field. func TypeEqualFold(v string) predicate.Texture { return predicate.Texture(sql.FieldEqualFold(FieldType, v)) } // TypeContainsFold applies the ContainsFold predicate on the "type" field. func TypeContainsFold(v string) predicate.Texture { return predicate.Texture(sql.FieldContainsFold(FieldType, v)) } // VariantEQ applies the EQ predicate on the "variant" field. func VariantEQ(v string) predicate.Texture { return predicate.Texture(sql.FieldEQ(FieldVariant, v)) } // VariantNEQ applies the NEQ predicate on the "variant" field. func VariantNEQ(v string) predicate.Texture { return predicate.Texture(sql.FieldNEQ(FieldVariant, v)) } // VariantIn applies the In predicate on the "variant" field. func VariantIn(vs ...string) predicate.Texture { return predicate.Texture(sql.FieldIn(FieldVariant, vs...)) } // VariantNotIn applies the NotIn predicate on the "variant" field. func VariantNotIn(vs ...string) predicate.Texture { return predicate.Texture(sql.FieldNotIn(FieldVariant, vs...)) } // VariantGT applies the GT predicate on the "variant" field. func VariantGT(v string) predicate.Texture { return predicate.Texture(sql.FieldGT(FieldVariant, v)) } // VariantGTE applies the GTE predicate on the "variant" field. func VariantGTE(v string) predicate.Texture { return predicate.Texture(sql.FieldGTE(FieldVariant, v)) } // VariantLT applies the LT predicate on the "variant" field. func VariantLT(v string) predicate.Texture { return predicate.Texture(sql.FieldLT(FieldVariant, v)) } // VariantLTE applies the LTE predicate on the "variant" field. func VariantLTE(v string) predicate.Texture { return predicate.Texture(sql.FieldLTE(FieldVariant, v)) } // VariantContains applies the Contains predicate on the "variant" field. func VariantContains(v string) predicate.Texture { return predicate.Texture(sql.FieldContains(FieldVariant, v)) } // VariantHasPrefix applies the HasPrefix predicate on the "variant" field. func VariantHasPrefix(v string) predicate.Texture { return predicate.Texture(sql.FieldHasPrefix(FieldVariant, v)) } // VariantHasSuffix applies the HasSuffix predicate on the "variant" field. func VariantHasSuffix(v string) predicate.Texture { return predicate.Texture(sql.FieldHasSuffix(FieldVariant, v)) } // VariantEqualFold applies the EqualFold predicate on the "variant" field. func VariantEqualFold(v string) predicate.Texture { return predicate.Texture(sql.FieldEqualFold(FieldVariant, v)) } // VariantContainsFold applies the ContainsFold predicate on the "variant" field. func VariantContainsFold(v string) predicate.Texture { return predicate.Texture(sql.FieldContainsFold(FieldVariant, v)) } // HasCreatedUser applies the HasEdge predicate on the "created_user" edge. func HasCreatedUser() predicate.Texture { return predicate.Texture(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, false, CreatedUserTable, CreatedUserColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCreatedUserWith applies the HasEdge predicate on the "created_user" edge with a given conditions (other predicates). func HasCreatedUserWith(preds ...predicate.User) predicate.Texture { return predicate.Texture(func(s *sql.Selector) { step := newCreatedUserStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasUser applies the HasEdge predicate on the "user" edge. func HasUser() predicate.Texture { return predicate.Texture(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2M, true, UserTable, UserPrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates). func HasUserWith(preds ...predicate.UserProfile) predicate.Texture { return predicate.Texture(func(s *sql.Selector) { step := newUserStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasUsertexture applies the HasEdge predicate on the "usertexture" edge. func HasUsertexture() predicate.Texture { return predicate.Texture(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, true, UsertextureTable, UsertextureColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasUsertextureWith applies the HasEdge predicate on the "usertexture" edge with a given conditions (other predicates). func HasUsertextureWith(preds ...predicate.UserTexture) predicate.Texture { return predicate.Texture(func(s *sql.Selector) { step := newUsertextureStep() 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.Texture) predicate.Texture { return predicate.Texture(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for _, p := range predicates { p(s1) } s.Where(s1.P()) }) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Texture) predicate.Texture { return predicate.Texture(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for i, p := range predicates { if i > 0 { s1.Or() } p(s1) } s.Where(s1.P()) }) } // Not applies the not operator on the given predicate. func Not(p predicate.Texture) predicate.Texture { return predicate.Texture(func(s *sql.Selector) { p(s.Not()) }) }