// Code generated by ent, DO NOT EDIT. package lienobjetemplacement 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.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(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.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldObjetID, v)) } // EmplacementID applies equality check predicate on the "emplacement_id" field. It's identical to EmplacementIDEQ. func EmplacementID(v uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldEmplacementID, v)) } // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(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.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldUpdatedAt, v)) } // ObjetIDEQ applies the EQ predicate on the "objet_id" field. func ObjetIDEQ(v uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldObjetID, v)) } // ObjetIDNEQ applies the NEQ predicate on the "objet_id" field. func ObjetIDNEQ(v uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNEQ(FieldObjetID, v)) } // ObjetIDIn applies the In predicate on the "objet_id" field. func ObjetIDIn(vs ...uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldIn(FieldObjetID, vs...)) } // ObjetIDNotIn applies the NotIn predicate on the "objet_id" field. func ObjetIDNotIn(vs ...uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNotIn(FieldObjetID, vs...)) } // EmplacementIDEQ applies the EQ predicate on the "emplacement_id" field. func EmplacementIDEQ(v uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldEmplacementID, v)) } // EmplacementIDNEQ applies the NEQ predicate on the "emplacement_id" field. func EmplacementIDNEQ(v uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNEQ(FieldEmplacementID, v)) } // EmplacementIDIn applies the In predicate on the "emplacement_id" field. func EmplacementIDIn(vs ...uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldIn(FieldEmplacementID, vs...)) } // EmplacementIDNotIn applies the NotIn predicate on the "emplacement_id" field. func EmplacementIDNotIn(vs ...uuid.UUID) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNotIn(FieldEmplacementID, vs...)) } // TypeEQ applies the EQ predicate on the "type" field. func TypeEQ(v Type) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldType, v)) } // TypeNEQ applies the NEQ predicate on the "type" field. func TypeNEQ(v Type) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNEQ(FieldType, v)) } // TypeIn applies the In predicate on the "type" field. func TypeIn(vs ...Type) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldIn(FieldType, vs...)) } // TypeNotIn applies the NotIn predicate on the "type" field. func TypeNotIn(vs ...Type) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNotIn(FieldType, vs...)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.FieldLTE(FieldUpdatedAt, v)) } // HasObjet applies the HasEdge predicate on the "objet" edge. func HasObjet() predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(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.LienObjetEmplacement { return predicate.LienObjetEmplacement(func(s *sql.Selector) { step := newObjetStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasEmplacement applies the HasEdge predicate on the "emplacement" edge. func HasEmplacement() predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, EmplacementTable, EmplacementColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasEmplacementWith applies the HasEdge predicate on the "emplacement" edge with a given conditions (other predicates). func HasEmplacementWith(preds ...predicate.Emplacement) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(func(s *sql.Selector) { step := newEmplacementStep() 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.LienObjetEmplacement) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.LienObjetEmplacement) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.LienObjetEmplacement) predicate.LienObjetEmplacement { return predicate.LienObjetEmplacement(sql.NotPredicates(p)) }