Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

49.7 KB
Raw Blame
// Code generated by ent, DO NOT EDIT.

package ent

import (
	"time"

	"github.com/google/uuid"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/apikey"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/attachment"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/authtokens"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/entity"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/entityfield"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/entitytemplate"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/entitytype"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/export"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/group"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/groupinvitationtoken"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/maintenanceentry"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/notifier"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/passwordresettokens"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/schema"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/tag"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/templatefield"
	"github.com/sysadminsmedia/homebox/backend/internal/data/ent/user"
)

// 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() {
	apikeyMixin := schema.APIKey{}.Mixin()
	apikeyMixinFields0 := apikeyMixin[0].Fields()
	_ = apikeyMixinFields0
	apikeyFields := schema.APIKey{}.Fields()
	_ = apikeyFields
	// apikeyDescCreatedAt is the schema descriptor for created_at field.
	apikeyDescCreatedAt := apikeyMixinFields0[1].Descriptor()
	// apikey.DefaultCreatedAt holds the default value on creation for the created_at field.
	apikey.DefaultCreatedAt = apikeyDescCreatedAt.Default.(func() time.Time)
	// apikeyDescUpdatedAt is the schema descriptor for updated_at field.
	apikeyDescUpdatedAt := apikeyMixinFields0[2].Descriptor()
	// apikey.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	apikey.DefaultUpdatedAt = apikeyDescUpdatedAt.Default.(func() time.Time)
	// apikey.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	apikey.UpdateDefaultUpdatedAt = apikeyDescUpdatedAt.UpdateDefault.(func() time.Time)
	// apikeyDescName is the schema descriptor for name field.
	apikeyDescName := apikeyFields[0].Descriptor()
	// apikey.NameValidator is a validator for the "name" field. It is called by the builders before save.
	apikey.NameValidator = func() func(string) error {
		validators := apikeyDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// apikeyDescID is the schema descriptor for id field.
	apikeyDescID := apikeyMixinFields0[0].Descriptor()
	// apikey.DefaultID holds the default value on creation for the id field.
	apikey.DefaultID = apikeyDescID.Default.(func() uuid.UUID)
	attachmentMixin := schema.Attachment{}.Mixin()
	attachmentMixinFields0 := attachmentMixin[0].Fields()
	_ = attachmentMixinFields0
	attachmentFields := schema.Attachment{}.Fields()
	_ = attachmentFields
	// attachmentDescCreatedAt is the schema descriptor for created_at field.
	attachmentDescCreatedAt := attachmentMixinFields0[1].Descriptor()
	// attachment.DefaultCreatedAt holds the default value on creation for the created_at field.
	attachment.DefaultCreatedAt = attachmentDescCreatedAt.Default.(func() time.Time)
	// attachmentDescUpdatedAt is the schema descriptor for updated_at field.
	attachmentDescUpdatedAt := attachmentMixinFields0[2].Descriptor()
	// attachment.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	attachment.DefaultUpdatedAt = attachmentDescUpdatedAt.Default.(func() time.Time)
	// attachment.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	attachment.UpdateDefaultUpdatedAt = attachmentDescUpdatedAt.UpdateDefault.(func() time.Time)
	// attachmentDescPrimary is the schema descriptor for primary field.
	attachmentDescPrimary := attachmentFields[1].Descriptor()
	// attachment.DefaultPrimary holds the default value on creation for the primary field.
	attachment.DefaultPrimary = attachmentDescPrimary.Default.(bool)
	// attachmentDescTitle is the schema descriptor for title field.
	attachmentDescTitle := attachmentFields[2].Descriptor()
	// attachment.DefaultTitle holds the default value on creation for the title field.
	attachment.DefaultTitle = attachmentDescTitle.Default.(string)
	// attachmentDescPath is the schema descriptor for path field.
	attachmentDescPath := attachmentFields[3].Descriptor()
	// attachment.DefaultPath holds the default value on creation for the path field.
	attachment.DefaultPath = attachmentDescPath.Default.(string)
	// attachmentDescMimeType is the schema descriptor for mime_type field.
	attachmentDescMimeType := attachmentFields[4].Descriptor()
	// attachment.DefaultMimeType holds the default value on creation for the mime_type field.
	attachment.DefaultMimeType = attachmentDescMimeType.Default.(string)
	// attachmentDescID is the schema descriptor for id field.
	attachmentDescID := attachmentMixinFields0[0].Descriptor()
	// attachment.DefaultID holds the default value on creation for the id field.
	attachment.DefaultID = attachmentDescID.Default.(func() uuid.UUID)
	authrolesFields := schema.AuthRoles{}.Fields()
	_ = authrolesFields
	authtokensMixin := schema.AuthTokens{}.Mixin()
	authtokensMixinFields0 := authtokensMixin[0].Fields()
	_ = authtokensMixinFields0
	authtokensFields := schema.AuthTokens{}.Fields()
	_ = authtokensFields
	// authtokensDescCreatedAt is the schema descriptor for created_at field.
	authtokensDescCreatedAt := authtokensMixinFields0[1].Descriptor()
	// authtokens.DefaultCreatedAt holds the default value on creation for the created_at field.
	authtokens.DefaultCreatedAt = authtokensDescCreatedAt.Default.(func() time.Time)
	// authtokensDescUpdatedAt is the schema descriptor for updated_at field.
	authtokensDescUpdatedAt := authtokensMixinFields0[2].Descriptor()
	// authtokens.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	authtokens.DefaultUpdatedAt = authtokensDescUpdatedAt.Default.(func() time.Time)
	// authtokens.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	authtokens.UpdateDefaultUpdatedAt = authtokensDescUpdatedAt.UpdateDefault.(func() time.Time)
	// authtokensDescExpiresAt is the schema descriptor for expires_at field.
	authtokensDescExpiresAt := authtokensFields[1].Descriptor()
	// authtokens.DefaultExpiresAt holds the default value on creation for the expires_at field.
	authtokens.DefaultExpiresAt = authtokensDescExpiresAt.Default.(func() time.Time)
	// authtokensDescID is the schema descriptor for id field.
	authtokensDescID := authtokensMixinFields0[0].Descriptor()
	// authtokens.DefaultID holds the default value on creation for the id field.
	authtokens.DefaultID = authtokensDescID.Default.(func() uuid.UUID)
	entityMixin := schema.Entity{}.Mixin()
	entityMixinFields0 := entityMixin[0].Fields()
	_ = entityMixinFields0
	entityMixinFields1 := entityMixin[1].Fields()
	_ = entityMixinFields1
	entityFields := schema.Entity{}.Fields()
	_ = entityFields
	// entityDescCreatedAt is the schema descriptor for created_at field.
	entityDescCreatedAt := entityMixinFields0[1].Descriptor()
	// entity.DefaultCreatedAt holds the default value on creation for the created_at field.
	entity.DefaultCreatedAt = entityDescCreatedAt.Default.(func() time.Time)
	// entityDescUpdatedAt is the schema descriptor for updated_at field.
	entityDescUpdatedAt := entityMixinFields0[2].Descriptor()
	// entity.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	entity.DefaultUpdatedAt = entityDescUpdatedAt.Default.(func() time.Time)
	// entity.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	entity.UpdateDefaultUpdatedAt = entityDescUpdatedAt.UpdateDefault.(func() time.Time)
	// entityDescName is the schema descriptor for name field.
	entityDescName := entityMixinFields1[0].Descriptor()
	// entity.NameValidator is a validator for the "name" field. It is called by the builders before save.
	entity.NameValidator = func() func(string) error {
		validators := entityDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// entityDescDescription is the schema descriptor for description field.
	entityDescDescription := entityMixinFields1[1].Descriptor()
	// entity.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	entity.DescriptionValidator = entityDescDescription.Validators[0].(func(string) error)
	// entityDescImportRef is the schema descriptor for import_ref field.
	entityDescImportRef := entityFields[0].Descriptor()
	// entity.ImportRefValidator is a validator for the "import_ref" field. It is called by the builders before save.
	entity.ImportRefValidator = entityDescImportRef.Validators[0].(func(string) error)
	// entityDescNotes is the schema descriptor for notes field.
	entityDescNotes := entityFields[1].Descriptor()
	// entity.NotesValidator is a validator for the "notes" field. It is called by the builders before save.
	entity.NotesValidator = entityDescNotes.Validators[0].(func(string) error)
	// entityDescQuantity is the schema descriptor for quantity field.
	entityDescQuantity := entityFields[2].Descriptor()
	// entity.DefaultQuantity holds the default value on creation for the quantity field.
	entity.DefaultQuantity = entityDescQuantity.Default.(float64)
	// entityDescInsured is the schema descriptor for insured field.
	entityDescInsured := entityFields[3].Descriptor()
	// entity.DefaultInsured holds the default value on creation for the insured field.
	entity.DefaultInsured = entityDescInsured.Default.(bool)
	// entityDescArchived is the schema descriptor for archived field.
	entityDescArchived := entityFields[4].Descriptor()
	// entity.DefaultArchived holds the default value on creation for the archived field.
	entity.DefaultArchived = entityDescArchived.Default.(bool)
	// entityDescAssetID is the schema descriptor for asset_id field.
	entityDescAssetID := entityFields[5].Descriptor()
	// entity.DefaultAssetID holds the default value on creation for the asset_id field.
	entity.DefaultAssetID = entityDescAssetID.Default.(int64)
	// entityDescSyncChildEntityLocations is the schema descriptor for sync_child_entity_locations field.
	entityDescSyncChildEntityLocations := entityFields[6].Descriptor()
	// entity.DefaultSyncChildEntityLocations holds the default value on creation for the sync_child_entity_locations field.
	entity.DefaultSyncChildEntityLocations = entityDescSyncChildEntityLocations.Default.(bool)
	// entityDescSerialNumber is the schema descriptor for serial_number field.
	entityDescSerialNumber := entityFields[7].Descriptor()
	// entity.SerialNumberValidator is a validator for the "serial_number" field. It is called by the builders before save.
	entity.SerialNumberValidator = entityDescSerialNumber.Validators[0].(func(string) error)
	// entityDescModelNumber is the schema descriptor for model_number field.
	entityDescModelNumber := entityFields[8].Descriptor()
	// entity.ModelNumberValidator is a validator for the "model_number" field. It is called by the builders before save.
	entity.ModelNumberValidator = entityDescModelNumber.Validators[0].(func(string) error)
	// entityDescManufacturer is the schema descriptor for manufacturer field.
	entityDescManufacturer := entityFields[9].Descriptor()
	// entity.ManufacturerValidator is a validator for the "manufacturer" field. It is called by the builders before save.
	entity.ManufacturerValidator = entityDescManufacturer.Validators[0].(func(string) error)
	// entityDescLifetimeWarranty is the schema descriptor for lifetime_warranty field.
	entityDescLifetimeWarranty := entityFields[10].Descriptor()
	// entity.DefaultLifetimeWarranty holds the default value on creation for the lifetime_warranty field.
	entity.DefaultLifetimeWarranty = entityDescLifetimeWarranty.Default.(bool)
	// entityDescWarrantyDetails is the schema descriptor for warranty_details field.
	entityDescWarrantyDetails := entityFields[12].Descriptor()
	// entity.WarrantyDetailsValidator is a validator for the "warranty_details" field. It is called by the builders before save.
	entity.WarrantyDetailsValidator = entityDescWarrantyDetails.Validators[0].(func(string) error)
	// entityDescPurchasePrice is the schema descriptor for purchase_price field.
	entityDescPurchasePrice := entityFields[15].Descriptor()
	// entity.DefaultPurchasePrice holds the default value on creation for the purchase_price field.
	entity.DefaultPurchasePrice = entityDescPurchasePrice.Default.(float64)
	// entityDescSoldPrice is the schema descriptor for sold_price field.
	entityDescSoldPrice := entityFields[18].Descriptor()
	// entity.DefaultSoldPrice holds the default value on creation for the sold_price field.
	entity.DefaultSoldPrice = entityDescSoldPrice.Default.(float64)
	// entityDescSoldNotes is the schema descriptor for sold_notes field.
	entityDescSoldNotes := entityFields[19].Descriptor()
	// entity.SoldNotesValidator is a validator for the "sold_notes" field. It is called by the builders before save.
	entity.SoldNotesValidator = entityDescSoldNotes.Validators[0].(func(string) error)
	// entityDescID is the schema descriptor for id field.
	entityDescID := entityMixinFields0[0].Descriptor()
	// entity.DefaultID holds the default value on creation for the id field.
	entity.DefaultID = entityDescID.Default.(func() uuid.UUID)
	entityfieldMixin := schema.EntityField{}.Mixin()
	entityfieldMixinFields0 := entityfieldMixin[0].Fields()
	_ = entityfieldMixinFields0
	entityfieldMixinFields1 := entityfieldMixin[1].Fields()
	_ = entityfieldMixinFields1
	entityfieldFields := schema.EntityField{}.Fields()
	_ = entityfieldFields
	// entityfieldDescCreatedAt is the schema descriptor for created_at field.
	entityfieldDescCreatedAt := entityfieldMixinFields0[1].Descriptor()
	// entityfield.DefaultCreatedAt holds the default value on creation for the created_at field.
	entityfield.DefaultCreatedAt = entityfieldDescCreatedAt.Default.(func() time.Time)
	// entityfieldDescUpdatedAt is the schema descriptor for updated_at field.
	entityfieldDescUpdatedAt := entityfieldMixinFields0[2].Descriptor()
	// entityfield.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	entityfield.DefaultUpdatedAt = entityfieldDescUpdatedAt.Default.(func() time.Time)
	// entityfield.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	entityfield.UpdateDefaultUpdatedAt = entityfieldDescUpdatedAt.UpdateDefault.(func() time.Time)
	// entityfieldDescName is the schema descriptor for name field.
	entityfieldDescName := entityfieldMixinFields1[0].Descriptor()
	// entityfield.NameValidator is a validator for the "name" field. It is called by the builders before save.
	entityfield.NameValidator = func() func(string) error {
		validators := entityfieldDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// entityfieldDescDescription is the schema descriptor for description field.
	entityfieldDescDescription := entityfieldMixinFields1[1].Descriptor()
	// entityfield.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	entityfield.DescriptionValidator = entityfieldDescDescription.Validators[0].(func(string) error)
	// entityfieldDescTextValue is the schema descriptor for text_value field.
	entityfieldDescTextValue := entityfieldFields[1].Descriptor()
	// entityfield.TextValueValidator is a validator for the "text_value" field. It is called by the builders before save.
	entityfield.TextValueValidator = entityfieldDescTextValue.Validators[0].(func(string) error)
	// entityfieldDescBooleanValue is the schema descriptor for boolean_value field.
	entityfieldDescBooleanValue := entityfieldFields[3].Descriptor()
	// entityfield.DefaultBooleanValue holds the default value on creation for the boolean_value field.
	entityfield.DefaultBooleanValue = entityfieldDescBooleanValue.Default.(bool)
	// entityfieldDescTimeValue is the schema descriptor for time_value field.
	entityfieldDescTimeValue := entityfieldFields[4].Descriptor()
	// entityfield.DefaultTimeValue holds the default value on creation for the time_value field.
	entityfield.DefaultTimeValue = entityfieldDescTimeValue.Default.(func() time.Time)
	// entityfieldDescID is the schema descriptor for id field.
	entityfieldDescID := entityfieldMixinFields0[0].Descriptor()
	// entityfield.DefaultID holds the default value on creation for the id field.
	entityfield.DefaultID = entityfieldDescID.Default.(func() uuid.UUID)
	entitytemplateMixin := schema.EntityTemplate{}.Mixin()
	entitytemplateMixinFields0 := entitytemplateMixin[0].Fields()
	_ = entitytemplateMixinFields0
	entitytemplateMixinFields1 := entitytemplateMixin[1].Fields()
	_ = entitytemplateMixinFields1
	entitytemplateFields := schema.EntityTemplate{}.Fields()
	_ = entitytemplateFields
	// entitytemplateDescCreatedAt is the schema descriptor for created_at field.
	entitytemplateDescCreatedAt := entitytemplateMixinFields0[1].Descriptor()
	// entitytemplate.DefaultCreatedAt holds the default value on creation for the created_at field.
	entitytemplate.DefaultCreatedAt = entitytemplateDescCreatedAt.Default.(func() time.Time)
	// entitytemplateDescUpdatedAt is the schema descriptor for updated_at field.
	entitytemplateDescUpdatedAt := entitytemplateMixinFields0[2].Descriptor()
	// entitytemplate.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	entitytemplate.DefaultUpdatedAt = entitytemplateDescUpdatedAt.Default.(func() time.Time)
	// entitytemplate.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	entitytemplate.UpdateDefaultUpdatedAt = entitytemplateDescUpdatedAt.UpdateDefault.(func() time.Time)
	// entitytemplateDescName is the schema descriptor for name field.
	entitytemplateDescName := entitytemplateMixinFields1[0].Descriptor()
	// entitytemplate.NameValidator is a validator for the "name" field. It is called by the builders before save.
	entitytemplate.NameValidator = func() func(string) error {
		validators := entitytemplateDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// entitytemplateDescDescription is the schema descriptor for description field.
	entitytemplateDescDescription := entitytemplateMixinFields1[1].Descriptor()
	// entitytemplate.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	entitytemplate.DescriptionValidator = entitytemplateDescDescription.Validators[0].(func(string) error)
	// entitytemplateDescNotes is the schema descriptor for notes field.
	entitytemplateDescNotes := entitytemplateFields[0].Descriptor()
	// entitytemplate.NotesValidator is a validator for the "notes" field. It is called by the builders before save.
	entitytemplate.NotesValidator = entitytemplateDescNotes.Validators[0].(func(string) error)
	// entitytemplateDescDefaultQuantity is the schema descriptor for default_quantity field.
	entitytemplateDescDefaultQuantity := entitytemplateFields[1].Descriptor()
	// entitytemplate.DefaultDefaultQuantity holds the default value on creation for the default_quantity field.
	entitytemplate.DefaultDefaultQuantity = entitytemplateDescDefaultQuantity.Default.(float64)
	// entitytemplateDescDefaultInsured is the schema descriptor for default_insured field.
	entitytemplateDescDefaultInsured := entitytemplateFields[2].Descriptor()
	// entitytemplate.DefaultDefaultInsured holds the default value on creation for the default_insured field.
	entitytemplate.DefaultDefaultInsured = entitytemplateDescDefaultInsured.Default.(bool)
	// entitytemplateDescDefaultName is the schema descriptor for default_name field.
	entitytemplateDescDefaultName := entitytemplateFields[3].Descriptor()
	// entitytemplate.DefaultNameValidator is a validator for the "default_name" field. It is called by the builders before save.
	entitytemplate.DefaultNameValidator = entitytemplateDescDefaultName.Validators[0].(func(string) error)
	// entitytemplateDescDefaultDescription is the schema descriptor for default_description field.
	entitytemplateDescDefaultDescription := entitytemplateFields[4].Descriptor()
	// entitytemplate.DefaultDescriptionValidator is a validator for the "default_description" field. It is called by the builders before save.
	entitytemplate.DefaultDescriptionValidator = entitytemplateDescDefaultDescription.Validators[0].(func(string) error)
	// entitytemplateDescDefaultManufacturer is the schema descriptor for default_manufacturer field.
	entitytemplateDescDefaultManufacturer := entitytemplateFields[5].Descriptor()
	// entitytemplate.DefaultManufacturerValidator is a validator for the "default_manufacturer" field. It is called by the builders before save.
	entitytemplate.DefaultManufacturerValidator = entitytemplateDescDefaultManufacturer.Validators[0].(func(string) error)
	// entitytemplateDescDefaultModelNumber is the schema descriptor for default_model_number field.
	entitytemplateDescDefaultModelNumber := entitytemplateFields[6].Descriptor()
	// entitytemplate.DefaultModelNumberValidator is a validator for the "default_model_number" field. It is called by the builders before save.
	entitytemplate.DefaultModelNumberValidator = entitytemplateDescDefaultModelNumber.Validators[0].(func(string) error)
	// entitytemplateDescDefaultLifetimeWarranty is the schema descriptor for default_lifetime_warranty field.
	entitytemplateDescDefaultLifetimeWarranty := entitytemplateFields[7].Descriptor()
	// entitytemplate.DefaultDefaultLifetimeWarranty holds the default value on creation for the default_lifetime_warranty field.
	entitytemplate.DefaultDefaultLifetimeWarranty = entitytemplateDescDefaultLifetimeWarranty.Default.(bool)
	// entitytemplateDescDefaultWarrantyDetails is the schema descriptor for default_warranty_details field.
	entitytemplateDescDefaultWarrantyDetails := entitytemplateFields[8].Descriptor()
	// entitytemplate.DefaultWarrantyDetailsValidator is a validator for the "default_warranty_details" field. It is called by the builders before save.
	entitytemplate.DefaultWarrantyDetailsValidator = entitytemplateDescDefaultWarrantyDetails.Validators[0].(func(string) error)
	// entitytemplateDescIncludeWarrantyFields is the schema descriptor for include_warranty_fields field.
	entitytemplateDescIncludeWarrantyFields := entitytemplateFields[9].Descriptor()
	// entitytemplate.DefaultIncludeWarrantyFields holds the default value on creation for the include_warranty_fields field.
	entitytemplate.DefaultIncludeWarrantyFields = entitytemplateDescIncludeWarrantyFields.Default.(bool)
	// entitytemplateDescIncludePurchaseFields is the schema descriptor for include_purchase_fields field.
	entitytemplateDescIncludePurchaseFields := entitytemplateFields[10].Descriptor()
	// entitytemplate.DefaultIncludePurchaseFields holds the default value on creation for the include_purchase_fields field.
	entitytemplate.DefaultIncludePurchaseFields = entitytemplateDescIncludePurchaseFields.Default.(bool)
	// entitytemplateDescIncludeSoldFields is the schema descriptor for include_sold_fields field.
	entitytemplateDescIncludeSoldFields := entitytemplateFields[11].Descriptor()
	// entitytemplate.DefaultIncludeSoldFields holds the default value on creation for the include_sold_fields field.
	entitytemplate.DefaultIncludeSoldFields = entitytemplateDescIncludeSoldFields.Default.(bool)
	// entitytemplateDescID is the schema descriptor for id field.
	entitytemplateDescID := entitytemplateMixinFields0[0].Descriptor()
	// entitytemplate.DefaultID holds the default value on creation for the id field.
	entitytemplate.DefaultID = entitytemplateDescID.Default.(func() uuid.UUID)
	entitytypeMixin := schema.EntityType{}.Mixin()
	entitytypeMixinFields0 := entitytypeMixin[0].Fields()
	_ = entitytypeMixinFields0
	entitytypeMixinFields1 := entitytypeMixin[1].Fields()
	_ = entitytypeMixinFields1
	entitytypeFields := schema.EntityType{}.Fields()
	_ = entitytypeFields
	// entitytypeDescCreatedAt is the schema descriptor for created_at field.
	entitytypeDescCreatedAt := entitytypeMixinFields0[1].Descriptor()
	// entitytype.DefaultCreatedAt holds the default value on creation for the created_at field.
	entitytype.DefaultCreatedAt = entitytypeDescCreatedAt.Default.(func() time.Time)
	// entitytypeDescUpdatedAt is the schema descriptor for updated_at field.
	entitytypeDescUpdatedAt := entitytypeMixinFields0[2].Descriptor()
	// entitytype.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	entitytype.DefaultUpdatedAt = entitytypeDescUpdatedAt.Default.(func() time.Time)
	// entitytype.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	entitytype.UpdateDefaultUpdatedAt = entitytypeDescUpdatedAt.UpdateDefault.(func() time.Time)
	// entitytypeDescName is the schema descriptor for name field.
	entitytypeDescName := entitytypeMixinFields1[0].Descriptor()
	// entitytype.NameValidator is a validator for the "name" field. It is called by the builders before save.
	entitytype.NameValidator = func() func(string) error {
		validators := entitytypeDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// entitytypeDescDescription is the schema descriptor for description field.
	entitytypeDescDescription := entitytypeMixinFields1[1].Descriptor()
	// entitytype.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	entitytype.DescriptionValidator = entitytypeDescDescription.Validators[0].(func(string) error)
	// entitytypeDescIsLocation is the schema descriptor for is_location field.
	entitytypeDescIsLocation := entitytypeFields[0].Descriptor()
	// entitytype.DefaultIsLocation holds the default value on creation for the is_location field.
	entitytype.DefaultIsLocation = entitytypeDescIsLocation.Default.(bool)
	// entitytypeDescIcon is the schema descriptor for icon field.
	entitytypeDescIcon := entitytypeFields[1].Descriptor()
	// entitytype.IconValidator is a validator for the "icon" field. It is called by the builders before save.
	entitytype.IconValidator = entitytypeDescIcon.Validators[0].(func(string) error)
	// entitytypeDescID is the schema descriptor for id field.
	entitytypeDescID := entitytypeMixinFields0[0].Descriptor()
	// entitytype.DefaultID holds the default value on creation for the id field.
	entitytype.DefaultID = entitytypeDescID.Default.(func() uuid.UUID)
	exportMixin := schema.Export{}.Mixin()
	exportMixinFields0 := exportMixin[0].Fields()
	_ = exportMixinFields0
	exportFields := schema.Export{}.Fields()
	_ = exportFields
	// exportDescCreatedAt is the schema descriptor for created_at field.
	exportDescCreatedAt := exportMixinFields0[1].Descriptor()
	// export.DefaultCreatedAt holds the default value on creation for the created_at field.
	export.DefaultCreatedAt = exportDescCreatedAt.Default.(func() time.Time)
	// exportDescUpdatedAt is the schema descriptor for updated_at field.
	exportDescUpdatedAt := exportMixinFields0[2].Descriptor()
	// export.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	export.DefaultUpdatedAt = exportDescUpdatedAt.Default.(func() time.Time)
	// export.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	export.UpdateDefaultUpdatedAt = exportDescUpdatedAt.UpdateDefault.(func() time.Time)
	// exportDescProgress is the schema descriptor for progress field.
	exportDescProgress := exportFields[2].Descriptor()
	// export.DefaultProgress holds the default value on creation for the progress field.
	export.DefaultProgress = exportDescProgress.Default.(int)
	// exportDescSizeBytes is the schema descriptor for size_bytes field.
	exportDescSizeBytes := exportFields[4].Descriptor()
	// export.DefaultSizeBytes holds the default value on creation for the size_bytes field.
	export.DefaultSizeBytes = exportDescSizeBytes.Default.(int64)
	// exportDescError is the schema descriptor for error field.
	exportDescError := exportFields[5].Descriptor()
	// export.ErrorValidator is a validator for the "error" field. It is called by the builders before save.
	export.ErrorValidator = exportDescError.Validators[0].(func(string) error)
	// exportDescID is the schema descriptor for id field.
	exportDescID := exportMixinFields0[0].Descriptor()
	// export.DefaultID holds the default value on creation for the id field.
	export.DefaultID = exportDescID.Default.(func() uuid.UUID)
	groupMixin := schema.Group{}.Mixin()
	groupMixinFields0 := groupMixin[0].Fields()
	_ = groupMixinFields0
	groupFields := schema.Group{}.Fields()
	_ = groupFields
	// groupDescCreatedAt is the schema descriptor for created_at field.
	groupDescCreatedAt := groupMixinFields0[1].Descriptor()
	// group.DefaultCreatedAt holds the default value on creation for the created_at field.
	group.DefaultCreatedAt = groupDescCreatedAt.Default.(func() time.Time)
	// groupDescUpdatedAt is the schema descriptor for updated_at field.
	groupDescUpdatedAt := groupMixinFields0[2].Descriptor()
	// group.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	group.DefaultUpdatedAt = groupDescUpdatedAt.Default.(func() time.Time)
	// group.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	group.UpdateDefaultUpdatedAt = groupDescUpdatedAt.UpdateDefault.(func() time.Time)
	// groupDescName is the schema descriptor for name field.
	groupDescName := groupFields[0].Descriptor()
	// group.NameValidator is a validator for the "name" field. It is called by the builders before save.
	group.NameValidator = func() func(string) error {
		validators := groupDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// groupDescCurrency is the schema descriptor for currency field.
	groupDescCurrency := groupFields[1].Descriptor()
	// group.DefaultCurrency holds the default value on creation for the currency field.
	group.DefaultCurrency = groupDescCurrency.Default.(string)
	// groupDescID is the schema descriptor for id field.
	groupDescID := groupMixinFields0[0].Descriptor()
	// group.DefaultID holds the default value on creation for the id field.
	group.DefaultID = groupDescID.Default.(func() uuid.UUID)
	groupinvitationtokenMixin := schema.GroupInvitationToken{}.Mixin()
	groupinvitationtokenMixinFields0 := groupinvitationtokenMixin[0].Fields()
	_ = groupinvitationtokenMixinFields0
	groupinvitationtokenFields := schema.GroupInvitationToken{}.Fields()
	_ = groupinvitationtokenFields
	// groupinvitationtokenDescCreatedAt is the schema descriptor for created_at field.
	groupinvitationtokenDescCreatedAt := groupinvitationtokenMixinFields0[1].Descriptor()
	// groupinvitationtoken.DefaultCreatedAt holds the default value on creation for the created_at field.
	groupinvitationtoken.DefaultCreatedAt = groupinvitationtokenDescCreatedAt.Default.(func() time.Time)
	// groupinvitationtokenDescUpdatedAt is the schema descriptor for updated_at field.
	groupinvitationtokenDescUpdatedAt := groupinvitationtokenMixinFields0[2].Descriptor()
	// groupinvitationtoken.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	groupinvitationtoken.DefaultUpdatedAt = groupinvitationtokenDescUpdatedAt.Default.(func() time.Time)
	// groupinvitationtoken.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	groupinvitationtoken.UpdateDefaultUpdatedAt = groupinvitationtokenDescUpdatedAt.UpdateDefault.(func() time.Time)
	// groupinvitationtokenDescExpiresAt is the schema descriptor for expires_at field.
	groupinvitationtokenDescExpiresAt := groupinvitationtokenFields[1].Descriptor()
	// groupinvitationtoken.DefaultExpiresAt holds the default value on creation for the expires_at field.
	groupinvitationtoken.DefaultExpiresAt = groupinvitationtokenDescExpiresAt.Default.(func() time.Time)
	// groupinvitationtokenDescUses is the schema descriptor for uses field.
	groupinvitationtokenDescUses := groupinvitationtokenFields[2].Descriptor()
	// groupinvitationtoken.DefaultUses holds the default value on creation for the uses field.
	groupinvitationtoken.DefaultUses = groupinvitationtokenDescUses.Default.(int)
	// groupinvitationtokenDescID is the schema descriptor for id field.
	groupinvitationtokenDescID := groupinvitationtokenMixinFields0[0].Descriptor()
	// groupinvitationtoken.DefaultID holds the default value on creation for the id field.
	groupinvitationtoken.DefaultID = groupinvitationtokenDescID.Default.(func() uuid.UUID)
	maintenanceentryMixin := schema.MaintenanceEntry{}.Mixin()
	maintenanceentryMixinFields0 := maintenanceentryMixin[0].Fields()
	_ = maintenanceentryMixinFields0
	maintenanceentryFields := schema.MaintenanceEntry{}.Fields()
	_ = maintenanceentryFields
	// maintenanceentryDescCreatedAt is the schema descriptor for created_at field.
	maintenanceentryDescCreatedAt := maintenanceentryMixinFields0[1].Descriptor()
	// maintenanceentry.DefaultCreatedAt holds the default value on creation for the created_at field.
	maintenanceentry.DefaultCreatedAt = maintenanceentryDescCreatedAt.Default.(func() time.Time)
	// maintenanceentryDescUpdatedAt is the schema descriptor for updated_at field.
	maintenanceentryDescUpdatedAt := maintenanceentryMixinFields0[2].Descriptor()
	// maintenanceentry.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	maintenanceentry.DefaultUpdatedAt = maintenanceentryDescUpdatedAt.Default.(func() time.Time)
	// maintenanceentry.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	maintenanceentry.UpdateDefaultUpdatedAt = maintenanceentryDescUpdatedAt.UpdateDefault.(func() time.Time)
	// maintenanceentryDescName is the schema descriptor for name field.
	maintenanceentryDescName := maintenanceentryFields[3].Descriptor()
	// maintenanceentry.NameValidator is a validator for the "name" field. It is called by the builders before save.
	maintenanceentry.NameValidator = func() func(string) error {
		validators := maintenanceentryDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// maintenanceentryDescDescription is the schema descriptor for description field.
	maintenanceentryDescDescription := maintenanceentryFields[4].Descriptor()
	// maintenanceentry.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	maintenanceentry.DescriptionValidator = maintenanceentryDescDescription.Validators[0].(func(string) error)
	// maintenanceentryDescCost is the schema descriptor for cost field.
	maintenanceentryDescCost := maintenanceentryFields[5].Descriptor()
	// maintenanceentry.DefaultCost holds the default value on creation for the cost field.
	maintenanceentry.DefaultCost = maintenanceentryDescCost.Default.(float64)
	// maintenanceentryDescID is the schema descriptor for id field.
	maintenanceentryDescID := maintenanceentryMixinFields0[0].Descriptor()
	// maintenanceentry.DefaultID holds the default value on creation for the id field.
	maintenanceentry.DefaultID = maintenanceentryDescID.Default.(func() uuid.UUID)
	notifierMixin := schema.Notifier{}.Mixin()
	notifierMixinFields0 := notifierMixin[0].Fields()
	_ = notifierMixinFields0
	notifierFields := schema.Notifier{}.Fields()
	_ = notifierFields
	// notifierDescCreatedAt is the schema descriptor for created_at field.
	notifierDescCreatedAt := notifierMixinFields0[1].Descriptor()
	// notifier.DefaultCreatedAt holds the default value on creation for the created_at field.
	notifier.DefaultCreatedAt = notifierDescCreatedAt.Default.(func() time.Time)
	// notifierDescUpdatedAt is the schema descriptor for updated_at field.
	notifierDescUpdatedAt := notifierMixinFields0[2].Descriptor()
	// notifier.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	notifier.DefaultUpdatedAt = notifierDescUpdatedAt.Default.(func() time.Time)
	// notifier.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	notifier.UpdateDefaultUpdatedAt = notifierDescUpdatedAt.UpdateDefault.(func() time.Time)
	// notifierDescName is the schema descriptor for name field.
	notifierDescName := notifierFields[0].Descriptor()
	// notifier.NameValidator is a validator for the "name" field. It is called by the builders before save.
	notifier.NameValidator = func() func(string) error {
		validators := notifierDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// notifierDescURL is the schema descriptor for url field.
	notifierDescURL := notifierFields[1].Descriptor()
	// notifier.URLValidator is a validator for the "url" field. It is called by the builders before save.
	notifier.URLValidator = func() func(string) error {
		validators := notifierDescURL.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(url string) error {
			for _, fn := range fns {
				if err := fn(url); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// notifierDescIsActive is the schema descriptor for is_active field.
	notifierDescIsActive := notifierFields[2].Descriptor()
	// notifier.DefaultIsActive holds the default value on creation for the is_active field.
	notifier.DefaultIsActive = notifierDescIsActive.Default.(bool)
	// notifierDescID is the schema descriptor for id field.
	notifierDescID := notifierMixinFields0[0].Descriptor()
	// notifier.DefaultID holds the default value on creation for the id field.
	notifier.DefaultID = notifierDescID.Default.(func() uuid.UUID)
	passwordresettokensMixin := schema.PasswordResetTokens{}.Mixin()
	passwordresettokensMixinFields0 := passwordresettokensMixin[0].Fields()
	_ = passwordresettokensMixinFields0
	passwordresettokensFields := schema.PasswordResetTokens{}.Fields()
	_ = passwordresettokensFields
	// passwordresettokensDescCreatedAt is the schema descriptor for created_at field.
	passwordresettokensDescCreatedAt := passwordresettokensMixinFields0[1].Descriptor()
	// passwordresettokens.DefaultCreatedAt holds the default value on creation for the created_at field.
	passwordresettokens.DefaultCreatedAt = passwordresettokensDescCreatedAt.Default.(func() time.Time)
	// passwordresettokensDescUpdatedAt is the schema descriptor for updated_at field.
	passwordresettokensDescUpdatedAt := passwordresettokensMixinFields0[2].Descriptor()
	// passwordresettokens.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	passwordresettokens.DefaultUpdatedAt = passwordresettokensDescUpdatedAt.Default.(func() time.Time)
	// passwordresettokens.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	passwordresettokens.UpdateDefaultUpdatedAt = passwordresettokensDescUpdatedAt.UpdateDefault.(func() time.Time)
	// passwordresettokensDescExpiresAt is the schema descriptor for expires_at field.
	passwordresettokensDescExpiresAt := passwordresettokensFields[2].Descriptor()
	// passwordresettokens.DefaultExpiresAt holds the default value on creation for the expires_at field.
	passwordresettokens.DefaultExpiresAt = passwordresettokensDescExpiresAt.Default.(func() time.Time)
	// passwordresettokensDescID is the schema descriptor for id field.
	passwordresettokensDescID := passwordresettokensMixinFields0[0].Descriptor()
	// passwordresettokens.DefaultID holds the default value on creation for the id field.
	passwordresettokens.DefaultID = passwordresettokensDescID.Default.(func() uuid.UUID)
	tagMixin := schema.Tag{}.Mixin()
	tagMixinFields0 := tagMixin[0].Fields()
	_ = tagMixinFields0
	tagMixinFields1 := tagMixin[1].Fields()
	_ = tagMixinFields1
	tagFields := schema.Tag{}.Fields()
	_ = tagFields
	// tagDescCreatedAt is the schema descriptor for created_at field.
	tagDescCreatedAt := tagMixinFields0[1].Descriptor()
	// tag.DefaultCreatedAt holds the default value on creation for the created_at field.
	tag.DefaultCreatedAt = tagDescCreatedAt.Default.(func() time.Time)
	// tagDescUpdatedAt is the schema descriptor for updated_at field.
	tagDescUpdatedAt := tagMixinFields0[2].Descriptor()
	// tag.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	tag.DefaultUpdatedAt = tagDescUpdatedAt.Default.(func() time.Time)
	// tag.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	tag.UpdateDefaultUpdatedAt = tagDescUpdatedAt.UpdateDefault.(func() time.Time)
	// tagDescName is the schema descriptor for name field.
	tagDescName := tagMixinFields1[0].Descriptor()
	// tag.NameValidator is a validator for the "name" field. It is called by the builders before save.
	tag.NameValidator = func() func(string) error {
		validators := tagDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// tagDescDescription is the schema descriptor for description field.
	tagDescDescription := tagMixinFields1[1].Descriptor()
	// tag.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	tag.DescriptionValidator = tagDescDescription.Validators[0].(func(string) error)
	// tagDescColor is the schema descriptor for color field.
	tagDescColor := tagFields[0].Descriptor()
	// tag.ColorValidator is a validator for the "color" field. It is called by the builders before save.
	tag.ColorValidator = tagDescColor.Validators[0].(func(string) error)
	// tagDescIcon is the schema descriptor for icon field.
	tagDescIcon := tagFields[1].Descriptor()
	// tag.IconValidator is a validator for the "icon" field. It is called by the builders before save.
	tag.IconValidator = tagDescIcon.Validators[0].(func(string) error)
	// tagDescID is the schema descriptor for id field.
	tagDescID := tagMixinFields0[0].Descriptor()
	// tag.DefaultID holds the default value on creation for the id field.
	tag.DefaultID = tagDescID.Default.(func() uuid.UUID)
	templatefieldMixin := schema.TemplateField{}.Mixin()
	templatefieldMixinFields0 := templatefieldMixin[0].Fields()
	_ = templatefieldMixinFields0
	templatefieldMixinFields1 := templatefieldMixin[1].Fields()
	_ = templatefieldMixinFields1
	templatefieldFields := schema.TemplateField{}.Fields()
	_ = templatefieldFields
	// templatefieldDescCreatedAt is the schema descriptor for created_at field.
	templatefieldDescCreatedAt := templatefieldMixinFields0[1].Descriptor()
	// templatefield.DefaultCreatedAt holds the default value on creation for the created_at field.
	templatefield.DefaultCreatedAt = templatefieldDescCreatedAt.Default.(func() time.Time)
	// templatefieldDescUpdatedAt is the schema descriptor for updated_at field.
	templatefieldDescUpdatedAt := templatefieldMixinFields0[2].Descriptor()
	// templatefield.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	templatefield.DefaultUpdatedAt = templatefieldDescUpdatedAt.Default.(func() time.Time)
	// templatefield.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	templatefield.UpdateDefaultUpdatedAt = templatefieldDescUpdatedAt.UpdateDefault.(func() time.Time)
	// templatefieldDescName is the schema descriptor for name field.
	templatefieldDescName := templatefieldMixinFields1[0].Descriptor()
	// templatefield.NameValidator is a validator for the "name" field. It is called by the builders before save.
	templatefield.NameValidator = func() func(string) error {
		validators := templatefieldDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// templatefieldDescDescription is the schema descriptor for description field.
	templatefieldDescDescription := templatefieldMixinFields1[1].Descriptor()
	// templatefield.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	templatefield.DescriptionValidator = templatefieldDescDescription.Validators[0].(func(string) error)
	// templatefieldDescTextValue is the schema descriptor for text_value field.
	templatefieldDescTextValue := templatefieldFields[1].Descriptor()
	// templatefield.TextValueValidator is a validator for the "text_value" field. It is called by the builders before save.
	templatefield.TextValueValidator = templatefieldDescTextValue.Validators[0].(func(string) error)
	// templatefieldDescBooleanValue is the schema descriptor for boolean_value field.
	templatefieldDescBooleanValue := templatefieldFields[3].Descriptor()
	// templatefield.DefaultBooleanValue holds the default value on creation for the boolean_value field.
	templatefield.DefaultBooleanValue = templatefieldDescBooleanValue.Default.(bool)
	// templatefieldDescTimeValue is the schema descriptor for time_value field.
	templatefieldDescTimeValue := templatefieldFields[4].Descriptor()
	// templatefield.DefaultTimeValue holds the default value on creation for the time_value field.
	templatefield.DefaultTimeValue = templatefieldDescTimeValue.Default.(func() time.Time)
	// templatefieldDescID is the schema descriptor for id field.
	templatefieldDescID := templatefieldMixinFields0[0].Descriptor()
	// templatefield.DefaultID holds the default value on creation for the id field.
	templatefield.DefaultID = templatefieldDescID.Default.(func() uuid.UUID)
	userMixin := schema.User{}.Mixin()
	userMixinFields0 := userMixin[0].Fields()
	_ = userMixinFields0
	userFields := schema.User{}.Fields()
	_ = userFields
	// userDescCreatedAt is the schema descriptor for created_at field.
	userDescCreatedAt := userMixinFields0[1].Descriptor()
	// user.DefaultCreatedAt holds the default value on creation for the created_at field.
	user.DefaultCreatedAt = userDescCreatedAt.Default.(func() time.Time)
	// userDescUpdatedAt is the schema descriptor for updated_at field.
	userDescUpdatedAt := userMixinFields0[2].Descriptor()
	// user.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() time.Time)
	// user.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	user.UpdateDefaultUpdatedAt = userDescUpdatedAt.UpdateDefault.(func() time.Time)
	// userDescName is the schema descriptor for name field.
	userDescName := userFields[0].Descriptor()
	// user.NameValidator is a validator for the "name" field. It is called by the builders before save.
	user.NameValidator = func() func(string) error {
		validators := userDescName.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(name string) error {
			for _, fn := range fns {
				if err := fn(name); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// userDescEmail is the schema descriptor for email field.
	userDescEmail := userFields[1].Descriptor()
	// user.EmailValidator is a validator for the "email" field. It is called by the builders before save.
	user.EmailValidator = func() func(string) error {
		validators := userDescEmail.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(email string) error {
			for _, fn := range fns {
				if err := fn(email); err != nil {
					return err
				}
			}
			return nil
		}
	}()
	// userDescPassword is the schema descriptor for password field.
	userDescPassword := userFields[2].Descriptor()
	// user.PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	user.PasswordValidator = userDescPassword.Validators[0].(func(string) error)
	// userDescIsSuperuser is the schema descriptor for is_superuser field.
	userDescIsSuperuser := userFields[3].Descriptor()
	// user.DefaultIsSuperuser holds the default value on creation for the is_superuser field.
	user.DefaultIsSuperuser = userDescIsSuperuser.Default.(bool)
	// userDescSuperuser is the schema descriptor for superuser field.
	userDescSuperuser := userFields[4].Descriptor()
	// user.DefaultSuperuser holds the default value on creation for the superuser field.
	user.DefaultSuperuser = userDescSuperuser.Default.(bool)
	// userDescID is the schema descriptor for id field.
	userDescID := userMixinFields0[0].Descriptor()
	// user.DefaultID holds the default value on creation for the id field.
	user.DefaultID = userDescID.Default.(func() uuid.UUID)
	usergroupFields := schema.UserGroup{}.Fields()
	_ = usergroupFields
}