// Code generated by ent, DO NOT EDIT. package userprofile import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "tinyskin/db/ent/predicate" ) // ID filters vertices based on their ID field. func ID(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.UserProfile { return predicate.UserProfile(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int) predicate.UserProfile { return predicate.UserProfile(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int) predicate.UserProfile { return predicate.UserProfile(sql.FieldLTE(FieldID, id)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldEQ(FieldName, v)) } // UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ. func UUID(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldEQ(FieldUUID, v)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.UserProfile { return predicate.UserProfile(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.UserProfile { return predicate.UserProfile(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldHasSuffix(FieldName, v)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldContainsFold(FieldName, v)) } // UUIDEQ applies the EQ predicate on the "uuid" field. func UUIDEQ(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldEQ(FieldUUID, v)) } // UUIDNEQ applies the NEQ predicate on the "uuid" field. func UUIDNEQ(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldNEQ(FieldUUID, v)) } // UUIDIn applies the In predicate on the "uuid" field. func UUIDIn(vs ...string) predicate.UserProfile { return predicate.UserProfile(sql.FieldIn(FieldUUID, vs...)) } // UUIDNotIn applies the NotIn predicate on the "uuid" field. func UUIDNotIn(vs ...string) predicate.UserProfile { return predicate.UserProfile(sql.FieldNotIn(FieldUUID, vs...)) } // UUIDGT applies the GT predicate on the "uuid" field. func UUIDGT(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldGT(FieldUUID, v)) } // UUIDGTE applies the GTE predicate on the "uuid" field. func UUIDGTE(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldGTE(FieldUUID, v)) } // UUIDLT applies the LT predicate on the "uuid" field. func UUIDLT(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldLT(FieldUUID, v)) } // UUIDLTE applies the LTE predicate on the "uuid" field. func UUIDLTE(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldLTE(FieldUUID, v)) } // UUIDContains applies the Contains predicate on the "uuid" field. func UUIDContains(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldContains(FieldUUID, v)) } // UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field. func UUIDHasPrefix(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldHasPrefix(FieldUUID, v)) } // UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field. func UUIDHasSuffix(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldHasSuffix(FieldUUID, v)) } // UUIDEqualFold applies the EqualFold predicate on the "uuid" field. func UUIDEqualFold(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldEqualFold(FieldUUID, v)) } // UUIDContainsFold applies the ContainsFold predicate on the "uuid" field. func UUIDContainsFold(v string) predicate.UserProfile { return predicate.UserProfile(sql.FieldContainsFold(FieldUUID, v)) } // HasUser applies the HasEdge predicate on the "user" edge. func HasUser() predicate.UserProfile { return predicate.UserProfile(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2O, true, UserTable, UserColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates). func HasUserWith(preds ...predicate.User) predicate.UserProfile { return predicate.UserProfile(func(s *sql.Selector) { step := newUserStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasTexture applies the HasEdge predicate on the "texture" edge. func HasTexture() predicate.UserProfile { return predicate.UserProfile(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2M, true, TextureTable, TexturePrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasTextureWith applies the HasEdge predicate on the "texture" edge with a given conditions (other predicates). func HasTextureWith(preds ...predicate.Texture) predicate.UserProfile { return predicate.UserProfile(func(s *sql.Selector) { step := newTextureStep() 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.UserProfile { return predicate.UserProfile(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.UserProfile { return predicate.UserProfile(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.UserProfile) predicate.UserProfile { return predicate.UserProfile(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.UserProfile) predicate.UserProfile { return predicate.UserProfile(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.UserProfile) predicate.UserProfile { return predicate.UserProfile(func(s *sql.Selector) { p(s.Not()) }) }