456 lines
17 KiB
Go
456 lines
17 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package piecejointe
|
|
|
|
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.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(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.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldObjetID, v))
|
|
}
|
|
|
|
// NomFichier applies equality check predicate on the "nom_fichier" field. It's identical to NomFichierEQ.
|
|
func NomFichier(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldNomFichier, v))
|
|
}
|
|
|
|
// Chemin applies equality check predicate on the "chemin" field. It's identical to CheminEQ.
|
|
func Chemin(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldChemin, v))
|
|
}
|
|
|
|
// TypeMime applies equality check predicate on the "type_mime" field. It's identical to TypeMimeEQ.
|
|
func TypeMime(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldTypeMime, v))
|
|
}
|
|
|
|
// EstPrincipale applies equality check predicate on the "est_principale" field. It's identical to EstPrincipaleEQ.
|
|
func EstPrincipale(v bool) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldEstPrincipale, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(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.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// ObjetIDEQ applies the EQ predicate on the "objet_id" field.
|
|
func ObjetIDEQ(v uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldObjetID, v))
|
|
}
|
|
|
|
// ObjetIDNEQ applies the NEQ predicate on the "objet_id" field.
|
|
func ObjetIDNEQ(v uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldObjetID, v))
|
|
}
|
|
|
|
// ObjetIDIn applies the In predicate on the "objet_id" field.
|
|
func ObjetIDIn(vs ...uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldObjetID, vs...))
|
|
}
|
|
|
|
// ObjetIDNotIn applies the NotIn predicate on the "objet_id" field.
|
|
func ObjetIDNotIn(vs ...uuid.UUID) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldObjetID, vs...))
|
|
}
|
|
|
|
// NomFichierEQ applies the EQ predicate on the "nom_fichier" field.
|
|
func NomFichierEQ(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierNEQ applies the NEQ predicate on the "nom_fichier" field.
|
|
func NomFichierNEQ(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierIn applies the In predicate on the "nom_fichier" field.
|
|
func NomFichierIn(vs ...string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldNomFichier, vs...))
|
|
}
|
|
|
|
// NomFichierNotIn applies the NotIn predicate on the "nom_fichier" field.
|
|
func NomFichierNotIn(vs ...string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldNomFichier, vs...))
|
|
}
|
|
|
|
// NomFichierGT applies the GT predicate on the "nom_fichier" field.
|
|
func NomFichierGT(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGT(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierGTE applies the GTE predicate on the "nom_fichier" field.
|
|
func NomFichierGTE(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGTE(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierLT applies the LT predicate on the "nom_fichier" field.
|
|
func NomFichierLT(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLT(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierLTE applies the LTE predicate on the "nom_fichier" field.
|
|
func NomFichierLTE(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLTE(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierContains applies the Contains predicate on the "nom_fichier" field.
|
|
func NomFichierContains(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldContains(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierHasPrefix applies the HasPrefix predicate on the "nom_fichier" field.
|
|
func NomFichierHasPrefix(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldHasPrefix(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierHasSuffix applies the HasSuffix predicate on the "nom_fichier" field.
|
|
func NomFichierHasSuffix(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldHasSuffix(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierEqualFold applies the EqualFold predicate on the "nom_fichier" field.
|
|
func NomFichierEqualFold(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEqualFold(FieldNomFichier, v))
|
|
}
|
|
|
|
// NomFichierContainsFold applies the ContainsFold predicate on the "nom_fichier" field.
|
|
func NomFichierContainsFold(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldContainsFold(FieldNomFichier, v))
|
|
}
|
|
|
|
// CheminEQ applies the EQ predicate on the "chemin" field.
|
|
func CheminEQ(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldChemin, v))
|
|
}
|
|
|
|
// CheminNEQ applies the NEQ predicate on the "chemin" field.
|
|
func CheminNEQ(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldChemin, v))
|
|
}
|
|
|
|
// CheminIn applies the In predicate on the "chemin" field.
|
|
func CheminIn(vs ...string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldChemin, vs...))
|
|
}
|
|
|
|
// CheminNotIn applies the NotIn predicate on the "chemin" field.
|
|
func CheminNotIn(vs ...string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldChemin, vs...))
|
|
}
|
|
|
|
// CheminGT applies the GT predicate on the "chemin" field.
|
|
func CheminGT(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGT(FieldChemin, v))
|
|
}
|
|
|
|
// CheminGTE applies the GTE predicate on the "chemin" field.
|
|
func CheminGTE(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGTE(FieldChemin, v))
|
|
}
|
|
|
|
// CheminLT applies the LT predicate on the "chemin" field.
|
|
func CheminLT(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLT(FieldChemin, v))
|
|
}
|
|
|
|
// CheminLTE applies the LTE predicate on the "chemin" field.
|
|
func CheminLTE(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLTE(FieldChemin, v))
|
|
}
|
|
|
|
// CheminContains applies the Contains predicate on the "chemin" field.
|
|
func CheminContains(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldContains(FieldChemin, v))
|
|
}
|
|
|
|
// CheminHasPrefix applies the HasPrefix predicate on the "chemin" field.
|
|
func CheminHasPrefix(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldHasPrefix(FieldChemin, v))
|
|
}
|
|
|
|
// CheminHasSuffix applies the HasSuffix predicate on the "chemin" field.
|
|
func CheminHasSuffix(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldHasSuffix(FieldChemin, v))
|
|
}
|
|
|
|
// CheminEqualFold applies the EqualFold predicate on the "chemin" field.
|
|
func CheminEqualFold(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEqualFold(FieldChemin, v))
|
|
}
|
|
|
|
// CheminContainsFold applies the ContainsFold predicate on the "chemin" field.
|
|
func CheminContainsFold(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldContainsFold(FieldChemin, v))
|
|
}
|
|
|
|
// TypeMimeEQ applies the EQ predicate on the "type_mime" field.
|
|
func TypeMimeEQ(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeNEQ applies the NEQ predicate on the "type_mime" field.
|
|
func TypeMimeNEQ(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeIn applies the In predicate on the "type_mime" field.
|
|
func TypeMimeIn(vs ...string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldTypeMime, vs...))
|
|
}
|
|
|
|
// TypeMimeNotIn applies the NotIn predicate on the "type_mime" field.
|
|
func TypeMimeNotIn(vs ...string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldTypeMime, vs...))
|
|
}
|
|
|
|
// TypeMimeGT applies the GT predicate on the "type_mime" field.
|
|
func TypeMimeGT(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGT(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeGTE applies the GTE predicate on the "type_mime" field.
|
|
func TypeMimeGTE(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGTE(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeLT applies the LT predicate on the "type_mime" field.
|
|
func TypeMimeLT(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLT(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeLTE applies the LTE predicate on the "type_mime" field.
|
|
func TypeMimeLTE(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLTE(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeContains applies the Contains predicate on the "type_mime" field.
|
|
func TypeMimeContains(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldContains(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeHasPrefix applies the HasPrefix predicate on the "type_mime" field.
|
|
func TypeMimeHasPrefix(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldHasPrefix(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeHasSuffix applies the HasSuffix predicate on the "type_mime" field.
|
|
func TypeMimeHasSuffix(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldHasSuffix(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeEqualFold applies the EqualFold predicate on the "type_mime" field.
|
|
func TypeMimeEqualFold(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEqualFold(FieldTypeMime, v))
|
|
}
|
|
|
|
// TypeMimeContainsFold applies the ContainsFold predicate on the "type_mime" field.
|
|
func TypeMimeContainsFold(v string) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldContainsFold(FieldTypeMime, v))
|
|
}
|
|
|
|
// EstPrincipaleEQ applies the EQ predicate on the "est_principale" field.
|
|
func EstPrincipaleEQ(v bool) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldEstPrincipale, v))
|
|
}
|
|
|
|
// EstPrincipaleNEQ applies the NEQ predicate on the "est_principale" field.
|
|
func EstPrincipaleNEQ(v bool) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldEstPrincipale, v))
|
|
}
|
|
|
|
// CategorieEQ applies the EQ predicate on the "categorie" field.
|
|
func CategorieEQ(v Categorie) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldCategorie, v))
|
|
}
|
|
|
|
// CategorieNEQ applies the NEQ predicate on the "categorie" field.
|
|
func CategorieNEQ(v Categorie) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldCategorie, v))
|
|
}
|
|
|
|
// CategorieIn applies the In predicate on the "categorie" field.
|
|
func CategorieIn(vs ...Categorie) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldCategorie, vs...))
|
|
}
|
|
|
|
// CategorieNotIn applies the NotIn predicate on the "categorie" field.
|
|
func CategorieNotIn(vs ...Categorie) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldCategorie, vs...))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// HasObjet applies the HasEdge predicate on the "objet" edge.
|
|
func HasObjet() predicate.PieceJointe {
|
|
return predicate.PieceJointe(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.PieceJointe {
|
|
return predicate.PieceJointe(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.PieceJointe) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.PieceJointe) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.PieceJointe) predicate.PieceJointe {
|
|
return predicate.PieceJointe(sql.NotPredicates(p))
|
|
}
|