backend api, swagger, tooling, frontend skeleton

This commit is contained in:
2026-01-21 22:05:02 +01:00
parent a9d1ad79ca
commit 88624f3bed
107 changed files with 34393 additions and 6 deletions

View File

@@ -0,0 +1,276 @@
// Code generated by ent, DO NOT EDIT.
package objet
import (
"fmt"
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/google/uuid"
)
const (
// Label holds the string label denoting the objet type in the database.
Label = "objet"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldNom holds the string denoting the nom field in the database.
FieldNom = "nom"
// FieldDescription holds the string denoting the description field in the database.
FieldDescription = "description"
// FieldQuantite holds the string denoting the quantite field in the database.
FieldQuantite = "quantite"
// FieldPrixAchat holds the string denoting the prix_achat field in the database.
FieldPrixAchat = "prix_achat"
// FieldDateAchat holds the string denoting the date_achat field in the database.
FieldDateAchat = "date_achat"
// FieldBoutique holds the string denoting the boutique field in the database.
FieldBoutique = "boutique"
// FieldNumeroSerie holds the string denoting the numero_serie field in the database.
FieldNumeroSerie = "numero_serie"
// FieldNumeroModele holds the string denoting the numero_modele field in the database.
FieldNumeroModele = "numero_modele"
// FieldFabricant holds the string denoting the fabricant field in the database.
FieldFabricant = "fabricant"
// FieldStatut holds the string denoting the statut field in the database.
FieldStatut = "statut"
// FieldCaracteristiques holds the string denoting the caracteristiques field in the database.
FieldCaracteristiques = "caracteristiques"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldUpdatedAt = "updated_at"
// EdgeLiensEmplacements holds the string denoting the liens_emplacements edge name in mutations.
EdgeLiensEmplacements = "liens_emplacements"
// EdgeChampsPersonnalises holds the string denoting the champs_personnalises edge name in mutations.
EdgeChampsPersonnalises = "champs_personnalises"
// EdgePiecesJointes holds the string denoting the pieces_jointes edge name in mutations.
EdgePiecesJointes = "pieces_jointes"
// Table holds the table name of the objet in the database.
Table = "objet"
// LiensEmplacementsTable is the table that holds the liens_emplacements relation/edge.
LiensEmplacementsTable = "lien_objet_emplacement"
// LiensEmplacementsInverseTable is the table name for the LienObjetEmplacement entity.
// It exists in this package in order to avoid circular dependency with the "lienobjetemplacement" package.
LiensEmplacementsInverseTable = "lien_objet_emplacement"
// LiensEmplacementsColumn is the table column denoting the liens_emplacements relation/edge.
LiensEmplacementsColumn = "objet_id"
// ChampsPersonnalisesTable is the table that holds the champs_personnalises relation/edge.
ChampsPersonnalisesTable = "champ_personnalise"
// ChampsPersonnalisesInverseTable is the table name for the ChampPersonnalise entity.
// It exists in this package in order to avoid circular dependency with the "champpersonnalise" package.
ChampsPersonnalisesInverseTable = "champ_personnalise"
// ChampsPersonnalisesColumn is the table column denoting the champs_personnalises relation/edge.
ChampsPersonnalisesColumn = "objet_id"
// PiecesJointesTable is the table that holds the pieces_jointes relation/edge.
PiecesJointesTable = "piece_jointe"
// PiecesJointesInverseTable is the table name for the PieceJointe entity.
// It exists in this package in order to avoid circular dependency with the "piecejointe" package.
PiecesJointesInverseTable = "piece_jointe"
// PiecesJointesColumn is the table column denoting the pieces_jointes relation/edge.
PiecesJointesColumn = "objet_id"
)
// Columns holds all SQL columns for objet fields.
var Columns = []string{
FieldID,
FieldNom,
FieldDescription,
FieldQuantite,
FieldPrixAchat,
FieldDateAchat,
FieldBoutique,
FieldNumeroSerie,
FieldNumeroModele,
FieldFabricant,
FieldStatut,
FieldCaracteristiques,
FieldCreatedAt,
FieldUpdatedAt,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// NomValidator is a validator for the "nom" field. It is called by the builders before save.
NomValidator func(string) error
// DefaultQuantite holds the default value on creation for the "quantite" field.
DefaultQuantite int
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultCreatedAt func() time.Time
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
DefaultUpdatedAt func() time.Time
// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
UpdateDefaultUpdatedAt func() time.Time
// DefaultID holds the default value on creation for the "id" field.
DefaultID func() uuid.UUID
)
// Statut defines the type for the "statut" enum field.
type Statut string
// StatutEnStock is the default value of the Statut enum.
const DefaultStatut = StatutEnStock
// Statut values.
const (
StatutEnStock Statut = "en_stock"
StatutPret Statut = "pret"
StatutHorsService Statut = "hors_service"
StatutArchive Statut = "archive"
)
func (s Statut) String() string {
return string(s)
}
// StatutValidator is a validator for the "statut" field enum values. It is called by the builders before save.
func StatutValidator(s Statut) error {
switch s {
case StatutEnStock, StatutPret, StatutHorsService, StatutArchive:
return nil
default:
return fmt.Errorf("objet: invalid enum value for statut field: %q", s)
}
}
// OrderOption defines the ordering options for the Objet queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByNom orders the results by the nom field.
func ByNom(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNom, opts...).ToFunc()
}
// ByDescription orders the results by the description field.
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDescription, opts...).ToFunc()
}
// ByQuantite orders the results by the quantite field.
func ByQuantite(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldQuantite, opts...).ToFunc()
}
// ByPrixAchat orders the results by the prix_achat field.
func ByPrixAchat(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPrixAchat, opts...).ToFunc()
}
// ByDateAchat orders the results by the date_achat field.
func ByDateAchat(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDateAchat, opts...).ToFunc()
}
// ByBoutique orders the results by the boutique field.
func ByBoutique(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBoutique, opts...).ToFunc()
}
// ByNumeroSerie orders the results by the numero_serie field.
func ByNumeroSerie(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNumeroSerie, opts...).ToFunc()
}
// ByNumeroModele orders the results by the numero_modele field.
func ByNumeroModele(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNumeroModele, opts...).ToFunc()
}
// ByFabricant orders the results by the fabricant field.
func ByFabricant(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldFabricant, opts...).ToFunc()
}
// ByStatut orders the results by the statut field.
func ByStatut(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatut, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}
// ByLiensEmplacementsCount orders the results by liens_emplacements count.
func ByLiensEmplacementsCount(opts ...sql.OrderTermOption) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborsCount(s, newLiensEmplacementsStep(), opts...)
}
}
// ByLiensEmplacements orders the results by liens_emplacements terms.
func ByLiensEmplacements(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborTerms(s, newLiensEmplacementsStep(), append([]sql.OrderTerm{term}, terms...)...)
}
}
// ByChampsPersonnalisesCount orders the results by champs_personnalises count.
func ByChampsPersonnalisesCount(opts ...sql.OrderTermOption) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborsCount(s, newChampsPersonnalisesStep(), opts...)
}
}
// ByChampsPersonnalises orders the results by champs_personnalises terms.
func ByChampsPersonnalises(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborTerms(s, newChampsPersonnalisesStep(), append([]sql.OrderTerm{term}, terms...)...)
}
}
// ByPiecesJointesCount orders the results by pieces_jointes count.
func ByPiecesJointesCount(opts ...sql.OrderTermOption) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborsCount(s, newPiecesJointesStep(), opts...)
}
}
// ByPiecesJointes orders the results by pieces_jointes terms.
func ByPiecesJointes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborTerms(s, newPiecesJointesStep(), append([]sql.OrderTerm{term}, terms...)...)
}
}
func newLiensEmplacementsStep() *sqlgraph.Step {
return sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(LiensEmplacementsInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, LiensEmplacementsTable, LiensEmplacementsColumn),
)
}
func newChampsPersonnalisesStep() *sqlgraph.Step {
return sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(ChampsPersonnalisesInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ChampsPersonnalisesTable, ChampsPersonnalisesColumn),
)
}
func newPiecesJointesStep() *sqlgraph.Step {
return sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(PiecesJointesInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, PiecesJointesTable, PiecesJointesColumn),
)
}

View File

@@ -0,0 +1,886 @@
// 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))
}