// Code generated by ent, DO NOT EDIT.

package runtime

import (
	"time"

	"github.com/chaitin/MonkeyCode/backend/consts"
	"github.com/chaitin/MonkeyCode/backend/db/admin"
	"github.com/chaitin/MonkeyCode/backend/db/adminloginhistory"
	"github.com/chaitin/MonkeyCode/backend/db/aiemployee"
	"github.com/chaitin/MonkeyCode/backend/db/aitask"
	"github.com/chaitin/MonkeyCode/backend/db/apikey"
	"github.com/chaitin/MonkeyCode/backend/db/billingplan"
	"github.com/chaitin/MonkeyCode/backend/db/billingquota"
	"github.com/chaitin/MonkeyCode/backend/db/billingrecord"
	"github.com/chaitin/MonkeyCode/backend/db/billingusage"
	"github.com/chaitin/MonkeyCode/backend/db/extension"
	"github.com/chaitin/MonkeyCode/backend/db/invitecode"
	"github.com/chaitin/MonkeyCode/backend/db/license"
	"github.com/chaitin/MonkeyCode/backend/db/model"
	"github.com/chaitin/MonkeyCode/backend/db/modelprovider"
	"github.com/chaitin/MonkeyCode/backend/db/modelprovidermodel"
	"github.com/chaitin/MonkeyCode/backend/db/role"
	"github.com/chaitin/MonkeyCode/backend/db/securityscanning"
	"github.com/chaitin/MonkeyCode/backend/db/securityscanningresult"
	"github.com/chaitin/MonkeyCode/backend/db/setting"
	"github.com/chaitin/MonkeyCode/backend/db/task"
	"github.com/chaitin/MonkeyCode/backend/db/taskrecord"
	"github.com/chaitin/MonkeyCode/backend/db/user"
	"github.com/chaitin/MonkeyCode/backend/db/usergroup"
	"github.com/chaitin/MonkeyCode/backend/db/useridentity"
	"github.com/chaitin/MonkeyCode/backend/db/userloginhistory"
	"github.com/chaitin/MonkeyCode/backend/db/workspace"
	"github.com/chaitin/MonkeyCode/backend/db/workspacefile"
	"github.com/chaitin/MonkeyCode/backend/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() {
	aiemployeeFields := schema.AIEmployee{}.Fields()
	_ = aiemployeeFields
	// aiemployeeDescCreatedAt is the schema descriptor for created_at field.
	aiemployeeDescCreatedAt := aiemployeeFields[13].Descriptor()
	// aiemployee.DefaultCreatedAt holds the default value on creation for the created_at field.
	aiemployee.DefaultCreatedAt = aiemployeeDescCreatedAt.Default.(func() time.Time)
	// aiemployeeDescUpdatedAt is the schema descriptor for updated_at field.
	aiemployeeDescUpdatedAt := aiemployeeFields[14].Descriptor()
	// aiemployee.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	aiemployee.DefaultUpdatedAt = aiemployeeDescUpdatedAt.Default.(func() time.Time)
	// aiemployee.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	aiemployee.UpdateDefaultUpdatedAt = aiemployeeDescUpdatedAt.UpdateDefault.(func() time.Time)
	aitaskFields := schema.AITask{}.Fields()
	_ = aitaskFields
	// aitaskDescStatus is the schema descriptor for status field.
	aitaskDescStatus := aitaskFields[2].Descriptor()
	// aitask.DefaultStatus holds the default value on creation for the status field.
	aitask.DefaultStatus = aitaskDescStatus.Default.(string)
	// aitaskDescCreatedAt is the schema descriptor for created_at field.
	aitaskDescCreatedAt := aitaskFields[6].Descriptor()
	// aitask.DefaultCreatedAt holds the default value on creation for the created_at field.
	aitask.DefaultCreatedAt = aitaskDescCreatedAt.Default.(func() time.Time)
	// aitaskDescUpdatedAt is the schema descriptor for updated_at field.
	aitaskDescUpdatedAt := aitaskFields[7].Descriptor()
	// aitask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	aitask.DefaultUpdatedAt = aitaskDescUpdatedAt.Default.(func() time.Time)
	adminFields := schema.Admin{}.Fields()
	_ = adminFields
	// adminDescLastActiveAt is the schema descriptor for last_active_at field.
	adminDescLastActiveAt := adminFields[4].Descriptor()
	// admin.DefaultLastActiveAt holds the default value on creation for the last_active_at field.
	admin.DefaultLastActiveAt = adminDescLastActiveAt.Default.(func() time.Time)
	// adminDescCreatedAt is the schema descriptor for created_at field.
	adminDescCreatedAt := adminFields[5].Descriptor()
	// admin.DefaultCreatedAt holds the default value on creation for the created_at field.
	admin.DefaultCreatedAt = adminDescCreatedAt.Default.(func() time.Time)
	// adminDescUpdatedAt is the schema descriptor for updated_at field.
	adminDescUpdatedAt := adminFields[6].Descriptor()
	// admin.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	admin.DefaultUpdatedAt = adminDescUpdatedAt.Default.(func() time.Time)
	// admin.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	admin.UpdateDefaultUpdatedAt = adminDescUpdatedAt.UpdateDefault.(func() time.Time)
	adminloginhistoryFields := schema.AdminLoginHistory{}.Fields()
	_ = adminloginhistoryFields
	// adminloginhistoryDescCreatedAt is the schema descriptor for created_at field.
	adminloginhistoryDescCreatedAt := adminloginhistoryFields[10].Descriptor()
	// adminloginhistory.DefaultCreatedAt holds the default value on creation for the created_at field.
	adminloginhistory.DefaultCreatedAt = adminloginhistoryDescCreatedAt.Default.(func() time.Time)
	apikeyFields := schema.ApiKey{}.Fields()
	_ = apikeyFields
	// apikeyDescStatus is the schema descriptor for status field.
	apikeyDescStatus := apikeyFields[4].Descriptor()
	// apikey.DefaultStatus holds the default value on creation for the status field.
	apikey.DefaultStatus = consts.ApiKeyStatus(apikeyDescStatus.Default.(string))
	// apikeyDescCreatedAt is the schema descriptor for created_at field.
	apikeyDescCreatedAt := apikeyFields[6].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 := apikeyFields[7].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)
	billingplanFields := schema.BillingPlan{}.Fields()
	_ = billingplanFields
	// billingplanDescCreatedAt is the schema descriptor for created_at field.
	billingplanDescCreatedAt := billingplanFields[4].Descriptor()
	// billingplan.DefaultCreatedAt holds the default value on creation for the created_at field.
	billingplan.DefaultCreatedAt = billingplanDescCreatedAt.Default.(func() time.Time)
	// billingplanDescUpdatedAt is the schema descriptor for updated_at field.
	billingplanDescUpdatedAt := billingplanFields[5].Descriptor()
	// billingplan.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	billingplan.DefaultUpdatedAt = billingplanDescUpdatedAt.Default.(func() time.Time)
	// billingplan.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	billingplan.UpdateDefaultUpdatedAt = billingplanDescUpdatedAt.UpdateDefault.(func() time.Time)
	billingquotaMixin := schema.BillingQuota{}.Mixin()
	billingquotaMixinHooks0 := billingquotaMixin[0].Hooks()
	billingquota.Hooks[0] = billingquotaMixinHooks0[0]
	billingquotaMixinInters0 := billingquotaMixin[0].Interceptors()
	billingquota.Interceptors[0] = billingquotaMixinInters0[0]
	billingquotaFields := schema.BillingQuota{}.Fields()
	_ = billingquotaFields
	// billingquotaDescCreatedAt is the schema descriptor for created_at field.
	billingquotaDescCreatedAt := billingquotaFields[5].Descriptor()
	// billingquota.DefaultCreatedAt holds the default value on creation for the created_at field.
	billingquota.DefaultCreatedAt = billingquotaDescCreatedAt.Default.(func() time.Time)
	// billingquotaDescUpdatedAt is the schema descriptor for updated_at field.
	billingquotaDescUpdatedAt := billingquotaFields[6].Descriptor()
	// billingquota.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	billingquota.DefaultUpdatedAt = billingquotaDescUpdatedAt.Default.(func() time.Time)
	// billingquota.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	billingquota.UpdateDefaultUpdatedAt = billingquotaDescUpdatedAt.UpdateDefault.(func() time.Time)
	billingrecordFields := schema.BillingRecord{}.Fields()
	_ = billingrecordFields
	// billingrecordDescRequestTime is the schema descriptor for request_time field.
	billingrecordDescRequestTime := billingrecordFields[8].Descriptor()
	// billingrecord.DefaultRequestTime holds the default value on creation for the request_time field.
	billingrecord.DefaultRequestTime = billingrecordDescRequestTime.Default.(func() time.Time)
	// billingrecordDescCreatedAt is the schema descriptor for created_at field.
	billingrecordDescCreatedAt := billingrecordFields[10].Descriptor()
	// billingrecord.DefaultCreatedAt holds the default value on creation for the created_at field.
	billingrecord.DefaultCreatedAt = billingrecordDescCreatedAt.Default.(func() time.Time)
	// billingrecordDescUpdatedAt is the schema descriptor for updated_at field.
	billingrecordDescUpdatedAt := billingrecordFields[11].Descriptor()
	// billingrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	billingrecord.DefaultUpdatedAt = billingrecordDescUpdatedAt.Default.(func() time.Time)
	// billingrecord.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	billingrecord.UpdateDefaultUpdatedAt = billingrecordDescUpdatedAt.UpdateDefault.(func() time.Time)
	billingusageMixin := schema.BillingUsage{}.Mixin()
	billingusageMixinHooks0 := billingusageMixin[0].Hooks()
	billingusage.Hooks[0] = billingusageMixinHooks0[0]
	billingusageMixinInters0 := billingusageMixin[0].Interceptors()
	billingusage.Interceptors[0] = billingusageMixinInters0[0]
	billingusageFields := schema.BillingUsage{}.Fields()
	_ = billingusageFields
	// billingusageDescCreatedAt is the schema descriptor for created_at field.
	billingusageDescCreatedAt := billingusageFields[5].Descriptor()
	// billingusage.DefaultCreatedAt holds the default value on creation for the created_at field.
	billingusage.DefaultCreatedAt = billingusageDescCreatedAt.Default.(func() time.Time)
	// billingusageDescUpdatedAt is the schema descriptor for updated_at field.
	billingusageDescUpdatedAt := billingusageFields[6].Descriptor()
	// billingusage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	billingusage.DefaultUpdatedAt = billingusageDescUpdatedAt.Default.(func() time.Time)
	// billingusage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	billingusage.UpdateDefaultUpdatedAt = billingusageDescUpdatedAt.UpdateDefault.(func() time.Time)
	extensionFields := schema.Extension{}.Fields()
	_ = extensionFields
	// extensionDescCreatedAt is the schema descriptor for created_at field.
	extensionDescCreatedAt := extensionFields[3].Descriptor()
	// extension.DefaultCreatedAt holds the default value on creation for the created_at field.
	extension.DefaultCreatedAt = extensionDescCreatedAt.Default.(func() time.Time)
	invitecodeFields := schema.InviteCode{}.Fields()
	_ = invitecodeFields
	// invitecodeDescStatus is the schema descriptor for status field.
	invitecodeDescStatus := invitecodeFields[3].Descriptor()
	// invitecode.DefaultStatus holds the default value on creation for the status field.
	invitecode.DefaultStatus = consts.InviteCodeStatus(invitecodeDescStatus.Default.(string))
	// invitecodeDescCreatedAt is the schema descriptor for created_at field.
	invitecodeDescCreatedAt := invitecodeFields[4].Descriptor()
	// invitecode.DefaultCreatedAt holds the default value on creation for the created_at field.
	invitecode.DefaultCreatedAt = invitecodeDescCreatedAt.Default.(func() time.Time)
	// invitecodeDescUpdatedAt is the schema descriptor for updated_at field.
	invitecodeDescUpdatedAt := invitecodeFields[5].Descriptor()
	// invitecode.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	invitecode.DefaultUpdatedAt = invitecodeDescUpdatedAt.Default.(func() time.Time)
	// invitecode.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	invitecode.UpdateDefaultUpdatedAt = invitecodeDescUpdatedAt.UpdateDefault.(func() time.Time)
	licenseFields := schema.License{}.Fields()
	_ = licenseFields
	// licenseDescCreatedAt is the schema descriptor for created_at field.
	licenseDescCreatedAt := licenseFields[4].Descriptor()
	// license.DefaultCreatedAt holds the default value on creation for the created_at field.
	license.DefaultCreatedAt = licenseDescCreatedAt.Default.(func() time.Time)
	// licenseDescID is the schema descriptor for id field.
	licenseDescID := licenseFields[0].Descriptor()
	// license.IDValidator is a validator for the "id" field. It is called by the builders before save.
	license.IDValidator = licenseDescID.Validators[0].(func(int) error)
	modelFields := schema.Model{}.Fields()
	_ = modelFields
	// modelDescIsInternal is the schema descriptor for is_internal field.
	modelDescIsInternal := modelFields[10].Descriptor()
	// model.DefaultIsInternal holds the default value on creation for the is_internal field.
	model.DefaultIsInternal = modelDescIsInternal.Default.(bool)
	// modelDescStatus is the schema descriptor for status field.
	modelDescStatus := modelFields[12].Descriptor()
	// model.DefaultStatus holds the default value on creation for the status field.
	model.DefaultStatus = consts.ModelStatus(modelDescStatus.Default.(string))
	// modelDescCreatedAt is the schema descriptor for created_at field.
	modelDescCreatedAt := modelFields[15].Descriptor()
	// model.DefaultCreatedAt holds the default value on creation for the created_at field.
	model.DefaultCreatedAt = modelDescCreatedAt.Default.(func() time.Time)
	// modelDescUpdatedAt is the schema descriptor for updated_at field.
	modelDescUpdatedAt := modelFields[16].Descriptor()
	// model.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	model.DefaultUpdatedAt = modelDescUpdatedAt.Default.(func() time.Time)
	// model.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	model.UpdateDefaultUpdatedAt = modelDescUpdatedAt.UpdateDefault.(func() time.Time)
	modelproviderFields := schema.ModelProvider{}.Fields()
	_ = modelproviderFields
	// modelproviderDescName is the schema descriptor for name field.
	modelproviderDescName := modelproviderFields[1].Descriptor()
	// modelprovider.NameValidator is a validator for the "name" field. It is called by the builders before save.
	modelprovider.NameValidator = modelproviderDescName.Validators[0].(func(string) error)
	// modelproviderDescAPIBase is the schema descriptor for api_base field.
	modelproviderDescAPIBase := modelproviderFields[2].Descriptor()
	// modelprovider.APIBaseValidator is a validator for the "api_base" field. It is called by the builders before save.
	modelprovider.APIBaseValidator = modelproviderDescAPIBase.Validators[0].(func(string) error)
	// modelproviderDescPriority is the schema descriptor for priority field.
	modelproviderDescPriority := modelproviderFields[3].Descriptor()
	// modelprovider.DefaultPriority holds the default value on creation for the priority field.
	modelprovider.DefaultPriority = modelproviderDescPriority.Default.(int)
	// modelproviderDescCreatedAt is the schema descriptor for created_at field.
	modelproviderDescCreatedAt := modelproviderFields[4].Descriptor()
	// modelprovider.DefaultCreatedAt holds the default value on creation for the created_at field.
	modelprovider.DefaultCreatedAt = modelproviderDescCreatedAt.Default.(func() time.Time)
	// modelproviderDescUpdatedAt is the schema descriptor for updated_at field.
	modelproviderDescUpdatedAt := modelproviderFields[5].Descriptor()
	// modelprovider.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	modelprovider.DefaultUpdatedAt = modelproviderDescUpdatedAt.Default.(func() time.Time)
	// modelprovider.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	modelprovider.UpdateDefaultUpdatedAt = modelproviderDescUpdatedAt.UpdateDefault.(func() time.Time)
	// modelproviderDescID is the schema descriptor for id field.
	modelproviderDescID := modelproviderFields[0].Descriptor()
	// modelprovider.IDValidator is a validator for the "id" field. It is called by the builders before save.
	modelprovider.IDValidator = modelproviderDescID.Validators[0].(func(string) error)
	modelprovidermodelFields := schema.ModelProviderModel{}.Fields()
	_ = modelprovidermodelFields
	// modelprovidermodelDescName is the schema descriptor for name field.
	modelprovidermodelDescName := modelprovidermodelFields[1].Descriptor()
	// modelprovidermodel.NameValidator is a validator for the "name" field. It is called by the builders before save.
	modelprovidermodel.NameValidator = modelprovidermodelDescName.Validators[0].(func(string) error)
	// modelprovidermodelDescCreatedAt is the schema descriptor for created_at field.
	modelprovidermodelDescCreatedAt := modelprovidermodelFields[3].Descriptor()
	// modelprovidermodel.DefaultCreatedAt holds the default value on creation for the created_at field.
	modelprovidermodel.DefaultCreatedAt = modelprovidermodelDescCreatedAt.Default.(func() time.Time)
	// modelprovidermodelDescUpdatedAt is the schema descriptor for updated_at field.
	modelprovidermodelDescUpdatedAt := modelprovidermodelFields[4].Descriptor()
	// modelprovidermodel.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	modelprovidermodel.DefaultUpdatedAt = modelprovidermodelDescUpdatedAt.Default.(func() time.Time)
	// modelprovidermodel.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	modelprovidermodel.UpdateDefaultUpdatedAt = modelprovidermodelDescUpdatedAt.UpdateDefault.(func() time.Time)
	// modelprovidermodelDescID is the schema descriptor for id field.
	modelprovidermodelDescID := modelprovidermodelFields[0].Descriptor()
	// modelprovidermodel.DefaultID holds the default value on creation for the id field.
	modelprovidermodel.DefaultID = modelprovidermodelDescID.Default.(func() uuid.UUID)
	roleFields := schema.Role{}.Fields()
	_ = roleFields
	// roleDescCreatedAt is the schema descriptor for created_at field.
	roleDescCreatedAt := roleFields[3].Descriptor()
	// role.DefaultCreatedAt holds the default value on creation for the created_at field.
	role.DefaultCreatedAt = roleDescCreatedAt.Default.(func() time.Time)
	securityscanningFields := schema.SecurityScanning{}.Fields()
	_ = securityscanningFields
	// securityscanningDescCreatedAt is the schema descriptor for created_at field.
	securityscanningDescCreatedAt := securityscanningFields[8].Descriptor()
	// securityscanning.DefaultCreatedAt holds the default value on creation for the created_at field.
	securityscanning.DefaultCreatedAt = securityscanningDescCreatedAt.Default.(func() time.Time)
	// securityscanningDescUpdatedAt is the schema descriptor for updated_at field.
	securityscanningDescUpdatedAt := securityscanningFields[9].Descriptor()
	// securityscanning.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	securityscanning.DefaultUpdatedAt = securityscanningDescUpdatedAt.Default.(func() time.Time)
	securityscanningresultFields := schema.SecurityScanningResult{}.Fields()
	_ = securityscanningresultFields
	// securityscanningresultDescCreatedAt is the schema descriptor for created_at field.
	securityscanningresultDescCreatedAt := securityscanningresultFields[20].Descriptor()
	// securityscanningresult.DefaultCreatedAt holds the default value on creation for the created_at field.
	securityscanningresult.DefaultCreatedAt = securityscanningresultDescCreatedAt.Default.(func() time.Time)
	settingFields := schema.Setting{}.Fields()
	_ = settingFields
	// settingDescEnableSSO is the schema descriptor for enable_sso field.
	settingDescEnableSSO := settingFields[1].Descriptor()
	// setting.DefaultEnableSSO holds the default value on creation for the enable_sso field.
	setting.DefaultEnableSSO = settingDescEnableSSO.Default.(bool)
	// settingDescForceTwoFactorAuth is the schema descriptor for force_two_factor_auth field.
	settingDescForceTwoFactorAuth := settingFields[2].Descriptor()
	// setting.DefaultForceTwoFactorAuth holds the default value on creation for the force_two_factor_auth field.
	setting.DefaultForceTwoFactorAuth = settingDescForceTwoFactorAuth.Default.(bool)
	// settingDescDisablePasswordLogin is the schema descriptor for disable_password_login field.
	settingDescDisablePasswordLogin := settingFields[3].Descriptor()
	// setting.DefaultDisablePasswordLogin holds the default value on creation for the disable_password_login field.
	setting.DefaultDisablePasswordLogin = settingDescDisablePasswordLogin.Default.(bool)
	// settingDescEnableAutoLogin is the schema descriptor for enable_auto_login field.
	settingDescEnableAutoLogin := settingFields[4].Descriptor()
	// setting.DefaultEnableAutoLogin holds the default value on creation for the enable_auto_login field.
	setting.DefaultEnableAutoLogin = settingDescEnableAutoLogin.Default.(bool)
	// settingDescCreatedAt is the schema descriptor for created_at field.
	settingDescCreatedAt := settingFields[8].Descriptor()
	// setting.DefaultCreatedAt holds the default value on creation for the created_at field.
	setting.DefaultCreatedAt = settingDescCreatedAt.Default.(func() time.Time)
	// settingDescUpdatedAt is the schema descriptor for updated_at field.
	settingDescUpdatedAt := settingFields[9].Descriptor()
	// setting.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	setting.DefaultUpdatedAt = settingDescUpdatedAt.Default.(func() time.Time)
	// setting.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	setting.UpdateDefaultUpdatedAt = settingDescUpdatedAt.UpdateDefault.(func() time.Time)
	taskFields := schema.Task{}.Fields()
	_ = taskFields
	// taskDescIsAccept is the schema descriptor for is_accept field.
	taskDescIsAccept := taskFields[6].Descriptor()
	// task.DefaultIsAccept holds the default value on creation for the is_accept field.
	task.DefaultIsAccept = taskDescIsAccept.Default.(bool)
	// taskDescIsSuggested is the schema descriptor for is_suggested field.
	taskDescIsSuggested := taskFields[14].Descriptor()
	// task.DefaultIsSuggested holds the default value on creation for the is_suggested field.
	task.DefaultIsSuggested = taskDescIsSuggested.Default.(bool)
	// taskDescCreatedAt is the schema descriptor for created_at field.
	taskDescCreatedAt := taskFields[18].Descriptor()
	// task.DefaultCreatedAt holds the default value on creation for the created_at field.
	task.DefaultCreatedAt = taskDescCreatedAt.Default.(func() time.Time)
	// taskDescUpdatedAt is the schema descriptor for updated_at field.
	taskDescUpdatedAt := taskFields[19].Descriptor()
	// task.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	task.DefaultUpdatedAt = taskDescUpdatedAt.Default.(func() time.Time)
	// task.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	task.UpdateDefaultUpdatedAt = taskDescUpdatedAt.UpdateDefault.(func() time.Time)
	taskrecordFields := schema.TaskRecord{}.Fields()
	_ = taskrecordFields
	// taskrecordDescOutputTokens is the schema descriptor for output_tokens field.
	taskrecordDescOutputTokens := taskrecordFields[5].Descriptor()
	// taskrecord.DefaultOutputTokens holds the default value on creation for the output_tokens field.
	taskrecord.DefaultOutputTokens = taskrecordDescOutputTokens.Default.(int64)
	// taskrecordDescCodeLines is the schema descriptor for code_lines field.
	taskrecordDescCodeLines := taskrecordFields[6].Descriptor()
	// taskrecord.DefaultCodeLines holds the default value on creation for the code_lines field.
	taskrecord.DefaultCodeLines = taskrecordDescCodeLines.Default.(int64)
	// taskrecordDescCreatedAt is the schema descriptor for created_at field.
	taskrecordDescCreatedAt := taskrecordFields[8].Descriptor()
	// taskrecord.DefaultCreatedAt holds the default value on creation for the created_at field.
	taskrecord.DefaultCreatedAt = taskrecordDescCreatedAt.Default.(func() time.Time)
	// taskrecordDescUpdatedAt is the schema descriptor for updated_at field.
	taskrecordDescUpdatedAt := taskrecordFields[9].Descriptor()
	// taskrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	taskrecord.DefaultUpdatedAt = taskrecordDescUpdatedAt.Default.(func() time.Time)
	// taskrecord.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	taskrecord.UpdateDefaultUpdatedAt = taskrecordDescUpdatedAt.UpdateDefault.(func() time.Time)
	userMixin := schema.User{}.Mixin()
	userMixinHooks0 := userMixin[0].Hooks()
	user.Hooks[0] = userMixinHooks0[0]
	userMixinInters0 := userMixin[0].Interceptors()
	user.Interceptors[0] = userMixinInters0[0]
	userFields := schema.User{}.Fields()
	_ = userFields
	// userDescPlatform is the schema descriptor for platform field.
	userDescPlatform := userFields[5].Descriptor()
	// user.DefaultPlatform holds the default value on creation for the platform field.
	user.DefaultPlatform = consts.UserPlatform(userDescPlatform.Default.(string))
	// userDescStatus is the schema descriptor for status field.
	userDescStatus := userFields[6].Descriptor()
	// user.DefaultStatus holds the default value on creation for the status field.
	user.DefaultStatus = consts.UserStatus(userDescStatus.Default.(string))
	// userDescCreatedAt is the schema descriptor for created_at field.
	userDescCreatedAt := userFields[7].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 := userFields[8].Descriptor()
	// user.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() time.Time)
	usergroupFields := schema.UserGroup{}.Fields()
	_ = usergroupFields
	// usergroupDescName is the schema descriptor for name field.
	usergroupDescName := usergroupFields[2].Descriptor()
	// usergroup.NameValidator is a validator for the "name" field. It is called by the builders before save.
	usergroup.NameValidator = usergroupDescName.Validators[0].(func(string) error)
	// usergroupDescCreatedAt is the schema descriptor for created_at field.
	usergroupDescCreatedAt := usergroupFields[3].Descriptor()
	// usergroup.DefaultCreatedAt holds the default value on creation for the created_at field.
	usergroup.DefaultCreatedAt = usergroupDescCreatedAt.Default.(func() time.Time)
	useridentityMixin := schema.UserIdentity{}.Mixin()
	useridentityMixinHooks0 := useridentityMixin[0].Hooks()
	useridentity.Hooks[0] = useridentityMixinHooks0[0]
	useridentityMixinInters0 := useridentityMixin[0].Interceptors()
	useridentity.Interceptors[0] = useridentityMixinInters0[0]
	useridentityFields := schema.UserIdentity{}.Fields()
	_ = useridentityFields
	// useridentityDescPlatform is the schema descriptor for platform field.
	useridentityDescPlatform := useridentityFields[2].Descriptor()
	// useridentity.DefaultPlatform holds the default value on creation for the platform field.
	useridentity.DefaultPlatform = consts.UserPlatform(useridentityDescPlatform.Default.(string))
	// useridentityDescCreatedAt is the schema descriptor for created_at field.
	useridentityDescCreatedAt := useridentityFields[8].Descriptor()
	// useridentity.DefaultCreatedAt holds the default value on creation for the created_at field.
	useridentity.DefaultCreatedAt = useridentityDescCreatedAt.Default.(func() time.Time)
	userloginhistoryFields := schema.UserLoginHistory{}.Fields()
	_ = userloginhistoryFields
	// userloginhistoryDescCreatedAt is the schema descriptor for created_at field.
	userloginhistoryDescCreatedAt := userloginhistoryFields[13].Descriptor()
	// userloginhistory.DefaultCreatedAt holds the default value on creation for the created_at field.
	userloginhistory.DefaultCreatedAt = userloginhistoryDescCreatedAt.Default.(func() time.Time)
	workspaceFields := schema.Workspace{}.Fields()
	_ = workspaceFields
	// workspaceDescRootPath is the schema descriptor for root_path field.
	workspaceDescRootPath := workspaceFields[4].Descriptor()
	// workspace.RootPathValidator is a validator for the "root_path" field. It is called by the builders before save.
	workspace.RootPathValidator = workspaceDescRootPath.Validators[0].(func(string) error)
	// workspaceDescLastAccessedAt is the schema descriptor for last_accessed_at field.
	workspaceDescLastAccessedAt := workspaceFields[6].Descriptor()
	// workspace.DefaultLastAccessedAt holds the default value on creation for the last_accessed_at field.
	workspace.DefaultLastAccessedAt = workspaceDescLastAccessedAt.Default.(func() time.Time)
	// workspaceDescCreatedAt is the schema descriptor for created_at field.
	workspaceDescCreatedAt := workspaceFields[7].Descriptor()
	// workspace.DefaultCreatedAt holds the default value on creation for the created_at field.
	workspace.DefaultCreatedAt = workspaceDescCreatedAt.Default.(func() time.Time)
	// workspaceDescUpdatedAt is the schema descriptor for updated_at field.
	workspaceDescUpdatedAt := workspaceFields[8].Descriptor()
	// workspace.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	workspace.DefaultUpdatedAt = workspaceDescUpdatedAt.Default.(func() time.Time)
	// workspace.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	workspace.UpdateDefaultUpdatedAt = workspaceDescUpdatedAt.UpdateDefault.(func() time.Time)
	workspacefileFields := schema.WorkspaceFile{}.Fields()
	_ = workspacefileFields
	// workspacefileDescPath is the schema descriptor for path field.
	workspacefileDescPath := workspacefileFields[3].Descriptor()
	// workspacefile.PathValidator is a validator for the "path" field. It is called by the builders before save.
	workspacefile.PathValidator = workspacefileDescPath.Validators[0].(func(string) error)
	// workspacefileDescHash is the schema descriptor for hash field.
	workspacefileDescHash := workspacefileFields[5].Descriptor()
	// workspacefile.HashValidator is a validator for the "hash" field. It is called by the builders before save.
	workspacefile.HashValidator = workspacefileDescHash.Validators[0].(func(string) error)
	// workspacefileDescSize is the schema descriptor for size field.
	workspacefileDescSize := workspacefileFields[7].Descriptor()
	// workspacefile.DefaultSize holds the default value on creation for the size field.
	workspacefile.DefaultSize = workspacefileDescSize.Default.(int64)
	// workspacefileDescCreatedAt is the schema descriptor for created_at field.
	workspacefileDescCreatedAt := workspacefileFields[8].Descriptor()
	// workspacefile.DefaultCreatedAt holds the default value on creation for the created_at field.
	workspacefile.DefaultCreatedAt = workspacefileDescCreatedAt.Default.(func() time.Time)
	// workspacefileDescUpdatedAt is the schema descriptor for updated_at field.
	workspacefileDescUpdatedAt := workspacefileFields[9].Descriptor()
	// workspacefile.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	workspacefile.DefaultUpdatedAt = workspacefileDescUpdatedAt.Default.(func() time.Time)
	// workspacefile.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	workspacefile.UpdateDefaultUpdatedAt = workspacefileDescUpdatedAt.UpdateDefault.(func() time.Time)
}

const (
	Version = "v0.14.4"                                         // Version of ent codegen.
	Sum     = "h1:/DhDraSLXIkBhyiVoJeSshr4ZYi7femzhj6/TckzZuI=" // Sum of ent codegen.
)
