// Code generated by ent, DO NOT EDIT.

package webauthnregisterchallenge

import (
	"PasswordManager/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.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldID, id))
}

// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldID, id))
}

// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNEQ(FieldID, id))
}

// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIn(FieldID, ids...))
}

// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotIn(FieldID, ids...))
}

// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGT(FieldID, id))
}

// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGTE(FieldID, id))
}

// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLT(FieldID, id))
}

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLTE(FieldID, id))
}

// SdChallenge applies equality check predicate on the "sdChallenge" field. It's identical to SdChallengeEQ.
func SdChallenge(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldSdChallenge, v))
}

// UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.
func UserId(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldUserId, v))
}

// UserVerification applies equality check predicate on the "userVerification" field. It's identical to UserVerificationEQ.
func UserVerification(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldUserVerification, v))
}

// SdChallengeEQ applies the EQ predicate on the "sdChallenge" field.
func SdChallengeEQ(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldSdChallenge, v))
}

// SdChallengeNEQ applies the NEQ predicate on the "sdChallenge" field.
func SdChallengeNEQ(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNEQ(FieldSdChallenge, v))
}

// SdChallengeIn applies the In predicate on the "sdChallenge" field.
func SdChallengeIn(vs ...string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIn(FieldSdChallenge, vs...))
}

// SdChallengeNotIn applies the NotIn predicate on the "sdChallenge" field.
func SdChallengeNotIn(vs ...string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotIn(FieldSdChallenge, vs...))
}

// SdChallengeGT applies the GT predicate on the "sdChallenge" field.
func SdChallengeGT(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGT(FieldSdChallenge, v))
}

// SdChallengeGTE applies the GTE predicate on the "sdChallenge" field.
func SdChallengeGTE(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGTE(FieldSdChallenge, v))
}

// SdChallengeLT applies the LT predicate on the "sdChallenge" field.
func SdChallengeLT(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLT(FieldSdChallenge, v))
}

// SdChallengeLTE applies the LTE predicate on the "sdChallenge" field.
func SdChallengeLTE(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLTE(FieldSdChallenge, v))
}

// SdChallengeContains applies the Contains predicate on the "sdChallenge" field.
func SdChallengeContains(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldContains(FieldSdChallenge, v))
}

// SdChallengeHasPrefix applies the HasPrefix predicate on the "sdChallenge" field.
func SdChallengeHasPrefix(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldHasPrefix(FieldSdChallenge, v))
}

// SdChallengeHasSuffix applies the HasSuffix predicate on the "sdChallenge" field.
func SdChallengeHasSuffix(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldHasSuffix(FieldSdChallenge, v))
}

// SdChallengeIsNil applies the IsNil predicate on the "sdChallenge" field.
func SdChallengeIsNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIsNull(FieldSdChallenge))
}

// SdChallengeNotNil applies the NotNil predicate on the "sdChallenge" field.
func SdChallengeNotNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotNull(FieldSdChallenge))
}

// SdChallengeEqualFold applies the EqualFold predicate on the "sdChallenge" field.
func SdChallengeEqualFold(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEqualFold(FieldSdChallenge, v))
}

// SdChallengeContainsFold applies the ContainsFold predicate on the "sdChallenge" field.
func SdChallengeContainsFold(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldContainsFold(FieldSdChallenge, v))
}

// UserIdEQ applies the EQ predicate on the "userId" field.
func UserIdEQ(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldUserId, v))
}

// UserIdNEQ applies the NEQ predicate on the "userId" field.
func UserIdNEQ(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNEQ(FieldUserId, v))
}

// UserIdIn applies the In predicate on the "userId" field.
func UserIdIn(vs ...[]byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIn(FieldUserId, vs...))
}

// UserIdNotIn applies the NotIn predicate on the "userId" field.
func UserIdNotIn(vs ...[]byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotIn(FieldUserId, vs...))
}

// UserIdGT applies the GT predicate on the "userId" field.
func UserIdGT(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGT(FieldUserId, v))
}

// UserIdGTE applies the GTE predicate on the "userId" field.
func UserIdGTE(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGTE(FieldUserId, v))
}

