// Code generated by ent, DO NOT EDIT.

package champpersonnalise

import (
	"time"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/predicate"
	"github.com/google/uuid"
)

// ID filters vertices based on their ID field.
func ID(id uuid.UUID) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldID, id))
}

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

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

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

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

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

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

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

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

// ObjetID applies equality check predicate on the "objet_id" field. It's identical to ObjetIDEQ.
func ObjetID(v uuid.UUID) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldObjetID, v))
}

// NomChamp applies equality check predicate on the "nom_champ" field. It's identical to NomChampEQ.
func NomChamp(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldNomChamp, v))
}

// Valeur applies equality check predicate on the "valeur" field. It's identical to ValeurEQ.
func Valeur(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldValeur, v))
}

// Unite applies equality check predicate on the "unite" field. It's identical to UniteEQ.
func Unite(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldUnite, v))
}

// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(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.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldUpdatedAt, v))
}

// ObjetIDEQ applies the EQ predicate on the "objet_id" field.
func ObjetIDEQ(v uuid.UUID) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldObjetID, v))
}

// ObjetIDNEQ applies the NEQ predicate on the "objet_id" field.
func ObjetIDNEQ(v uuid.UUID) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldObjetID, v))
}

// ObjetIDIn applies the In predicate on the "objet_id" field.
func ObjetIDIn(vs ...uuid.UUID) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldObjetID, vs...))
}

// ObjetIDNotIn applies the NotIn predicate on the "objet_id" field.
func ObjetIDNotIn(vs ...uuid.UUID) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldObjetID, vs...))
}

// NomChampEQ applies the EQ predicate on the "nom_champ" field.
func NomChampEQ(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldNomChamp, v))
}

// NomChampNEQ applies the NEQ predicate on the "nom_champ" field.
func NomChampNEQ(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldNomChamp, v))
}

// NomChampIn applies the In predicate on the "nom_champ" field.
func NomChampIn(vs ...string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldNomChamp, vs...))
}

// NomChampNotIn applies the NotIn predicate on the "nom_champ" field.
func NomChampNotIn(vs ...string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldNomChamp, vs...))
}

// NomChampGT applies the GT predicate on the "nom_champ" field.
func NomChampGT(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGT(FieldNomChamp, v))
}

// NomChampGTE applies the GTE predicate on the "nom_champ" field.
func NomChampGTE(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGTE(FieldNomChamp, v))
}

// NomChampLT applies the LT predicate on the "nom_champ" field.
func NomChampLT(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLT(FieldNomChamp, v))
}

// NomChampLTE applies the LTE predicate on the "nom_champ" field.
func NomChampLTE(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLTE(FieldNomChamp, v))
}

// NomChampContains applies the Contains predicate on the "nom_champ" field.
func NomChampContains(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldContains(FieldNomChamp, v))
}

// NomChampHasPrefix applies the HasPrefix predicate on the "nom_champ" field.
func NomChampHasPrefix(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldHasPrefix(FieldNomChamp, v))
}

// NomChampHasSuffix applies the HasSuffix predicate on the "nom_champ" field.
func NomChampHasSuffix(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldHasSuffix(FieldNomChamp, v))
}

// NomChampEqualFold applies the EqualFold predicate on the "nom_champ" field.
func NomChampEqualFold(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEqualFold(FieldNomChamp, v))
}

// NomChampContainsFold applies the ContainsFold predicate on the "nom_champ" field.
func NomChampContainsFold(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldContainsFold(FieldNomChamp, v))
}

// TypeChampEQ applies the EQ predicate on the "type_champ" field.
func TypeChampEQ(v TypeChamp) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldTypeChamp, v))
}

// TypeChampNEQ applies the NEQ predicate on the "type_champ" field.
func TypeChampNEQ(v TypeChamp) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldTypeChamp, v))
}

// TypeChampIn applies the In predicate on the "type_champ" field.
func TypeChampIn(vs ...TypeChamp) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldTypeChamp, vs...))
}

// TypeChampNotIn applies the NotIn predicate on the "type_champ" field.
func TypeChampNotIn(vs ...TypeChamp) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldTypeChamp, vs...))
}

// ValeurEQ applies the EQ predicate on the "valeur" field.
func ValeurEQ(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldValeur, v))
}

// ValeurNEQ applies the NEQ predicate on the "valeur" field.
func ValeurNEQ(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldValeur, v))
}

// ValeurIn applies the In predicate on the "valeur" field.
func ValeurIn(vs ...string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldValeur, vs...))
}

// ValeurNotIn applies the NotIn predicate on the "valeur" field.
func ValeurNotIn(vs ...string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldValeur, vs...))
}

// ValeurGT applies the GT predicate on the "valeur" field.
func ValeurGT(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGT(FieldValeur, v))
}

// ValeurGTE applies the GTE predicate on the "valeur" field.
func ValeurGTE(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGTE(FieldValeur, v))
}

