// Code generated by ent, DO NOT EDIT.

package models

import (
	"juwan-backend/app/dispute/rpc/internal/models/disputes"
	"juwan-backend/app/dispute/rpc/internal/models/disputetimeline"
	"juwan-backend/app/dispute/rpc/internal/models/schema"
	"time"
)

// 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() {
	disputetimelineFields := schema.DisputeTimeline{}.Fields()
	_ = disputetimelineFields
	// disputetimelineDescEventType is the schema descriptor for event_type field.
	disputetimelineDescEventType := disputetimelineFields[2].Descriptor()
	// disputetimeline.EventTypeValidator is a validator for the "event_type" field. It is called by the builders before save.
	disputetimeline.EventTypeValidator = disputetimelineDescEventType.Validators[0].(func(string) error)
	// disputetimelineDescActorName is the schema descriptor for actor_name field.
	disputetimelineDescActorName := disputetimelineFields[4].Descriptor()
	// disputetimeline.ActorNameValidator is a validator for the "actor_name" field. It is called by the builders before save.
	disputetimeline.ActorNameValidator = disputetimelineDescActorName.Validators[0].(func(string) error)
	// disputetimelineDescCreatedAt is the schema descriptor for created_at field.
	disputetimelineDescCreatedAt := disputetimelineFields[6].Descriptor()
	// disputetimeline.DefaultCreatedAt holds the default value on creation for the created_at field.
	disputetimeline.DefaultCreatedAt = disputetimelineDescCreatedAt.Default.(func() time.Time)
	disputesFields := schema.Disputes{}.Fields()
	_ = disputesFields
	// disputesDescInitiatorName is the schema descriptor for initiator_name field.
	disputesDescInitiatorName := disputesFields[3].Descriptor()
	// disputes.InitiatorNameValidator is a validator for the "initiator_name" field. It is called by the builders before save.
	disputes.InitiatorNameValidator = disputesDescInitiatorName.Validators[0].(func(string) error)
	// disputesDescStatus is the schema descriptor for status field.
	disputesDescStatus := disputesFields[7].Descriptor()
	// disputes.DefaultStatus holds the default value on creation for the status field.
	disputes.DefaultStatus = disputesDescStatus.Default.(string)
	// disputes.StatusValidator is a validator for the "status" field. It is called by the builders before save.
	disputes.StatusValidator = disputesDescStatus.Validators[0].(func(string) error)
	// disputesDescResult is the schema descriptor for result field.
	disputesDescResult := disputesFields[8].Descriptor()
	// disputes.ResultValidator is a validator for the "result" field. It is called by the builders before save.
	disputes.ResultValidator = disputesDescResult.Validators[0].(func(string) error)
	// disputesDescCreatedAt is the schema descriptor for created_at field.
	disputesDescCreatedAt := disputesFields[15].Descriptor()
	// disputes.DefaultCreatedAt holds the default value on creation for the created_at field.
	disputes.DefaultCreatedAt = disputesDescCreatedAt.Default.(func() time.Time)
	// disputesDescUpdatedAt is the schema descriptor for updated_at field.
	disputesDescUpdatedAt := disputesFields[16].Descriptor()
	// disputes.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	disputes.DefaultUpdatedAt = disputesDescUpdatedAt.Default.(func() time.Time)
	// disputes.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	disputes.UpdateDefaultUpdatedAt = disputesDescUpdatedAt.UpdateDefault.(func() time.Time)
}
