Files
matosbox/backend/internal/data/ent/objet/where.go

887 lines
31 KiB
Go

// Code generated by ent, DO NOT EDIT.
package objet
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.Objet {
return predicate.Objet(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldID, id))
}
// Nom applies equality check predicate on the "nom" field. It's identical to NomEQ.
func Nom(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldNom, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldDescription, v))
}
// Quantite applies equality check predicate on the "quantite" field. It's identical to QuantiteEQ.
func Quantite(v int) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldQuantite, v))
}
// PrixAchat applies equality check predicate on the "prix_achat" field. It's identical to PrixAchatEQ.
func PrixAchat(v float64) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldPrixAchat, v))
}
// DateAchat applies equality check predicate on the "date_achat" field. It's identical to DateAchatEQ.
func DateAchat(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldDateAchat, v))
}
// Boutique applies equality check predicate on the "boutique" field. It's identical to BoutiqueEQ.
func Boutique(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldBoutique, v))
}
// NumeroSerie applies equality check predicate on the "numero_serie" field. It's identical to NumeroSerieEQ.
func NumeroSerie(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldNumeroSerie, v))
}
// NumeroModele applies equality check predicate on the "numero_modele" field. It's identical to NumeroModeleEQ.
func NumeroModele(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldNumeroModele, v))
}
// Fabricant applies equality check predicate on the "fabricant" field. It's identical to FabricantEQ.
func Fabricant(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldFabricant, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Objet {
return predicate.Objet(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.Objet {
return predicate.Objet(sql.FieldEQ(FieldUpdatedAt, v))
}
// NomEQ applies the EQ predicate on the "nom" field.
func NomEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldNom, v))
}
// NomNEQ applies the NEQ predicate on the "nom" field.
func NomNEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldNom, v))
}
// NomIn applies the In predicate on the "nom" field.
func NomIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldNom, vs...))
}
// NomNotIn applies the NotIn predicate on the "nom" field.
func NomNotIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldNom, vs...))
}
// NomGT applies the GT predicate on the "nom" field.
func NomGT(v string) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldNom, v))
}
// NomGTE applies the GTE predicate on the "nom" field.
func NomGTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldNom, v))
}
// NomLT applies the LT predicate on the "nom" field.
func NomLT(v string) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldNom, v))
}
// NomLTE applies the LTE predicate on the "nom" field.
func NomLTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldNom, v))
}
// NomContains applies the Contains predicate on the "nom" field.
func NomContains(v string) predicate.Objet {
return predicate.Objet(sql.FieldContains(FieldNom, v))
}
// NomHasPrefix applies the HasPrefix predicate on the "nom" field.
func NomHasPrefix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasPrefix(FieldNom, v))
}
// NomHasSuffix applies the HasSuffix predicate on the "nom" field.
func NomHasSuffix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasSuffix(FieldNom, v))
}
// NomEqualFold applies the EqualFold predicate on the "nom" field.
func NomEqualFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldEqualFold(FieldNom, v))
}
// NomContainsFold applies the ContainsFold predicate on the "nom" field.
func NomContainsFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldContainsFold(FieldNom, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.Objet {
return predicate.Objet(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldContainsFold(FieldDescription, v))
}
// QuantiteEQ applies the EQ predicate on the "quantite" field.
func QuantiteEQ(v int) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldQuantite, v))
}
// QuantiteNEQ applies the NEQ predicate on the "quantite" field.
func QuantiteNEQ(v int) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldQuantite, v))
}
// QuantiteIn applies the In predicate on the "quantite" field.
func QuantiteIn(vs ...int) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldQuantite, vs...))
}
// QuantiteNotIn applies the NotIn predicate on the "quantite" field.
func QuantiteNotIn(vs ...int) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldQuantite, vs...))
}
// QuantiteGT applies the GT predicate on the "quantite" field.
func QuantiteGT(v int) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldQuantite, v))
}
// QuantiteGTE applies the GTE predicate on the "quantite" field.
func QuantiteGTE(v int) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldQuantite, v))
}
// QuantiteLT applies the LT predicate on the "quantite" field.
func QuantiteLT(v int) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldQuantite, v))
}
// QuantiteLTE applies the LTE predicate on the "quantite" field.
func QuantiteLTE(v int) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldQuantite, v))
}
// PrixAchatEQ applies the EQ predicate on the "prix_achat" field.
func PrixAchatEQ(v float64) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldPrixAchat, v))
}
// PrixAchatNEQ applies the NEQ predicate on the "prix_achat" field.
func PrixAchatNEQ(v float64) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldPrixAchat, v))
}
// PrixAchatIn applies the In predicate on the "prix_achat" field.
func PrixAchatIn(vs ...float64) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldPrixAchat, vs...))
}
// PrixAchatNotIn applies the NotIn predicate on the "prix_achat" field.
func PrixAchatNotIn(vs ...float64) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldPrixAchat, vs...))
}
// PrixAchatGT applies the GT predicate on the "prix_achat" field.
func PrixAchatGT(v float64) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldPrixAchat, v))
}
// PrixAchatGTE applies the GTE predicate on the "prix_achat" field.
func PrixAchatGTE(v float64) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldPrixAchat, v))
}
// PrixAchatLT applies the LT predicate on the "prix_achat" field.
func PrixAchatLT(v float64) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldPrixAchat, v))
}
// PrixAchatLTE applies the LTE predicate on the "prix_achat" field.
func PrixAchatLTE(v float64) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldPrixAchat, v))
}
// PrixAchatIsNil applies the IsNil predicate on the "prix_achat" field.
func PrixAchatIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldPrixAchat))
}
// PrixAchatNotNil applies the NotNil predicate on the "prix_achat" field.
func PrixAchatNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldPrixAchat))
}
// DateAchatEQ applies the EQ predicate on the "date_achat" field.
func DateAchatEQ(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldDateAchat, v))
}
// DateAchatNEQ applies the NEQ predicate on the "date_achat" field.
func DateAchatNEQ(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldDateAchat, v))
}
// DateAchatIn applies the In predicate on the "date_achat" field.
func DateAchatIn(vs ...time.Time) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldDateAchat, vs...))
}
// DateAchatNotIn applies the NotIn predicate on the "date_achat" field.
func DateAchatNotIn(vs ...time.Time) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldDateAchat, vs...))
}
// DateAchatGT applies the GT predicate on the "date_achat" field.
func DateAchatGT(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldDateAchat, v))
}
// DateAchatGTE applies the GTE predicate on the "date_achat" field.
func DateAchatGTE(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldDateAchat, v))
}
// DateAchatLT applies the LT predicate on the "date_achat" field.
func DateAchatLT(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldDateAchat, v))
}
// DateAchatLTE applies the LTE predicate on the "date_achat" field.
func DateAchatLTE(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldDateAchat, v))
}
// DateAchatIsNil applies the IsNil predicate on the "date_achat" field.
func DateAchatIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldDateAchat))
}
// DateAchatNotNil applies the NotNil predicate on the "date_achat" field.
func DateAchatNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldDateAchat))
}
// BoutiqueEQ applies the EQ predicate on the "boutique" field.
func BoutiqueEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldBoutique, v))
}
// BoutiqueNEQ applies the NEQ predicate on the "boutique" field.
func BoutiqueNEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldBoutique, v))
}
// BoutiqueIn applies the In predicate on the "boutique" field.
func BoutiqueIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldBoutique, vs...))
}
// BoutiqueNotIn applies the NotIn predicate on the "boutique" field.
func BoutiqueNotIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldBoutique, vs...))
}
// BoutiqueGT applies the GT predicate on the "boutique" field.
func BoutiqueGT(v string) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldBoutique, v))
}
// BoutiqueGTE applies the GTE predicate on the "boutique" field.
func BoutiqueGTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldBoutique, v))
}
// BoutiqueLT applies the LT predicate on the "boutique" field.
func BoutiqueLT(v string) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldBoutique, v))
}
// BoutiqueLTE applies the LTE predicate on the "boutique" field.
func BoutiqueLTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldBoutique, v))
}
// BoutiqueContains applies the Contains predicate on the "boutique" field.
func BoutiqueContains(v string) predicate.Objet {
return predicate.Objet(sql.FieldContains(FieldBoutique, v))
}
// BoutiqueHasPrefix applies the HasPrefix predicate on the "boutique" field.
func BoutiqueHasPrefix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasPrefix(FieldBoutique, v))
}
// BoutiqueHasSuffix applies the HasSuffix predicate on the "boutique" field.
func BoutiqueHasSuffix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasSuffix(FieldBoutique, v))
}
// BoutiqueIsNil applies the IsNil predicate on the "boutique" field.
func BoutiqueIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldBoutique))
}
// BoutiqueNotNil applies the NotNil predicate on the "boutique" field.
func BoutiqueNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldBoutique))
}
// BoutiqueEqualFold applies the EqualFold predicate on the "boutique" field.
func BoutiqueEqualFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldEqualFold(FieldBoutique, v))
}
// BoutiqueContainsFold applies the ContainsFold predicate on the "boutique" field.
func BoutiqueContainsFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldContainsFold(FieldBoutique, v))
}
// NumeroSerieEQ applies the EQ predicate on the "numero_serie" field.
func NumeroSerieEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldNumeroSerie, v))
}
// NumeroSerieNEQ applies the NEQ predicate on the "numero_serie" field.
func NumeroSerieNEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldNumeroSerie, v))
}
// NumeroSerieIn applies the In predicate on the "numero_serie" field.
func NumeroSerieIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldNumeroSerie, vs...))
}
// NumeroSerieNotIn applies the NotIn predicate on the "numero_serie" field.
func NumeroSerieNotIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldNumeroSerie, vs...))
}
// NumeroSerieGT applies the GT predicate on the "numero_serie" field.
func NumeroSerieGT(v string) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldNumeroSerie, v))
}
// NumeroSerieGTE applies the GTE predicate on the "numero_serie" field.
func NumeroSerieGTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldNumeroSerie, v))
}
// NumeroSerieLT applies the LT predicate on the "numero_serie" field.
func NumeroSerieLT(v string) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldNumeroSerie, v))
}
// NumeroSerieLTE applies the LTE predicate on the "numero_serie" field.
func NumeroSerieLTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldNumeroSerie, v))
}
// NumeroSerieContains applies the Contains predicate on the "numero_serie" field.
func NumeroSerieContains(v string) predicate.Objet {
return predicate.Objet(sql.FieldContains(FieldNumeroSerie, v))
}
// NumeroSerieHasPrefix applies the HasPrefix predicate on the "numero_serie" field.
func NumeroSerieHasPrefix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasPrefix(FieldNumeroSerie, v))
}
// NumeroSerieHasSuffix applies the HasSuffix predicate on the "numero_serie" field.
func NumeroSerieHasSuffix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasSuffix(FieldNumeroSerie, v))
}
// NumeroSerieIsNil applies the IsNil predicate on the "numero_serie" field.
func NumeroSerieIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldNumeroSerie))
}
// NumeroSerieNotNil applies the NotNil predicate on the "numero_serie" field.
func NumeroSerieNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldNumeroSerie))
}
// NumeroSerieEqualFold applies the EqualFold predicate on the "numero_serie" field.
func NumeroSerieEqualFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldEqualFold(FieldNumeroSerie, v))
}
// NumeroSerieContainsFold applies the ContainsFold predicate on the "numero_serie" field.
func NumeroSerieContainsFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldContainsFold(FieldNumeroSerie, v))
}
// NumeroModeleEQ applies the EQ predicate on the "numero_modele" field.
func NumeroModeleEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldNumeroModele, v))
}
// NumeroModeleNEQ applies the NEQ predicate on the "numero_modele" field.
func NumeroModeleNEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldNumeroModele, v))
}
// NumeroModeleIn applies the In predicate on the "numero_modele" field.
func NumeroModeleIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldNumeroModele, vs...))
}
// NumeroModeleNotIn applies the NotIn predicate on the "numero_modele" field.
func NumeroModeleNotIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldNumeroModele, vs...))
}
// NumeroModeleGT applies the GT predicate on the "numero_modele" field.
func NumeroModeleGT(v string) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldNumeroModele, v))
}
// NumeroModeleGTE applies the GTE predicate on the "numero_modele" field.
func NumeroModeleGTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldNumeroModele, v))
}
// NumeroModeleLT applies the LT predicate on the "numero_modele" field.
func NumeroModeleLT(v string) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldNumeroModele, v))
}
// NumeroModeleLTE applies the LTE predicate on the "numero_modele" field.
func NumeroModeleLTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldNumeroModele, v))
}
// NumeroModeleContains applies the Contains predicate on the "numero_modele" field.
func NumeroModeleContains(v string) predicate.Objet {
return predicate.Objet(sql.FieldContains(FieldNumeroModele, v))
}
// NumeroModeleHasPrefix applies the HasPrefix predicate on the "numero_modele" field.
func NumeroModeleHasPrefix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasPrefix(FieldNumeroModele, v))
}
// NumeroModeleHasSuffix applies the HasSuffix predicate on the "numero_modele" field.
func NumeroModeleHasSuffix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasSuffix(FieldNumeroModele, v))
}
// NumeroModeleIsNil applies the IsNil predicate on the "numero_modele" field.
func NumeroModeleIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldNumeroModele))
}
// NumeroModeleNotNil applies the NotNil predicate on the "numero_modele" field.
func NumeroModeleNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldNumeroModele))
}
// NumeroModeleEqualFold applies the EqualFold predicate on the "numero_modele" field.
func NumeroModeleEqualFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldEqualFold(FieldNumeroModele, v))
}
// NumeroModeleContainsFold applies the ContainsFold predicate on the "numero_modele" field.
func NumeroModeleContainsFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldContainsFold(FieldNumeroModele, v))
}
// FabricantEQ applies the EQ predicate on the "fabricant" field.
func FabricantEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldFabricant, v))
}
// FabricantNEQ applies the NEQ predicate on the "fabricant" field.
func FabricantNEQ(v string) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldFabricant, v))
}
// FabricantIn applies the In predicate on the "fabricant" field.
func FabricantIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldFabricant, vs...))
}
// FabricantNotIn applies the NotIn predicate on the "fabricant" field.
func FabricantNotIn(vs ...string) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldFabricant, vs...))
}
// FabricantGT applies the GT predicate on the "fabricant" field.
func FabricantGT(v string) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldFabricant, v))
}
// FabricantGTE applies the GTE predicate on the "fabricant" field.
func FabricantGTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldFabricant, v))
}
// FabricantLT applies the LT predicate on the "fabricant" field.
func FabricantLT(v string) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldFabricant, v))
}
// FabricantLTE applies the LTE predicate on the "fabricant" field.
func FabricantLTE(v string) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldFabricant, v))
}
// FabricantContains applies the Contains predicate on the "fabricant" field.
func FabricantContains(v string) predicate.Objet {
return predicate.Objet(sql.FieldContains(FieldFabricant, v))
}
// FabricantHasPrefix applies the HasPrefix predicate on the "fabricant" field.
func FabricantHasPrefix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasPrefix(FieldFabricant, v))
}
// FabricantHasSuffix applies the HasSuffix predicate on the "fabricant" field.
func FabricantHasSuffix(v string) predicate.Objet {
return predicate.Objet(sql.FieldHasSuffix(FieldFabricant, v))
}
// FabricantIsNil applies the IsNil predicate on the "fabricant" field.
func FabricantIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldFabricant))
}
// FabricantNotNil applies the NotNil predicate on the "fabricant" field.
func FabricantNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldFabricant))
}
// FabricantEqualFold applies the EqualFold predicate on the "fabricant" field.
func FabricantEqualFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldEqualFold(FieldFabricant, v))
}
// FabricantContainsFold applies the ContainsFold predicate on the "fabricant" field.
func FabricantContainsFold(v string) predicate.Objet {
return predicate.Objet(sql.FieldContainsFold(FieldFabricant, v))
}
// StatutEQ applies the EQ predicate on the "statut" field.
func StatutEQ(v Statut) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldStatut, v))
}
// StatutNEQ applies the NEQ predicate on the "statut" field.
func StatutNEQ(v Statut) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldStatut, v))
}
// StatutIn applies the In predicate on the "statut" field.
func StatutIn(vs ...Statut) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldStatut, vs...))
}
// StatutNotIn applies the NotIn predicate on the "statut" field.
func StatutNotIn(vs ...Statut) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldStatut, vs...))
}
// CaracteristiquesIsNil applies the IsNil predicate on the "caracteristiques" field.
func CaracteristiquesIsNil() predicate.Objet {
return predicate.Objet(sql.FieldIsNull(FieldCaracteristiques))
}
// CaracteristiquesNotNil applies the NotNil predicate on the "caracteristiques" field.
func CaracteristiquesNotNil() predicate.Objet {
return predicate.Objet(sql.FieldNotNull(FieldCaracteristiques))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Objet {
return predicate.Objet(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Objet {
return predicate.Objet(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Objet {
return predicate.Objet(sql.FieldLTE(FieldUpdatedAt, v))
}
// HasLiensEmplacements applies the HasEdge predicate on the "liens_emplacements" edge.
func HasLiensEmplacements() predicate.Objet {
return predicate.Objet(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, LiensEmplacementsTable, LiensEmplacementsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasLiensEmplacementsWith applies the HasEdge predicate on the "liens_emplacements" edge with a given conditions (other predicates).
func HasLiensEmplacementsWith(preds ...predicate.LienObjetEmplacement) predicate.Objet {
return predicate.Objet(func(s *sql.Selector) {
step := newLiensEmplacementsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasChampsPersonnalises applies the HasEdge predicate on the "champs_personnalises" edge.
func HasChampsPersonnalises() predicate.Objet {
return predicate.Objet(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ChampsPersonnalisesTable, ChampsPersonnalisesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasChampsPersonnalisesWith applies the HasEdge predicate on the "champs_personnalises" edge with a given conditions (other predicates).
func HasChampsPersonnalisesWith(preds ...predicate.ChampPersonnalise) predicate.Objet {
return predicate.Objet(func(s *sql.Selector) {
step := newChampsPersonnalisesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasPiecesJointes applies the HasEdge predicate on the "pieces_jointes" edge.
func HasPiecesJointes() predicate.Objet {
return predicate.Objet(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, PiecesJointesTable, PiecesJointesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasPiecesJointesWith applies the HasEdge predicate on the "pieces_jointes" edge with a given conditions (other predicates).
func HasPiecesJointesWith(preds ...predicate.PieceJointe) predicate.Objet {
return predicate.Objet(func(s *sql.Selector) {
step := newPiecesJointesStep()
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.Objet) predicate.Objet {
return predicate.Objet(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Objet) predicate.Objet {
return predicate.Objet(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Objet) predicate.Objet {
return predicate.Objet(sql.NotPredicates(p))
}