// Code generated by ent, DO NOT EDIT. package email import ( "code.icod.de/auth/accountserver/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.Email { return predicate.Email(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id uuid.UUID) predicate.Email { return predicate.Email(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id uuid.UUID) predicate.Email { return predicate.Email(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...uuid.UUID) predicate.Email { return predicate.Email(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...uuid.UUID) predicate.Email { return predicate.Email(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id uuid.UUID) predicate.Email { return predicate.Email(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id uuid.UUID) predicate.Email { return predicate.Email(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id uuid.UUID) predicate.Email { return predicate.Email(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id uuid.UUID) predicate.Email { return predicate.Email(sql.FieldLTE(FieldID, id)) } // Email applies equality check predicate on the "email" field. It's identical to EmailEQ. func Email(v string) predicate.Email { return predicate.Email(sql.FieldEQ(FieldEmail, v)) } // Primary applies equality check predicate on the "primary" field. It's identical to PrimaryEQ. func Primary(v bool) predicate.Email { return predicate.Email(sql.FieldEQ(FieldPrimary, v)) } // Verified applies equality check predicate on the "verified" field. It's identical to VerifiedEQ. func Verified(v bool) predicate.Email { return predicate.Email(sql.FieldEQ(FieldVerified, v)) } // VerificationCode applies equality check predicate on the "verification_code" field. It's identical to VerificationCodeEQ. func VerificationCode(v string) predicate.Email { return predicate.Email(sql.FieldEQ(FieldVerificationCode, v)) } // ResetCode applies equality check predicate on the "reset_code" field. It's identical to ResetCodeEQ. func ResetCode(v string) predicate.Email { return predicate.Email(sql.FieldEQ(FieldResetCode, v)) } // EmailEQ applies the EQ predicate on the "email" field. func EmailEQ(v string) predicate.Email { return predicate.Email(sql.FieldEQ(FieldEmail, v)) } // EmailNEQ applies the NEQ predicate on the "email" field. func EmailNEQ(v string) predicate.Email { return predicate.Email(sql.FieldNEQ(FieldEmail, v)) } // EmailIn applies the In predicate on the "email" field. func EmailIn(vs ...string) predicate.Email { return predicate.Email(sql.FieldIn(FieldEmail, vs...)) } // EmailNotIn applies the NotIn predicate on the "email" field. func EmailNotIn(vs ...string) predicate.Email { return predicate.Email(sql.FieldNotIn(FieldEmail, vs...)) } // EmailGT applies the GT predicate on the "email" field. func EmailGT(v string) predicate.Email { return predicate.Email(sql.FieldGT(FieldEmail, v)) } // EmailGTE applies the GTE predicate on the "email" field. func EmailGTE(v string) predicate.Email { return predicate.Email(sql.FieldGTE(FieldEmail, v)) } // EmailLT applies the LT predicate on the "email" field. func EmailLT(v string) predicate.Email { return predicate.Email(sql.FieldLT(FieldEmail, v)) } // EmailLTE applies the LTE predicate on the "email" field. func EmailLTE(v string) predicate.Email { return predicate.Email(sql.FieldLTE(FieldEmail, v)) } // EmailContains applies the Contains predicate on the "email" field. func EmailContains(v string) predicate.Email { return predicate.Email(sql.FieldContains(FieldEmail, v)) } // EmailHasPrefix applies the HasPrefix predicate on the "email" field. func EmailHasPrefix(v string) predicate.Email { return predicate.Email(sql.FieldHasPrefix(FieldEmail, v)) } // EmailHasSuffix applies the HasSuffix predicate on the "email" field. func EmailHasSuffix(v string) predicate.Email { return predicate.Email(sql.FieldHasSuffix(FieldEmail, v)) } // EmailEqualFold applies the EqualFold predicate on the "email" field. func EmailEqualFold(v string) predicate.Email { return predicate.Email(sql.FieldEqualFold(FieldEmail, v)) } // EmailContainsFold applies the ContainsFold predicate on the "email" field. func EmailContainsFold(v string) predicate.Email { return predicate.Email(sql.FieldContainsFold(FieldEmail, v)) } // PrimaryEQ applies the EQ predicate on the "primary" field. func PrimaryEQ(v bool) predicate.Email { return predicate.Email(sql.FieldEQ(FieldPrimary, v)) } // PrimaryNEQ applies the NEQ predicate on the "primary" field. func PrimaryNEQ(v bool) predicate.Email { return predicate.Email(sql.FieldNEQ(FieldPrimary, v)) } // VerifiedEQ applies the EQ predicate on the "verified" field. func VerifiedEQ(v bool) predicate.Email { return predicate.Email(sql.FieldEQ(FieldVerified, v)) } // VerifiedNEQ applies the NEQ predicate on the "verified" field. func VerifiedNEQ(v bool) predicate.Email { return predicate.Email(sql.FieldNEQ(FieldVerified, v)) } // VerificationCodeEQ applies the EQ predicate on the "verification_code" field. func VerificationCodeEQ(v string) predicate.Email { return predicate.Email(sql.FieldEQ(FieldVerificationCode, v)) } // VerificationCodeNEQ applies the NEQ predicate on the "verification_code" field. func VerificationCodeNEQ(v string) predicate.Email { return predicate.Email(sql.FieldNEQ(FieldVerificationCode, v)) } // VerificationCodeIn applies the In predicate on the "verification_code" field. func VerificationCodeIn(vs ...string) predicate.Email { return predicate.Email(sql.FieldIn(FieldVerificationCode, vs...)) } // VerificationCodeNotIn applies the NotIn predicate on the "verification_code" field. func VerificationCodeNotIn(vs ...string) predicate.Email { return predicate.Email(sql.FieldNotIn(FieldVerificationCode, vs...)) } // VerificationCodeGT applies the GT predicate on the "verification_code" field. func VerificationCodeGT(v string) predicate.Email { return predicate.Email(sql.FieldGT(FieldVerificationCode, v)) } // VerificationCodeGTE applies the GTE predicate on the "verification_code" field. func VerificationCodeGTE(v string) predicate.Email { return predicate.Email(sql.FieldGTE(FieldVerificationCode, v)) } // VerificationCodeLT applies the LT predicate on the "verification_code" field. func VerificationCodeLT(v string) predicate.Email { return predicate.Email(sql.FieldLT(FieldVerificationCode, v)) } // VerificationCodeLTE applies the LTE predicate on the "verification_code" field. func VerificationCodeLTE(v string) predicate.Email { return predicate.Email(sql.FieldLTE(FieldVerificationCode, v)) } // VerificationCodeContains applies the Contains predicate on the "verification_code" field. func VerificationCodeContains(v string) predicate.Email { return predicate.Email(sql.FieldContains(FieldVerificationCode, v)) } // VerificationCodeHasPrefix applies the HasPrefix predicate on the "verification_code" field. func VerificationCodeHasPrefix(v string) predicate.Email { return predicate.Email(sql.FieldHasPrefix(FieldVerificationCode, v)) } // VerificationCodeHasSuffix applies the HasSuffix predicate on the "verification_code" field. func VerificationCodeHasSuffix(v string) predicate.Email { return predicate.Email(sql.FieldHasSuffix(FieldVerificationCode, v)) } // VerificationCodeIsNil applies the IsNil predicate on the "verification_code" field. func VerificationCodeIsNil() predicate.Email { return predicate.Email(sql.FieldIsNull(FieldVerificationCode)) } // VerificationCodeNotNil applies the NotNil predicate on the "verification_code" field. func VerificationCodeNotNil() predicate.Email { return predicate.Email(sql.FieldNotNull(FieldVerificationCode)) } // VerificationCodeEqualFold applies the EqualFold predicate on the "verification_code" field. func VerificationCodeEqualFold(v string) predicate.Email { return predicate.Email(sql.FieldEqualFold(FieldVerificationCode, v)) } // VerificationCodeContainsFold applies the ContainsFold predicate on the "verification_code" field. func VerificationCodeContainsFold(v string) predicate.Email { return predicate.Email(sql.FieldContainsFold(FieldVerificationCode, v)) } // ResetCodeEQ applies the EQ predicate on the "reset_code" field. func ResetCodeEQ(v string) predicate.Email { return predicate.Email(sql.FieldEQ(FieldResetCode, v)) } // ResetCodeNEQ applies the NEQ predicate on the "reset_code" field. func ResetCodeNEQ(v string) predicate.Email { return predicate.Email(sql.FieldNEQ(FieldResetCode, v)) } // ResetCodeIn applies the In predicate on the "reset_code" field. func ResetCodeIn(vs ...string) predicate.Email { return predicate.Email(sql.FieldIn(FieldResetCode, vs...)) } // ResetCodeNotIn applies the NotIn predicate on the "reset_code" field. func ResetCodeNotIn(vs ...string) predicate.Email { return predicate.Email(sql.FieldNotIn(FieldResetCode, vs...)) } // ResetCodeGT applies the GT predicate on the "reset_code" field. func ResetCodeGT(v string) predicate.Email { return predicate.Email(sql.FieldGT(FieldResetCode, v)) } // ResetCodeGTE applies the GTE predicate on the "reset_code" field. func ResetCodeGTE(v string) predicate.Email { return predicate.Email(sql.FieldGTE(FieldResetCode, v)) } // ResetCodeLT applies the LT predicate on the "reset_code" field. func ResetCodeLT(v string) predicate.Email { return predicate.Email(sql.FieldLT(FieldResetCode, v)) } // ResetCodeLTE applies the LTE predicate on the "reset_code" field. func ResetCodeLTE(v string) predicate.Email { return predicate.Email(sql.FieldLTE(FieldResetCode, v)) } // ResetCodeContains applies the Contains predicate on the "reset_code" field. func ResetCodeContains(v string) predicate.Email { return predicate.Email(sql.FieldContains(FieldResetCode, v)) } // ResetCodeHasPrefix applies the HasPrefix predicate on the "reset_code" field. func ResetCodeHasPrefix(v string) predicate.Email { return predicate.Email(sql.FieldHasPrefix(FieldResetCode, v)) } // ResetCodeHasSuffix applies the HasSuffix predicate on the "reset_code" field. func ResetCodeHasSuffix(v string) predicate.Email { return predicate.Email(sql.FieldHasSuffix(FieldResetCode, v)) } // ResetCodeIsNil applies the IsNil predicate on the "reset_code" field. func ResetCodeIsNil() predicate.Email { return predicate.Email(sql.FieldIsNull(FieldResetCode)) } // ResetCodeNotNil applies the NotNil predicate on the "reset_code" field. func ResetCodeNotNil() predicate.Email { return predicate.Email(sql.FieldNotNull(FieldResetCode)) } // ResetCodeEqualFold applies the EqualFold predicate on the "reset_code" field. func ResetCodeEqualFold(v string) predicate.Email { return predicate.Email(sql.FieldEqualFold(FieldResetCode, v)) } // ResetCodeContainsFold applies the ContainsFold predicate on the "reset_code" field. func ResetCodeContainsFold(v string) predicate.Email { return predicate.Email(sql.FieldContainsFold(FieldResetCode, v)) } // HasAccount applies the HasEdge predicate on the "account" edge. func HasAccount() predicate.Email { return predicate.Email(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, AccountTable, AccountColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates). func HasAccountWith(preds ...predicate.Account) predicate.Email { return predicate.Email(func(s *sql.Selector) { step := newAccountStep() 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.Email) predicate.Email { return predicate.Email(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Email) predicate.Email { return predicate.Email(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Email) predicate.Email { return predicate.Email(sql.NotPredicates(p)) }