// UserIdLT applies the LT predicate on the "userId" field.
func UserIdLT(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLT(FieldUserId, v))
}

// UserIdLTE applies the LTE predicate on the "userId" field.
func UserIdLTE(v []byte) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLTE(FieldUserId, v))
}

// UserIdIsNil applies the IsNil predicate on the "userId" field.
func UserIdIsNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIsNull(FieldUserId))
}

// UserIdNotNil applies the NotNil predicate on the "userId" field.
func UserIdNotNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotNull(FieldUserId))
}

// AllowedCredentialIdsIsNil applies the IsNil predicate on the "allowedCredentialIds" field.
func AllowedCredentialIdsIsNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIsNull(FieldAllowedCredentialIds))
}

// AllowedCredentialIdsNotNil applies the NotNil predicate on the "allowedCredentialIds" field.
func AllowedCredentialIdsNotNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotNull(FieldAllowedCredentialIds))
}

// UserVerificationEQ applies the EQ predicate on the "userVerification" field.
func UserVerificationEQ(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEQ(FieldUserVerification, v))
}

// UserVerificationNEQ applies the NEQ predicate on the "userVerification" field.
func UserVerificationNEQ(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNEQ(FieldUserVerification, v))
}

// UserVerificationIn applies the In predicate on the "userVerification" field.
func UserVerificationIn(vs ...string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIn(FieldUserVerification, vs...))
}

// UserVerificationNotIn applies the NotIn predicate on the "userVerification" field.
func UserVerificationNotIn(vs ...string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotIn(FieldUserVerification, vs...))
}

// UserVerificationGT applies the GT predicate on the "userVerification" field.
func UserVerificationGT(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGT(FieldUserVerification, v))
}

// UserVerificationGTE applies the GTE predicate on the "userVerification" field.
func UserVerificationGTE(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldGTE(FieldUserVerification, v))
}

// UserVerificationLT applies the LT predicate on the "userVerification" field.
func UserVerificationLT(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLT(FieldUserVerification, v))
}

// UserVerificationLTE applies the LTE predicate on the "userVerification" field.
func UserVerificationLTE(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldLTE(FieldUserVerification, v))
}

// UserVerificationContains applies the Contains predicate on the "userVerification" field.
func UserVerificationContains(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldContains(FieldUserVerification, v))
}

// UserVerificationHasPrefix applies the HasPrefix predicate on the "userVerification" field.
func UserVerificationHasPrefix(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldHasPrefix(FieldUserVerification, v))
}

// UserVerificationHasSuffix applies the HasSuffix predicate on the "userVerification" field.
func UserVerificationHasSuffix(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldHasSuffix(FieldUserVerification, v))
}

// UserVerificationIsNil applies the IsNil predicate on the "userVerification" field.
func UserVerificationIsNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIsNull(FieldUserVerification))
}

// UserVerificationNotNil applies the NotNil predicate on the "userVerification" field.
func UserVerificationNotNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotNull(FieldUserVerification))
}

// UserVerificationEqualFold applies the EqualFold predicate on the "userVerification" field.
func UserVerificationEqualFold(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldEqualFold(FieldUserVerification, v))
}

// UserVerificationContainsFold applies the ContainsFold predicate on the "userVerification" field.
func UserVerificationContainsFold(v string) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldContainsFold(FieldUserVerification, v))
}

// ExtensionsIsNil applies the IsNil predicate on the "extensions" field.
func ExtensionsIsNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldIsNull(FieldExtensions))
}

// ExtensionsNotNil applies the NotNil predicate on the "extensions" field.
func ExtensionsNotNil() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(sql.FieldNotNull(FieldExtensions))
}

// HasUser applies the HasEdge predicate on the "user" edge.
func HasUser() predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, 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.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.To(UserInverseTable, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
		)
		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.WebAuthnRegisterChallenge) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(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.WebAuthnRegisterChallenge) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(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.WebAuthnRegisterChallenge) predicate.WebAuthnRegisterChallenge {
	return predicate.WebAuthnRegisterChallenge(func(s *sql.Selector) {
		p(s.Not())
	})
}
