// Code generated by ent, DO NOT EDIT.

package ent

import (
	"time"

	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/categorie"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/champpersonnalise"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/emplacement"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/lienobjetemplacement"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/objet"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/piecejointe"
	"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/schema"
	"github.com/google/uuid"
)

// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
	categorieFields := schema.Categorie{}.Fields()
	_ = categorieFields
	// categorieDescNom is the schema descriptor for nom field.
	categorieDescNom := categorieFields[1].Descriptor()
	// categorie.NomValidator is a validator for the "nom" field. It is called by the builders before save.
	categorie.NomValidator = categorieDescNom.Validators[0].(func(string) error)
	// categorieDescCreatedAt is the schema descriptor for created_at field.
	categorieDescCreatedAt := categorieFields[5].Descriptor()
	// categorie.DefaultCreatedAt holds the default value on creation for the created_at field.
	categorie.DefaultCreatedAt = categorieDescCreatedAt.Default.(func() time.Time)
	// categorieDescUpdatedAt is the schema descriptor for updated_at field.
	categorieDescUpdatedAt := categorieFields[6].Descriptor()
	// categorie.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	categorie.DefaultUpdatedAt = categorieDescUpdatedAt.Default.(func() time.Time)
	// categorie.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	categorie.UpdateDefaultUpdatedAt = categorieDescUpdatedAt.UpdateDefault.(func() time.Time)
	// categorieDescID is the schema descriptor for id field.
	categorieDescID := categorieFields[0].Descriptor()
	// categorie.DefaultID holds the default value on creation for the id field.
	categorie.DefaultID = categorieDescID.Default.(func() uuid.UUID)
	champpersonnaliseFields := schema.ChampPersonnalise{}.Fields()
	_ = champpersonnaliseFields
	// champpersonnaliseDescNomChamp is the schema descriptor for nom_champ field.
	champpersonnaliseDescNomChamp := champpersonnaliseFields[2].Descriptor()
	// champpersonnalise.NomChampValidator is a validator for the "nom_champ" field. It is called by the builders before save.
	champpersonnalise.NomChampValidator = champpersonnaliseDescNomChamp.Validators[0].(func(string) error)
	// champpersonnaliseDescCreatedAt is the schema descriptor for created_at field.
	champpersonnaliseDescCreatedAt := champpersonnaliseFields[6].Descriptor()
	// champpersonnalise.DefaultCreatedAt holds the default value on creation for the created_at field.
	champpersonnalise.DefaultCreatedAt = champpersonnaliseDescCreatedAt.Default.(func() time.Time)
	// champpersonnaliseDescUpdatedAt is the schema descriptor for updated_at field.
	champpersonnaliseDescUpdatedAt := champpersonnaliseFields[7].Descriptor()
	// champpersonnalise.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	champpersonnalise.DefaultUpdatedAt = champpersonnaliseDescUpdatedAt.Default.(func() time.Time)
	// champpersonnalise.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	champpersonnalise.UpdateDefaultUpdatedAt = champpersonnaliseDescUpdatedAt.UpdateDefault.(func() time.Time)
	// champpersonnaliseDescID is the schema descriptor for id field.
	champpersonnaliseDescID := champpersonnaliseFields[0].Descriptor()
	// champpersonnalise.DefaultID holds the default value on creation for the id field.
	champpersonnalise.DefaultID = champpersonnaliseDescID.Default.(func() uuid.UUID)
	emplacementFields := schema.Emplacement{}.Fields()
	_ = emplacementFields
	// emplacementDescNom is the schema descriptor for nom field.
	emplacementDescNom := emplacementFields[1].Descriptor()
	// emplacement.NomValidator is a validator for the "nom" field. It is called by the builders before save.
	emplacement.NomValidator = emplacementDescNom.Validators[0].(func(string) error)
	// emplacementDescCreatedAt is the schema descriptor for created_at field.
	emplacementDescCreatedAt := emplacementFields[8].Descriptor()
	// emplacement.DefaultCreatedAt holds the default value on creation for the created_at field.
	emplacement.DefaultCreatedAt = emplacementDescCreatedAt.Default.(func() time.Time)
	// emplacementDescUpdatedAt is the schema descriptor for updated_at field.
	emplacementDescUpdatedAt := emplacementFields[9].Descriptor()
	// emplacement.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	emplacement.DefaultUpdatedAt = emplacementDescUpdatedAt.Default.(func() time.Time)
	// emplacement.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	emplacement.UpdateDefaultUpdatedAt = emplacementDescUpdatedAt.UpdateDefault.(func() time.Time)
	// emplacementDescID is the schema descriptor for id field.
	emplacementDescID := emplacementFields[0].Descriptor()
	// emplacement.DefaultID holds the default value on creation for the id field.
	emplacement.DefaultID = emplacementDescID.Default.(func() uuid.UUID)
	lienobjetemplacementFields := schema.LienObjetEmplacement{}.Fields()
	_ = lienobjetemplacementFields
	// lienobjetemplacementDescCreatedAt is the schema descriptor for created_at field.
	lienobjetemplacementDescCreatedAt := lienobjetemplacementFields[4].Descriptor()
	// lienobjetemplacement.DefaultCreatedAt holds the default value on creation for the created_at field.
	lienobjetemplacement.DefaultCreatedAt = lienobjetemplacementDescCreatedAt.Default.(func() time.Time)
	// lienobjetemplacementDescUpdatedAt is the schema descriptor for updated_at field.
	lienobjetemplacementDescUpdatedAt := lienobjetemplacementFields[5].Descriptor()
	// lienobjetemplacement.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	lienobjetemplacement.DefaultUpdatedAt = lienobjetemplacementDescUpdatedAt.Default.(func() time.Time)
	// lienobjetemplacement.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	lienobjetemplacement.UpdateDefaultUpdatedAt = lienobjetemplacementDescUpdatedAt.UpdateDefault.(func() time.Time)
	// lienobjetemplacementDescID is the schema descriptor for id field.
	lienobjetemplacementDescID := lienobjetemplacementFields[0].Descriptor()
	// lienobjetemplacement.DefaultID holds the default value on creation for the id field.
	lienobjetemplacement.DefaultID = lienobjetemplacementDescID.Default.(func() uuid.UUID)
	objetFields := schema.Objet{}.Fields()
	_ = objetFields
	// objetDescNom is the schema descriptor for nom field.
	objetDescNom := objetFields[1].Descriptor()
	// objet.NomValidator is a validator for the "nom" field. It is called by the builders before save.
	objet.NomValidator = objetDescNom.Validators[0].(func(string) error)
	// objetDescQuantite is the schema descriptor for quantite field.
	objetDescQuantite := objetFields[3].Descriptor()
	// objet.DefaultQuantite holds the default value on creation for the quantite field.
	objet.DefaultQuantite = objetDescQuantite.Default.(int)
	// objetDescCreatedAt is the schema descriptor for created_at field.
	objetDescCreatedAt := objetFields[12].Descriptor()
	// objet.DefaultCreatedAt holds the default value on creation for the created_at field.
	objet.DefaultCreatedAt = objetDescCreatedAt.Default.(func() time.Time)
	// objetDescUpdatedAt is the schema descriptor for updated_at field.
	objetDescUpdatedAt := objetFields[13].Descriptor()
	// objet.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	objet.DefaultUpdatedAt = objetDescUpdatedAt.Default.(func() time.Time)
	// objet.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	objet.UpdateDefaultUpdatedAt = objetDescUpdatedAt.UpdateDefault.(func() time.Time)
	// objetDescID is the schema descriptor for id field.
	objetDescID := objetFields[0].Descriptor()
	// objet.DefaultID holds the default value on creation for the id field.
	objet.DefaultID = objetDescID.Default.(func() uuid.UUID)
	piecejointeFields := schema.PieceJointe{}.Fields()
	_ = piecejointeFields
	// piecejointeDescNomFichier is the schema descriptor for nom_fichier field.
	piecejointeDescNomFichier := piecejointeFields[2].Descriptor()
	// piecejointe.NomFichierValidator is a validator for the "nom_fichier" field. It is called by the builders before save.
	piecejointe.NomFichierValidator = piecejointeDescNomFichier.Validators[0].(func(string) error)
	// piecejointeDescChemin is the schema descriptor for chemin field.
	piecejointeDescChemin := piecejointeFields[3].Descriptor()
	// piecejointe.CheminValidator is a validator for the "chemin" field. It is called by the builders before save.
	piecejointe.CheminValidator = piecejointeDescChemin.Validators[0].(func(string) error)
	// piecejointeDescTypeMime is the schema descriptor for type_mime field.
	piecejointeDescTypeMime := piecejointeFields[4].Descriptor()
	// piecejointe.TypeMimeValidator is a validator for the "type_mime" field. It is called by the builders before save.
	piecejointe.TypeMimeValidator = piecejointeDescTypeMime.Validators[0].(func(string) error)
	// piecejointeDescEstPrincipale is the schema descriptor for est_principale field.
	piecejointeDescEstPrincipale := piecejointeFields[5].Descriptor()
	// piecejointe.DefaultEstPrincipale holds the default value on creation for the est_principale field.
	piecejointe.DefaultEstPrincipale = piecejointeDescEstPrincipale.Default.(bool)
	// piecejointeDescCreatedAt is the schema descriptor for created_at field.
	piecejointeDescCreatedAt := piecejointeFields[7].Descriptor()
	// piecejointe.DefaultCreatedAt holds the default value on creation for the created_at field.
	piecejointe.DefaultCreatedAt = piecejointeDescCreatedAt.Default.(func() time.Time)
	// piecejointeDescUpdatedAt is the schema descriptor for updated_at field.
	piecejointeDescUpdatedAt := piecejointeFields[8].Descriptor()
	// piecejointe.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	piecejointe.DefaultUpdatedAt = piecejointeDescUpdatedAt.Default.(func() time.Time)
	// piecejointe.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	piecejointe.UpdateDefaultUpdatedAt = piecejointeDescUpdatedAt.UpdateDefault.(func() time.Time)
	// piecejointeDescID is the schema descriptor for id field.
	piecejointeDescID := piecejointeFields[0].Descriptor()
	// piecejointe.DefaultID holds the default value on creation for the id field.
	piecejointe.DefaultID = piecejointeDescID.Default.(func() uuid.UUID)
}
