// Code generated by ent, DO NOT EDIT.

package runtime

import (
	"convert-server/domain/entity/serversitemicros/docserverapp"
	"convert-server/domain/entity/serversitemicros/docservercallback"
	"convert-server/domain/entity/serversitemicros/docservergetproject"
	"convert-server/domain/entity/serversitemicros/docserverproject"
	"convert-server/domain/entity/serversitemicros/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() {
	docserverappHooks := schema.DocServerApp{}.Hooks()
	docserverapp.Hooks[0] = docserverappHooks[0]
	docserverapp.Hooks[1] = docserverappHooks[1]
	docserverappFields := schema.DocServerApp{}.Fields()
	_ = docserverappFields
	// docserverappDescName is the schema descriptor for name field.
	docserverappDescName := docserverappFields[2].Descriptor()
	// docserverapp.DefaultName holds the default value on creation for the name field.
	docserverapp.DefaultName = docserverappDescName.Default.(string)
	// docserverappDescCreatedAt is the schema descriptor for created_at field.
	docserverappDescCreatedAt := docserverappFields[3].Descriptor()
	// docserverapp.UpdateDefaultCreatedAt holds the default value on update for the created_at field.
	docserverapp.UpdateDefaultCreatedAt = docserverappDescCreatedAt.UpdateDefault.(func() time.Time)
	docservercallbackHooks := schema.DocServerCallback{}.Hooks()
	docservercallback.Hooks[0] = docservercallbackHooks[0]
	docservercallback.Hooks[1] = docservercallbackHooks[1]
	docservercallbackFields := schema.DocServerCallback{}.Fields()
	_ = docservercallbackFields
	// docservercallbackDescServerProjectID is the schema descriptor for server_project_id field.
	docservercallbackDescServerProjectID := docservercallbackFields[1].Descriptor()
	// docservercallback.DefaultServerProjectID holds the default value on creation for the server_project_id field.
	docservercallback.DefaultServerProjectID = docservercallbackDescServerProjectID.Default.(int32)
	// docservercallbackDescCallbackURL is the schema descriptor for callback_url field.
	docservercallbackDescCallbackURL := docservercallbackFields[2].Descriptor()
	// docservercallback.DefaultCallbackURL holds the default value on creation for the callback_url field.
	docservercallback.DefaultCallbackURL = docservercallbackDescCallbackURL.Default.(string)
	// docservercallbackDescCallbackData is the schema descriptor for callback_data field.
	docservercallbackDescCallbackData := docservercallbackFields[3].Descriptor()
	// docservercallback.DefaultCallbackData holds the default value on creation for the callback_data field.
	docservercallback.DefaultCallbackData = docservercallbackDescCallbackData.Default.(string)
	// docservercallbackDescCallbackType is the schema descriptor for callback_type field.
	docservercallbackDescCallbackType := docservercallbackFields[4].Descriptor()
	// docservercallback.DefaultCallbackType holds the default value on creation for the callback_type field.
	docservercallback.DefaultCallbackType = docservercallbackDescCallbackType.Default.(int8)
	// docservercallbackDescCurrNum is the schema descriptor for curr_num field.
	docservercallbackDescCurrNum := docservercallbackFields[6].Descriptor()
	// docservercallback.DefaultCurrNum holds the default value on creation for the curr_num field.
	docservercallback.DefaultCurrNum = docservercallbackDescCurrNum.Default.(int32)
	docservergetprojectFields := schema.DocServerGetProject{}.Fields()
	_ = docservergetprojectFields
	// docservergetprojectDescServerProjectID is the schema descriptor for server_project_id field.
	docservergetprojectDescServerProjectID := docservergetprojectFields[1].Descriptor()
	// docservergetproject.DefaultServerProjectID holds the default value on creation for the server_project_id field.
	docservergetproject.DefaultServerProjectID = docservergetprojectDescServerProjectID.Default.(int32)
	// docservergetprojectDescCurrNum is the schema descriptor for curr_num field.
	docservergetprojectDescCurrNum := docservergetprojectFields[2].Descriptor()
	// docservergetproject.DefaultCurrNum holds the default value on creation for the curr_num field.
	docservergetproject.DefaultCurrNum = docservergetprojectDescCurrNum.Default.(int32)
	// docservergetprojectDescAliResult is the schema descriptor for ali_result field.
	docservergetprojectDescAliResult := docservergetprojectFields[4].Descriptor()
	// docservergetproject.AliResultValidator is a validator for the "ali_result" field. It is called by the builders before save.
	docservergetproject.AliResultValidator = docservergetprojectDescAliResult.Validators[0].(func(string) error)
	docserverprojectHooks := schema.DocServerProject{}.Hooks()
	docserverproject.Hooks[0] = docserverprojectHooks[0]
	docserverproject.Hooks[1] = docserverprojectHooks[1]
	docserverproject.Hooks[2] = docserverprojectHooks[2]
	docserverproject.Hooks[3] = docserverprojectHooks[3]
	docserverprojectFields := schema.DocServerProject{}.Fields()
	_ = docserverprojectFields
	// docserverprojectDescProjectName is the schema descriptor for project_name field.
	docserverprojectDescProjectName := docserverprojectFields[1].Descriptor()
	// docserverproject.DefaultProjectName holds the default value on creation for the project_name field.
	docserverproject.DefaultProjectName = docserverprojectDescProjectName.Default.(string)
	// docserverprojectDescSourceType is the schema descriptor for source_type field.
	docserverprojectDescSourceType := docserverprojectFields[2].Descriptor()
	// docserverproject.DefaultSourceType holds the default value on creation for the source_type field.
	docserverproject.DefaultSourceType = docserverprojectDescSourceType.Default.(string)
	// docserverprojectDescTargetType is the schema descriptor for target_type field.
	docserverprojectDescTargetType := docserverprojectFields[3].Descriptor()
	// docserverproject.DefaultTargetType holds the default value on creation for the target_type field.
	docserverproject.DefaultTargetType = docserverprojectDescTargetType.Default.(string)
	// docserverprojectDescSourceURL is the schema descriptor for source_url field.
	docserverprojectDescSourceURL := docserverprojectFields[4].Descriptor()
	// docserverproject.SourceURLValidator is a validator for the "source_url" field. It is called by the builders before save.
	docserverproject.SourceURLValidator = docserverprojectDescSourceURL.Validators[0].(func(string) error)
	// docserverprojectDescTargetURL is the schema descriptor for target_url field.
	docserverprojectDescTargetURL := docserverprojectFields[5].Descriptor()
	// docserverproject.TargetURLValidator is a validator for the "target_url" field. It is called by the builders before save.
	docserverproject.TargetURLValidator = docserverprojectDescTargetURL.Validators[0].(func(string) error)
	// docserverprojectDescTaskID is the schema descriptor for task_id field.
	docserverprojectDescTaskID := docserverprojectFields[6].Descriptor()
	// docserverproject.DefaultTaskID holds the default value on creation for the task_id field.
	docserverproject.DefaultTaskID = docserverprojectDescTaskID.Default.(string)
	// docserverprojectDescAppID is the schema descriptor for app_id field.
	docserverprojectDescAppID := docserverprojectFields[7].Descriptor()
	// docserverproject.DefaultAppID holds the default value on creation for the app_id field.
	docserverproject.DefaultAppID = docserverprojectDescAppID.Default.(int32)
	// docserverprojectDescStatus is the schema descriptor for status field.
	docserverprojectDescStatus := docserverprojectFields[8].Descriptor()
	// docserverproject.DefaultStatus holds the default value on creation for the status field.
	docserverproject.DefaultStatus = docserverprojectDescStatus.Default.(int32)
}

const (
	Version = "v0.12.5"                                         // Version of ent codegen.
	Sum     = "h1:KREM5E4CSoej4zeGa88Ou/gfturAnpUv0mzAjch1sj4=" // Sum of ent codegen.
)