// ValeurLT applies the LT predicate on the "valeur" field.
func ValeurLT(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLT(FieldValeur, v))
}

// ValeurLTE applies the LTE predicate on the "valeur" field.
func ValeurLTE(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLTE(FieldValeur, v))
}

// ValeurContains applies the Contains predicate on the "valeur" field.
func ValeurContains(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldContains(FieldValeur, v))
}

// ValeurHasPrefix applies the HasPrefix predicate on the "valeur" field.
func ValeurHasPrefix(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldHasPrefix(FieldValeur, v))
}

// ValeurHasSuffix applies the HasSuffix predicate on the "valeur" field.
func ValeurHasSuffix(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldHasSuffix(FieldValeur, v))
}

// ValeurIsNil applies the IsNil predicate on the "valeur" field.
func ValeurIsNil() predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIsNull(FieldValeur))
}

// ValeurNotNil applies the NotNil predicate on the "valeur" field.
func ValeurNotNil() predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotNull(FieldValeur))
}

// ValeurEqualFold applies the EqualFold predicate on the "valeur" field.
func ValeurEqualFold(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEqualFold(FieldValeur, v))
}

// ValeurContainsFold applies the ContainsFold predicate on the "valeur" field.
func ValeurContainsFold(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldContainsFold(FieldValeur, v))
}

// UniteEQ applies the EQ predicate on the "unite" field.
func UniteEQ(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldUnite, v))
}

// UniteNEQ applies the NEQ predicate on the "unite" field.
func UniteNEQ(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldUnite, v))
}

// UniteIn applies the In predicate on the "unite" field.
func UniteIn(vs ...string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldUnite, vs...))
}

// UniteNotIn applies the NotIn predicate on the "unite" field.
func UniteNotIn(vs ...string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldUnite, vs...))
}

// UniteGT applies the GT predicate on the "unite" field.
func UniteGT(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGT(FieldUnite, v))
}

// UniteGTE applies the GTE predicate on the "unite" field.
func UniteGTE(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGTE(FieldUnite, v))
}

// UniteLT applies the LT predicate on the "unite" field.
func UniteLT(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLT(FieldUnite, v))
}

// UniteLTE applies the LTE predicate on the "unite" field.
func UniteLTE(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLTE(FieldUnite, v))
}

// UniteContains applies the Contains predicate on the "unite" field.
func UniteContains(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldContains(FieldUnite, v))
}

// UniteHasPrefix applies the HasPrefix predicate on the "unite" field.
func UniteHasPrefix(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldHasPrefix(FieldUnite, v))
}

// UniteHasSuffix applies the HasSuffix predicate on the "unite" field.
func UniteHasSuffix(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldHasSuffix(FieldUnite, v))
}

// UniteIsNil applies the IsNil predicate on the "unite" field.
func UniteIsNil() predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIsNull(FieldUnite))
}

// UniteNotNil applies the NotNil predicate on the "unite" field.
func UniteNotNil() predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotNull(FieldUnite))
}

// UniteEqualFold applies the EqualFold predicate on the "unite" field.
func UniteEqualFold(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEqualFold(FieldUnite, v))
}

// UniteContainsFold applies the ContainsFold predicate on the "unite" field.
func UniteContainsFold(v string) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldContainsFold(FieldUnite, v))
}

// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldCreatedAt, v))
}

// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldCreatedAt, v))
}

// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldCreatedAt, vs...))
}

// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldCreatedAt, vs...))
}

// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGT(FieldCreatedAt, v))
}

// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGTE(FieldCreatedAt, v))
}

// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLT(FieldCreatedAt, v))
}

// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLTE(FieldCreatedAt, v))
}

// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldEQ(FieldUpdatedAt, v))
}

// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNEQ(FieldUpdatedAt, v))
}

// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldIn(FieldUpdatedAt, vs...))
}

// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldNotIn(FieldUpdatedAt, vs...))
}

// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGT(FieldUpdatedAt, v))
}

// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldGTE(FieldUpdatedAt, v))
}

// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLT(FieldUpdatedAt, v))
}

// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.FieldLTE(FieldUpdatedAt, v))
}

// HasObjet applies the HasEdge predicate on the "objet" edge.
func HasObjet() predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, true, ObjetTable, ObjetColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasObjetWith applies the HasEdge predicate on the "objet" edge with a given conditions (other predicates).
func HasObjetWith(preds ...predicate.Objet) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(func(s *sql.Selector) {
		step := newObjetStep()
		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.ChampPersonnalise) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.AndPredicates(predicates...))
}

// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.ChampPersonnalise) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.OrPredicates(predicates...))
}

// Not applies the not operator on the given predicate.
func Not(p predicate.ChampPersonnalise) predicate.ChampPersonnalise {
	return predicate.ChampPersonnalise(sql.NotPredicates(p))
}
