// Code generated by ent, DO NOT EDIT. package runtime import ( "time" "github.com/chaitin/MonkeyCode/backend/consts" "github.com/chaitin/MonkeyCode/backend/db/agentplugin" "github.com/chaitin/MonkeyCode/backend/db/agentpluginrepo" "github.com/chaitin/MonkeyCode/backend/db/agentpluginversion" "github.com/chaitin/MonkeyCode/backend/db/agentrule" "github.com/chaitin/MonkeyCode/backend/db/agentruleversion" "github.com/chaitin/MonkeyCode/backend/db/agentskill" "github.com/chaitin/MonkeyCode/backend/db/agentskillgroupbinding" "github.com/chaitin/MonkeyCode/backend/db/agentskillrepo" "github.com/chaitin/MonkeyCode/backend/db/agentskillversion" "github.com/chaitin/MonkeyCode/backend/db/agentsyncjob" "github.com/chaitin/MonkeyCode/backend/db/audit" "github.com/chaitin/MonkeyCode/backend/db/gitbot" "github.com/chaitin/MonkeyCode/backend/db/gitbottask" "github.com/chaitin/MonkeyCode/backend/db/gitbotuser" "github.com/chaitin/MonkeyCode/backend/db/gitidentity" "github.com/chaitin/MonkeyCode/backend/db/gittask" "github.com/chaitin/MonkeyCode/backend/db/host" "github.com/chaitin/MonkeyCode/backend/db/image" "github.com/chaitin/MonkeyCode/backend/db/mcptool" "github.com/chaitin/MonkeyCode/backend/db/mcptoolcall" "github.com/chaitin/MonkeyCode/backend/db/mcpupstream" "github.com/chaitin/MonkeyCode/backend/db/mcpusertoolsetting" "github.com/chaitin/MonkeyCode/backend/db/model" "github.com/chaitin/MonkeyCode/backend/db/modelapikey" "github.com/chaitin/MonkeyCode/backend/db/modelpricing" "github.com/chaitin/MonkeyCode/backend/db/notifychannel" "github.com/chaitin/MonkeyCode/backend/db/notifysendlog" "github.com/chaitin/MonkeyCode/backend/db/notifysubscription" "github.com/chaitin/MonkeyCode/backend/db/project" "github.com/chaitin/MonkeyCode/backend/db/projectcollaborator" "github.com/chaitin/MonkeyCode/backend/db/projectgitbot" "github.com/chaitin/MonkeyCode/backend/db/projectissue" "github.com/chaitin/MonkeyCode/backend/db/projectissuecomment" "github.com/chaitin/MonkeyCode/backend/db/projecttask" "github.com/chaitin/MonkeyCode/backend/db/task" "github.com/chaitin/MonkeyCode/backend/db/taskmodelswitch" "github.com/chaitin/MonkeyCode/backend/db/taskusagestat" "github.com/chaitin/MonkeyCode/backend/db/taskvirtualmachine" "github.com/chaitin/MonkeyCode/backend/db/team" "github.com/chaitin/MonkeyCode/backend/db/teamextensionimagearchive" "github.com/chaitin/MonkeyCode/backend/db/teamgroup" "github.com/chaitin/MonkeyCode/backend/db/teamgrouphost" "github.com/chaitin/MonkeyCode/backend/db/teamgroupimage" "github.com/chaitin/MonkeyCode/backend/db/teamgroupmcpupstream" "github.com/chaitin/MonkeyCode/backend/db/teamgroupmember" "github.com/chaitin/MonkeyCode/backend/db/teamgroupmodel" "github.com/chaitin/MonkeyCode/backend/db/teamhost" "github.com/chaitin/MonkeyCode/backend/db/teamimage" "github.com/chaitin/MonkeyCode/backend/db/teammember" "github.com/chaitin/MonkeyCode/backend/db/teammodel" "github.com/chaitin/MonkeyCode/backend/db/teamoidcconfig" "github.com/chaitin/MonkeyCode/backend/db/user" "github.com/chaitin/MonkeyCode/backend/db/useridentity" "github.com/chaitin/MonkeyCode/backend/db/virtualmachine" "github.com/chaitin/MonkeyCode/backend/db/virtualmachinerecyclerecord" "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() { agentpluginFields := schema.AgentPlugin{}.Fields() _ = agentpluginFields // agentpluginDescName is the schema descriptor for name field. agentpluginDescName := agentpluginFields[2].Descriptor() // agentplugin.NameValidator is a validator for the "name" field. It is called by the builders before save. agentplugin.NameValidator = agentpluginDescName.Validators[0].(func(string) error) // agentpluginDescScopeID is the schema descriptor for scope_id field. agentpluginDescScopeID := agentpluginFields[5].Descriptor() // agentplugin.DefaultScopeID holds the default value on creation for the scope_id field. agentplugin.DefaultScopeID = agentpluginDescScopeID.Default.(string) // agentpluginDescIsForceDelivery is the schema descriptor for is_force_delivery field. agentpluginDescIsForceDelivery := agentpluginFields[8].Descriptor() // agentplugin.DefaultIsForceDelivery holds the default value on creation for the is_force_delivery field. agentplugin.DefaultIsForceDelivery = agentpluginDescIsForceDelivery.Default.(bool) // agentpluginDescIsOrphan is the schema descriptor for is_orphan field. agentpluginDescIsOrphan := agentpluginFields[9].Descriptor() // agentplugin.DefaultIsOrphan holds the default value on creation for the is_orphan field. agentplugin.DefaultIsOrphan = agentpluginDescIsOrphan.Default.(bool) // agentpluginDescIsDeleted is the schema descriptor for is_deleted field. agentpluginDescIsDeleted := agentpluginFields[10].Descriptor() // agentplugin.DefaultIsDeleted holds the default value on creation for the is_deleted field. agentplugin.DefaultIsDeleted = agentpluginDescIsDeleted.Default.(bool) // agentpluginDescEnabled is the schema descriptor for enabled field. agentpluginDescEnabled := agentpluginFields[11].Descriptor() // agentplugin.DefaultEnabled holds the default value on creation for the enabled field. agentplugin.DefaultEnabled = agentpluginDescEnabled.Default.(bool) // agentpluginDescCreatedAt is the schema descriptor for created_at field. agentpluginDescCreatedAt := agentpluginFields[12].Descriptor() // agentplugin.DefaultCreatedAt holds the default value on creation for the created_at field. agentplugin.DefaultCreatedAt = agentpluginDescCreatedAt.Default.(func() time.Time) // agentpluginDescUpdatedAt is the schema descriptor for updated_at field. agentpluginDescUpdatedAt := agentpluginFields[13].Descriptor() // agentplugin.DefaultUpdatedAt holds the default value on creation for the updated_at field. agentplugin.DefaultUpdatedAt = agentpluginDescUpdatedAt.Default.(func() time.Time) // agentplugin.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. agentplugin.UpdateDefaultUpdatedAt = agentpluginDescUpdatedAt.UpdateDefault.(func() time.Time) // agentpluginDescID is the schema descriptor for id field. agentpluginDescID := agentpluginFields[0].Descriptor() // agentplugin.DefaultID holds the default value on creation for the id field. agentplugin.DefaultID = agentpluginDescID.Default.(func() uuid.UUID) agentpluginrepoFields := schema.AgentPluginRepo{}.Fields() _ = agentpluginrepoFields // agentpluginrepoDescName is the schema descriptor for name field. agentpluginrepoDescName := agentpluginrepoFields[1].Descriptor() // agentpluginrepo.NameValidator is a validator for the "name" field. It is called by the builders before save. agentpluginrepo.NameValidator = agentpluginrepoDescName.Validators[0].(func(string) error) // agentpluginrepoDescScopeID is the schema descriptor for scope_id field. agentpluginrepoDescScopeID := agentpluginrepoFields[3].Descriptor() // agentpluginrepo.DefaultScopeID holds the default value on creation for the scope_id field. agentpluginrepo.DefaultScopeID = agentpluginrepoDescScopeID.Default.(string) // agentpluginrepoDescPluginDiscoveryAutoPackageJSON is the schema descriptor for plugin_discovery_auto_package_json field. agentpluginrepoDescPluginDiscoveryAutoPackageJSON := agentpluginrepoFields[11].Descriptor() // agentpluginrepo.DefaultPluginDiscoveryAutoPackageJSON holds the default value on creation for the plugin_discovery_auto_package_json field. agentpluginrepo.DefaultPluginDiscoveryAutoPackageJSON = agentpluginrepoDescPluginDiscoveryAutoPackageJSON.Default.(bool) // agentpluginrepoDescIsDeleted is the schema descriptor for is_deleted field. agentpluginrepoDescIsDeleted := agentpluginrepoFields[16].Descriptor() // agentpluginrepo.DefaultIsDeleted holds the default value on creation for the is_deleted field. agentpluginrepo.DefaultIsDeleted = agentpluginrepoDescIsDeleted.Default.(bool) // agentpluginrepoDescCreatedAt is the schema descriptor for created_at field. agentpluginrepoDescCreatedAt := agentpluginrepoFields[17].Descriptor() // agentpluginrepo.DefaultCreatedAt holds the default value on creation for the created_at field. agentpluginrepo.DefaultCreatedAt = agentpluginrepoDescCreatedAt.Default.(func() time.Time) // agentpluginrepoDescUpdatedAt is the schema descriptor for updated_at field. agentpluginrepoDescUpdatedAt := agentpluginrepoFields[18].Descriptor() // agentpluginrepo.DefaultUpdatedAt holds the default value on creation for the updated_at field. agentpluginrepo.DefaultUpdatedAt = agentpluginrepoDescUpdatedAt.Default.(func() time.Time) // agentpluginrepo.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. agentpluginrepo.UpdateDefaultUpdatedAt = agentpluginrepoDescUpdatedAt.UpdateDefault.(func() time.Time) // agentpluginrepoDescID is the schema descriptor for id field. agentpluginrepoDescID := agentpluginrepoFields[0].Descriptor() // agentpluginrepo.DefaultID holds the default value on creation for the id field. agentpluginrepo.DefaultID = agentpluginrepoDescID.Default.(func() uuid.UUID) agentpluginversionFields := schema.AgentPluginVersion{}.Fields() _ = agentpluginversionFields // agentpluginversionDescVersion is the schema descriptor for version field. agentpluginversionDescVersion := agentpluginversionFields[2].Descriptor() // agentpluginversion.VersionValidator is a validator for the "version" field. It is called by the builders before save. agentpluginversion.VersionValidator = agentpluginversionDescVersion.Validators[0].(func(string) error) // agentpluginversionDescS3Key is the schema descriptor for s3_key field. agentpluginversionDescS3Key := agentpluginversionFields[3].Descriptor() // agentpluginversion.S3KeyValidator is a validator for the "s3_key" field. It is called by the builders before save. agentpluginversion.S3KeyValidator = agentpluginversionDescS3Key.Validators[0].(func(string) error) // agentpluginversionDescCreatedAt is the schema descriptor for created_at field. agentpluginversionDescCreatedAt := agentpluginversionFields[5].Descriptor() // agentpluginversion.DefaultCreatedAt holds the default value on creation for the created_at field. agentpluginversion.DefaultCreatedAt = agentpluginversionDescCreatedAt.Default.(func() time.Time) // agentpluginversionDescID is the schema descriptor for id field. agentpluginversionDescID := agentpluginversionFields[0].Descriptor() // agentpluginversion.DefaultID holds the default value on creation for the id field. agentpluginversion.DefaultID = agentpluginversionDescID.Default.(func() uuid.UUID) agentruleFields := schema.AgentRule{}.Fields() _ = agentruleFields // agentruleDescName is the schema descriptor for name field. agentruleDescName := agentruleFields[1].Descriptor() // agentrule.NameValidator is a validator for the "name" field. It is called by the builders before save. agentrule.NameValidator = agentruleDescName.Validators[0].(func(string) error) // agentruleDescScopeID is the schema descriptor for scope_id field. agentruleDescScopeID := agentruleFields[4].Descriptor() // agentrule.DefaultScopeID holds the default value on creation for the scope_id field. agentrule.DefaultScopeID = agentruleDescScopeID.Default.(string) // agentruleDescIsDeleted is the schema descriptor for is_deleted field. agentruleDescIsDeleted := agentruleFields[10].Descriptor() // agentrule.DefaultIsDeleted holds the default value on creation for the is_deleted field. agentrule.DefaultIsDeleted = agentruleDescIsDeleted.Default.(bool) // agentruleDescCreatedAt is the schema descriptor for created_at field. agentruleDescCreatedAt := agentruleFields[11].Descriptor() // agentrule.DefaultCreatedAt holds the default value on creation for the created_at field. agentrule.DefaultCreatedAt = agentruleDescCreatedAt.Default.(func() time.Time) // agentruleDescUpdatedAt is the schema descriptor for updated_at field. agentruleDescUpdatedAt := agentruleFields[12].Descriptor() // agentrule.DefaultUpdatedAt holds the default value on creation for the updated_at field. agentrule.DefaultUpdatedAt = agentruleDescUpdatedAt.Default.(func() time.Time) // agentrule.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. agentrule.UpdateDefaultUpdatedAt = agentruleDescUpdatedAt.UpdateDefault.(func() time.Time) // agentruleDescID is the schema descriptor for id field. agentruleDescID := agentruleFields[0].Descriptor() // agentrule.DefaultID holds the default value on creation for the id field. agentrule.DefaultID = agentruleDescID.Default.(func() uuid.UUID) agentruleversionFields := schema.AgentRuleVersion{}.Fields() _ = agentruleversionFields // agentruleversionDescVersion is the schema descriptor for version field. agentruleversionDescVersion := agentruleversionFields[2].Descriptor() // agentruleversion.VersionValidator is a validator for the "version" field. It is called by the builders before save. agentruleversion.VersionValidator = func() func(string) error { validators := agentruleversionDescVersion.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(version string) error { for _, fn := range fns { if err := fn(version); err != nil { return err } } return nil } }() // agentruleversionDescCreatedAt is the schema descriptor for created_at field. agentruleversionDescCreatedAt := agentruleversionFields[4].Descriptor() // agentruleversion.DefaultCreatedAt holds the default value on creation for the created_at field. agentruleversion.DefaultCreatedAt = agentruleversionDescCreatedAt.Default.(func() time.Time) // agentruleversionDescID is the schema descriptor for id field. agentruleversionDescID := agentruleversionFields[0].Descriptor() // agentruleversion.DefaultID holds the default value on creation for the id field. agentruleversion.DefaultID = agentruleversionDescID.Default.(func() uuid.UUID) agentskillFields := schema.AgentSkill{}.Fields() _ = agentskillFields // agentskillDescName is the schema descriptor for name field. agentskillDescName := agentskillFields[2].Descriptor() // agentskill.NameValidator is a validator for the "name" field. It is called by the builders before save. agentskill.NameValidator = agentskillDescName.Validators[0].(func(string) error) // agentskillDescScopeID is the schema descriptor for scope_id field. agentskillDescScopeID := agentskillFields[5].Descriptor() // agentskill.DefaultScopeID holds the default value on creation for the scope_id field. agentskill.DefaultScopeID = agentskillDescScopeID.Default.(string) // agentskillDescIsForceDelivery is the schema descriptor for is_force_delivery field. agentskillDescIsForceDelivery := agentskillFields[8].Descriptor() // agentskill.DefaultIsForceDelivery holds the default value on creation for the is_force_delivery field. agentskill.DefaultIsForceDelivery = agentskillDescIsForceDelivery.Default.(bool) // agentskillDescIsOrphan is the schema descriptor for is_orphan field. agentskillDescIsOrphan := agentskillFields[9].Descriptor() // agentskill.DefaultIsOrphan holds the default value on creation for the is_orphan field. agentskill.DefaultIsOrphan = agentskillDescIsOrphan.Default.(bool) // agentskillDescIsDeleted is the schema descriptor for is_deleted field. agentskillDescIsDeleted := agentskillFields[10].Descriptor() // agentskill.DefaultIsDeleted holds the default value on creation for the is_deleted field. agentskill.DefaultIsDeleted = agentskillDescIsDeleted.Default.(bool) // agentskillDescEnabled is the schema descriptor for enabled field. agentskillDescEnabled := agentskillFields[11].Descriptor() // agentskill.DefaultEnabled holds the default value on creation for the enabled field. agentskill.DefaultEnabled = agentskillDescEnabled.Default.(bool) // agentskillDescCreatedAt is the schema descriptor for created_at field. agentskillDescCreatedAt := agentskillFields[15].Descriptor() // agentskill.DefaultCreatedAt holds the default value on creation for the created_at field. agentskill.DefaultCreatedAt = agentskillDescCreatedAt.Default.(func() time.Time) // agentskillDescUpdatedAt is the schema descriptor for updated_at field. agentskillDescUpdatedAt := agentskillFields[16].Descriptor() // agentskill.DefaultUpdatedAt holds the default value on creation for the updated_at field. agentskill.DefaultUpdatedAt = agentskillDescUpdatedAt.Default.(func() time.Time) // agentskill.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. agentskill.UpdateDefaultUpdatedAt = agentskillDescUpdatedAt.UpdateDefault.(func() time.Time) // agentskillDescID is the schema descriptor for id field. agentskillDescID := agentskillFields[0].Descriptor() // agentskill.DefaultID holds the default value on creation for the id field. agentskill.DefaultID = agentskillDescID.Default.(func() uuid.UUID) agentskillgroupbindingFields := schema.AgentSkillGroupBinding{}.Fields() _ = agentskillgroupbindingFields // agentskillgroupbindingDescCreatedAt is the schema descriptor for created_at field. agentskillgroupbindingDescCreatedAt := agentskillgroupbindingFields[3].Descriptor() // agentskillgroupbinding.DefaultCreatedAt holds the default value on creation for the created_at field. agentskillgroupbinding.DefaultCreatedAt = agentskillgroupbindingDescCreatedAt.Default.(func() time.Time) // agentskillgroupbindingDescID is the schema descriptor for id field. agentskillgroupbindingDescID := agentskillgroupbindingFields[0].Descriptor() // agentskillgroupbinding.DefaultID holds the default value on creation for the id field. agentskillgroupbinding.DefaultID = agentskillgroupbindingDescID.Default.(func() uuid.UUID) agentskillrepoFields := schema.AgentSkillRepo{}.Fields() _ = agentskillrepoFields // agentskillrepoDescName is the schema descriptor for name field. agentskillrepoDescName := agentskillrepoFields[1].Descriptor() // agentskillrepo.NameValidator is a validator for the "name" field. It is called by the builders before save. agentskillrepo.NameValidator = agentskillrepoDescName.Validators[0].(func(string) error) // agentskillrepoDescScopeID is the schema descriptor for scope_id field. agentskillrepoDescScopeID := agentskillrepoFields[3].Descriptor() // agentskillrepo.DefaultScopeID holds the default value on creation for the scope_id field. agentskillrepo.DefaultScopeID = agentskillrepoDescScopeID.Default.(string) // agentskillrepoDescIsDeleted is the schema descriptor for is_deleted field. agentskillrepoDescIsDeleted := agentskillrepoFields[11].Descriptor() // agentskillrepo.DefaultIsDeleted holds the default value on creation for the is_deleted field. agentskillrepo.DefaultIsDeleted = agentskillrepoDescIsDeleted.Default.(bool) // agentskillrepoDescCreatedAt is the schema descriptor for created_at field. agentskillrepoDescCreatedAt := agentskillrepoFields[12].Descriptor() // agentskillrepo.DefaultCreatedAt holds the default value on creation for the created_at field. agentskillrepo.DefaultCreatedAt = agentskillrepoDescCreatedAt.Default.(func() time.Time) // agentskillrepoDescUpdatedAt is the schema descriptor for updated_at field. agentskillrepoDescUpdatedAt := agentskillrepoFields[13].Descriptor() // agentskillrepo.DefaultUpdatedAt holds the default value on creation for the updated_at field. agentskillrepo.DefaultUpdatedAt = agentskillrepoDescUpdatedAt.Default.(func() time.Time) // agentskillrepo.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. agentskillrepo.UpdateDefaultUpdatedAt = agentskillrepoDescUpdatedAt.UpdateDefault.(func() time.Time) // agentskillrepoDescID is the schema descriptor for id field. agentskillrepoDescID := agentskillrepoFields[0].Descriptor() // agentskillrepo.DefaultID holds the default value on creation for the id field. agentskillrepo.DefaultID = agentskillrepoDescID.Default.(func() uuid.UUID) agentskillversionFields := schema.AgentSkillVersion{}.Fields() _ = agentskillversionFields // agentskillversionDescVersion is the schema descriptor for version field. agentskillversionDescVersion := agentskillversionFields[2].Descriptor() // agentskillversion.VersionValidator is a validator for the "version" field. It is called by the builders before save. agentskillversion.VersionValidator = agentskillversionDescVersion.Validators[0].(func(string) error) // agentskillversionDescS3Key is the schema descriptor for s3_key field. agentskillversionDescS3Key := agentskillversionFields[3].Descriptor() // agentskillversion.S3KeyValidator is a validator for the "s3_key" field. It is called by the builders before save. agentskillversion.S3KeyValidator = agentskillversionDescS3Key.Validators[0].(func(string) error) // agentskillversionDescCreatedAt is the schema descriptor for created_at field. agentskillversionDescCreatedAt := agentskillversionFields[5].Descriptor() // agentskillversion.DefaultCreatedAt holds the default value on creation for the created_at field. agentskillversion.DefaultCreatedAt = agentskillversionDescCreatedAt.Default.(func() time.Time) // agentskillversionDescID is the schema descriptor for id field. agentskillversionDescID := agentskillversionFields[0].Descriptor() // agentskillversion.DefaultID holds the default value on creation for the id field. agentskillversion.DefaultID = agentskillversionDescID.Default.(func() uuid.UUID) agentsyncjobFields := schema.AgentSyncJob{}.Fields() _ = agentsyncjobFields // agentsyncjobDescCreatedAt is the schema descriptor for created_at field. agentsyncjobDescCreatedAt := agentsyncjobFields[12].Descriptor() // agentsyncjob.DefaultCreatedAt holds the default value on creation for the created_at field. agentsyncjob.DefaultCreatedAt = agentsyncjobDescCreatedAt.Default.(func() time.Time) // agentsyncjobDescUpdatedAt is the schema descriptor for updated_at field. agentsyncjobDescUpdatedAt := agentsyncjobFields[13].Descriptor() // agentsyncjob.DefaultUpdatedAt holds the default value on creation for the updated_at field. agentsyncjob.DefaultUpdatedAt = agentsyncjobDescUpdatedAt.Default.(func() time.Time) // agentsyncjob.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. agentsyncjob.UpdateDefaultUpdatedAt = agentsyncjobDescUpdatedAt.UpdateDefault.(func() time.Time) // agentsyncjobDescID is the schema descriptor for id field. agentsyncjobDescID := agentsyncjobFields[0].Descriptor() // agentsyncjob.DefaultID holds the default value on creation for the id field. agentsyncjob.DefaultID = agentsyncjobDescID.Default.(func() uuid.UUID) auditFields := schema.Audit{}.Fields() _ = auditFields // auditDescCreatedAt is the schema descriptor for created_at field. auditDescCreatedAt := auditFields[7].Descriptor() // audit.DefaultCreatedAt holds the default value on creation for the created_at field. audit.DefaultCreatedAt = auditDescCreatedAt.Default.(func() time.Time) gitbotMixin := schema.GitBot{}.Mixin() gitbotMixinHooks0 := gitbotMixin[0].Hooks() gitbot.Hooks[0] = gitbotMixinHooks0[0] gitbotMixinInters0 := gitbotMixin[0].Interceptors() gitbot.Interceptors[0] = gitbotMixinInters0[0] gitbotFields := schema.GitBot{}.Fields() _ = gitbotFields // gitbotDescCreatedAt is the schema descriptor for created_at field. gitbotDescCreatedAt := gitbotFields[7].Descriptor() // gitbot.DefaultCreatedAt holds the default value on creation for the created_at field. gitbot.DefaultCreatedAt = gitbotDescCreatedAt.Default.(func() time.Time) gitbottaskFields := schema.GitBotTask{}.Fields() _ = gitbottaskFields // gitbottaskDescCreatedAt is the schema descriptor for created_at field. gitbottaskDescCreatedAt := gitbottaskFields[3].Descriptor() // gitbottask.DefaultCreatedAt holds the default value on creation for the created_at field. gitbottask.DefaultCreatedAt = gitbottaskDescCreatedAt.Default.(func() time.Time) // gitbottaskDescID is the schema descriptor for id field. gitbottaskDescID := gitbottaskFields[0].Descriptor() // gitbottask.DefaultID holds the default value on creation for the id field. gitbottask.DefaultID = gitbottaskDescID.Default.(func() uuid.UUID) gitbotuserFields := schema.GitBotUser{}.Fields() _ = gitbotuserFields // gitbotuserDescCreatedAt is the schema descriptor for created_at field. gitbotuserDescCreatedAt := gitbotuserFields[3].Descriptor() // gitbotuser.DefaultCreatedAt holds the default value on creation for the created_at field. gitbotuser.DefaultCreatedAt = gitbotuserDescCreatedAt.Default.(func() time.Time) // gitbotuserDescID is the schema descriptor for id field. gitbotuserDescID := gitbotuserFields[0].Descriptor() // gitbotuser.DefaultID holds the default value on creation for the id field. gitbotuser.DefaultID = gitbotuserDescID.Default.(func() uuid.UUID) gitidentityMixin := schema.GitIdentity{}.Mixin() gitidentityMixinHooks0 := gitidentityMixin[0].Hooks() gitidentity.Hooks[0] = gitidentityMixinHooks0[0] gitidentityMixinInters0 := gitidentityMixin[0].Interceptors() gitidentity.Interceptors[0] = gitidentityMixinInters0[0] gitidentityFields := schema.GitIdentity{}.Fields() _ = gitidentityFields // gitidentityDescCreatedAt is the schema descriptor for created_at field. gitidentityDescCreatedAt := gitidentityFields[12].Descriptor() // gitidentity.DefaultCreatedAt holds the default value on creation for the created_at field. gitidentity.DefaultCreatedAt = gitidentityDescCreatedAt.Default.(func() time.Time) // gitidentityDescUpdatedAt is the schema descriptor for updated_at field. gitidentityDescUpdatedAt := gitidentityFields[13].Descriptor() // gitidentity.DefaultUpdatedAt holds the default value on creation for the updated_at field. gitidentity.DefaultUpdatedAt = gitidentityDescUpdatedAt.Default.(func() time.Time) // gitidentity.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. gitidentity.UpdateDefaultUpdatedAt = gitidentityDescUpdatedAt.UpdateDefault.(func() time.Time) gittaskFields := schema.GitTask{}.Fields() _ = gittaskFields // gittaskDescSubjectType is the schema descriptor for subject_type field. gittaskDescSubjectType := gittaskFields[3].Descriptor() // gittask.SubjectTypeValidator is a validator for the "subject_type" field. It is called by the builders before save. gittask.SubjectTypeValidator = gittaskDescSubjectType.Validators[0].(func(string) error) // gittaskDescCreatedAt is the schema descriptor for created_at field. gittaskDescCreatedAt := gittaskFields[11].Descriptor() // gittask.DefaultCreatedAt holds the default value on creation for the created_at field. gittask.DefaultCreatedAt = gittaskDescCreatedAt.Default.(func() time.Time) hostMixin := schema.Host{}.Mixin() hostMixinHooks0 := hostMixin[0].Hooks() host.Hooks[0] = hostMixinHooks0[0] hostMixinInters0 := hostMixin[0].Interceptors() host.Interceptors[0] = hostMixinInters0[0] hostFields := schema.Host{}.Fields() _ = hostFields // hostDescWeight is the schema descriptor for weight field. hostDescWeight := hostFields[5].Descriptor() // host.DefaultWeight holds the default value on creation for the weight field. host.DefaultWeight = hostDescWeight.Default.(int) // hostDescCreatedAt is the schema descriptor for created_at field. hostDescCreatedAt := hostFields[14].Descriptor() // host.DefaultCreatedAt holds the default value on creation for the created_at field. host.DefaultCreatedAt = hostDescCreatedAt.Default.(func() time.Time) // hostDescUpdatedAt is the schema descriptor for updated_at field. hostDescUpdatedAt := hostFields[15].Descriptor() // host.DefaultUpdatedAt holds the default value on creation for the updated_at field. host.DefaultUpdatedAt = hostDescUpdatedAt.Default.(func() time.Time) // host.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. host.UpdateDefaultUpdatedAt = hostDescUpdatedAt.UpdateDefault.(func() time.Time) imageMixin := schema.Image{}.Mixin() imageMixinHooks0 := imageMixin[0].Hooks() image.Hooks[0] = imageMixinHooks0[0] imageMixinInters0 := imageMixin[0].Interceptors() image.Interceptors[0] = imageMixinInters0[0] imageFields := schema.Image{}.Fields() _ = imageFields // imageDescName is the schema descriptor for name field. imageDescName := imageFields[2].Descriptor() // image.NameValidator is a validator for the "name" field. It is called by the builders before save. image.NameValidator = imageDescName.Validators[0].(func(string) error) // imageDescCreatedAt is the schema descriptor for created_at field. imageDescCreatedAt := imageFields[7].Descriptor() // image.DefaultCreatedAt holds the default value on creation for the created_at field. image.DefaultCreatedAt = imageDescCreatedAt.Default.(func() time.Time) // imageDescUpdatedAt is the schema descriptor for updated_at field. imageDescUpdatedAt := imageFields[8].Descriptor() // image.DefaultUpdatedAt holds the default value on creation for the updated_at field. image.DefaultUpdatedAt = imageDescUpdatedAt.Default.(func() time.Time) // image.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. image.UpdateDefaultUpdatedAt = imageDescUpdatedAt.UpdateDefault.(func() time.Time) mcptoolMixin := schema.MCPTool{}.Mixin() mcptoolMixinHooks0 := mcptoolMixin[0].Hooks() mcptool.Hooks[0] = mcptoolMixinHooks0[0] mcptoolMixinInters0 := mcptoolMixin[0].Interceptors() mcptool.Interceptors[0] = mcptoolMixinInters0[0] mcptoolFields := schema.MCPTool{}.Fields() _ = mcptoolFields // mcptoolDescName is the schema descriptor for name field. mcptoolDescName := mcptoolFields[2].Descriptor() // mcptool.NameValidator is a validator for the "name" field. It is called by the builders before save. mcptool.NameValidator = func() func(string) error { validators := mcptoolDescName.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 } }() // mcptoolDescNamespacedName is the schema descriptor for namespaced_name field. mcptoolDescNamespacedName := mcptoolFields[3].Descriptor() // mcptool.NamespacedNameValidator is a validator for the "namespaced_name" field. It is called by the builders before save. mcptool.NamespacedNameValidator = func() func(string) error { validators := mcptoolDescNamespacedName.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(namespaced_name string) error { for _, fn := range fns { if err := fn(namespaced_name); err != nil { return err } } return nil } }() // mcptoolDescPrice is the schema descriptor for price field. mcptoolDescPrice := mcptoolFields[9].Descriptor() // mcptool.DefaultPrice holds the default value on creation for the price field. mcptool.DefaultPrice = mcptoolDescPrice.Default.(int64) // mcptoolDescEnabled is the schema descriptor for enabled field. mcptoolDescEnabled := mcptoolFields[10].Descriptor() // mcptool.DefaultEnabled holds the default value on creation for the enabled field. mcptool.DefaultEnabled = mcptoolDescEnabled.Default.(bool) // mcptoolDescVersionHash is the schema descriptor for version_hash field. mcptoolDescVersionHash := mcptoolFields[11].Descriptor() // mcptool.VersionHashValidator is a validator for the "version_hash" field. It is called by the builders before save. mcptool.VersionHashValidator = mcptoolDescVersionHash.Validators[0].(func(string) error) // mcptoolDescCreatedAt is the schema descriptor for created_at field. mcptoolDescCreatedAt := mcptoolFields[13].Descriptor() // mcptool.DefaultCreatedAt holds the default value on creation for the created_at field. mcptool.DefaultCreatedAt = mcptoolDescCreatedAt.Default.(func() time.Time) // mcptoolDescUpdatedAt is the schema descriptor for updated_at field. mcptoolDescUpdatedAt := mcptoolFields[14].Descriptor() // mcptool.DefaultUpdatedAt holds the default value on creation for the updated_at field. mcptool.DefaultUpdatedAt = mcptoolDescUpdatedAt.Default.(func() time.Time) // mcptool.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. mcptool.UpdateDefaultUpdatedAt = mcptoolDescUpdatedAt.UpdateDefault.(func() time.Time) mcptoolcallFields := schema.MCPToolCall{}.Fields() _ = mcptoolcallFields // mcptoolcallDescRequestID is the schema descriptor for request_id field. mcptoolcallDescRequestID := mcptoolcallFields[1].Descriptor() // mcptoolcall.RequestIDValidator is a validator for the "request_id" field. It is called by the builders before save. mcptoolcall.RequestIDValidator = func() func(string) error { validators := mcptoolcallDescRequestID.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(request_id string) error { for _, fn := range fns { if err := fn(request_id); err != nil { return err } } return nil } }() // mcptoolcallDescToolNameSnapshot is the schema descriptor for tool_name_snapshot field. mcptoolcallDescToolNameSnapshot := mcptoolcallFields[6].Descriptor() // mcptoolcall.ToolNameSnapshotValidator is a validator for the "tool_name_snapshot" field. It is called by the builders before save. mcptoolcall.ToolNameSnapshotValidator = func() func(string) error { validators := mcptoolcallDescToolNameSnapshot.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(tool_name_snapshot string) error { for _, fn := range fns { if err := fn(tool_name_snapshot); err != nil { return err } } return nil } }() // mcptoolcallDescPriceSnapshot is the schema descriptor for price_snapshot field. mcptoolcallDescPriceSnapshot := mcptoolcallFields[8].Descriptor() // mcptoolcall.DefaultPriceSnapshot holds the default value on creation for the price_snapshot field. mcptoolcall.DefaultPriceSnapshot = mcptoolcallDescPriceSnapshot.Default.(int64) // mcptoolcallDescErrorMessage is the schema descriptor for error_message field. mcptoolcallDescErrorMessage := mcptoolcallFields[12].Descriptor() // mcptoolcall.DefaultErrorMessage holds the default value on creation for the error_message field. mcptoolcall.DefaultErrorMessage = mcptoolcallDescErrorMessage.Default.(string) // mcptoolcallDescUpstreamRequestID is the schema descriptor for upstream_request_id field. mcptoolcallDescUpstreamRequestID := mcptoolcallFields[13].Descriptor() // mcptoolcall.UpstreamRequestIDValidator is a validator for the "upstream_request_id" field. It is called by the builders before save. mcptoolcall.UpstreamRequestIDValidator = mcptoolcallDescUpstreamRequestID.Validators[0].(func(string) error) // mcptoolcallDescCreatedAt is the schema descriptor for created_at field. mcptoolcallDescCreatedAt := mcptoolcallFields[16].Descriptor() // mcptoolcall.DefaultCreatedAt holds the default value on creation for the created_at field. mcptoolcall.DefaultCreatedAt = mcptoolcallDescCreatedAt.Default.(func() time.Time) // mcptoolcallDescUpdatedAt is the schema descriptor for updated_at field. mcptoolcallDescUpdatedAt := mcptoolcallFields[17].Descriptor() // mcptoolcall.DefaultUpdatedAt holds the default value on creation for the updated_at field. mcptoolcall.DefaultUpdatedAt = mcptoolcallDescUpdatedAt.Default.(func() time.Time) // mcptoolcall.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. mcptoolcall.UpdateDefaultUpdatedAt = mcptoolcallDescUpdatedAt.UpdateDefault.(func() time.Time) mcpupstreamMixin := schema.MCPUpstream{}.Mixin() mcpupstreamMixinHooks0 := mcpupstreamMixin[0].Hooks() mcpupstream.Hooks[0] = mcpupstreamMixinHooks0[0] mcpupstreamMixinInters0 := mcpupstreamMixin[0].Interceptors() mcpupstream.Interceptors[0] = mcpupstreamMixinInters0[0] mcpupstreamFields := schema.MCPUpstream{}.Fields() _ = mcpupstreamFields // mcpupstreamDescName is the schema descriptor for name field. mcpupstreamDescName := mcpupstreamFields[1].Descriptor() // mcpupstream.NameValidator is a validator for the "name" field. It is called by the builders before save. mcpupstream.NameValidator = func() func(string) error { validators := mcpupstreamDescName.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 } }() // mcpupstreamDescSlug is the schema descriptor for slug field. mcpupstreamDescSlug := mcpupstreamFields[2].Descriptor() // mcpupstream.SlugValidator is a validator for the "slug" field. It is called by the builders before save. mcpupstream.SlugValidator = func() func(string) error { validators := mcpupstreamDescSlug.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(slug string) error { for _, fn := range fns { if err := fn(slug); err != nil { return err } } return nil } }() // mcpupstreamDescType is the schema descriptor for type field. mcpupstreamDescType := mcpupstreamFields[6].Descriptor() // mcpupstream.DefaultType holds the default value on creation for the type field. mcpupstream.DefaultType = mcpupstreamDescType.Default.(string) // mcpupstream.TypeValidator is a validator for the "type" field. It is called by the builders before save. mcpupstream.TypeValidator = func() func(string) error { validators := mcpupstreamDescType.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(_type string) error { for _, fn := range fns { if err := fn(_type); err != nil { return err } } return nil } }() // mcpupstreamDescURL is the schema descriptor for url field. mcpupstreamDescURL := mcpupstreamFields[7].Descriptor() // mcpupstream.URLValidator is a validator for the "url" field. It is called by the builders before save. mcpupstream.URLValidator = mcpupstreamDescURL.Validators[0].(func(string) error) // mcpupstreamDescEnabled is the schema descriptor for enabled field. mcpupstreamDescEnabled := mcpupstreamFields[10].Descriptor() // mcpupstream.DefaultEnabled holds the default value on creation for the enabled field. mcpupstream.DefaultEnabled = mcpupstreamDescEnabled.Default.(bool) // mcpupstreamDescHealthStatus is the schema descriptor for health_status field. mcpupstreamDescHealthStatus := mcpupstreamFields[11].Descriptor() // mcpupstream.DefaultHealthStatus holds the default value on creation for the health_status field. mcpupstream.DefaultHealthStatus = mcpupstreamDescHealthStatus.Default.(string) // mcpupstream.HealthStatusValidator is a validator for the "health_status" field. It is called by the builders before save. mcpupstream.HealthStatusValidator = func() func(string) error { validators := mcpupstreamDescHealthStatus.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(health_status string) error { for _, fn := range fns { if err := fn(health_status); err != nil { return err } } return nil } }() // mcpupstreamDescSyncStatus is the schema descriptor for sync_status field. mcpupstreamDescSyncStatus := mcpupstreamFields[12].Descriptor() // mcpupstream.DefaultSyncStatus holds the default value on creation for the sync_status field. mcpupstream.DefaultSyncStatus = mcpupstreamDescSyncStatus.Default.(string) // mcpupstream.SyncStatusValidator is a validator for the "sync_status" field. It is called by the builders before save. mcpupstream.SyncStatusValidator = func() func(string) error { validators := mcpupstreamDescSyncStatus.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(sync_status string) error { for _, fn := range fns { if err := fn(sync_status); err != nil { return err } } return nil } }() // mcpupstreamDescCreatedAt is the schema descriptor for created_at field. mcpupstreamDescCreatedAt := mcpupstreamFields[15].Descriptor() // mcpupstream.DefaultCreatedAt holds the default value on creation for the created_at field. mcpupstream.DefaultCreatedAt = mcpupstreamDescCreatedAt.Default.(func() time.Time) // mcpupstreamDescUpdatedAt is the schema descriptor for updated_at field. mcpupstreamDescUpdatedAt := mcpupstreamFields[16].Descriptor() // mcpupstream.DefaultUpdatedAt holds the default value on creation for the updated_at field. mcpupstream.DefaultUpdatedAt = mcpupstreamDescUpdatedAt.Default.(func() time.Time) // mcpupstream.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. mcpupstream.UpdateDefaultUpdatedAt = mcpupstreamDescUpdatedAt.UpdateDefault.(func() time.Time) mcpusertoolsettingFields := schema.MCPUserToolSetting{}.Fields() _ = mcpusertoolsettingFields // mcpusertoolsettingDescEnabled is the schema descriptor for enabled field. mcpusertoolsettingDescEnabled := mcpusertoolsettingFields[3].Descriptor() // mcpusertoolsetting.DefaultEnabled holds the default value on creation for the enabled field. mcpusertoolsetting.DefaultEnabled = mcpusertoolsettingDescEnabled.Default.(bool) // mcpusertoolsettingDescCreatedAt is the schema descriptor for created_at field. mcpusertoolsettingDescCreatedAt := mcpusertoolsettingFields[4].Descriptor() // mcpusertoolsetting.DefaultCreatedAt holds the default value on creation for the created_at field. mcpusertoolsetting.DefaultCreatedAt = mcpusertoolsettingDescCreatedAt.Default.(func() time.Time) // mcpusertoolsettingDescUpdatedAt is the schema descriptor for updated_at field. mcpusertoolsettingDescUpdatedAt := mcpusertoolsettingFields[5].Descriptor() // mcpusertoolsetting.DefaultUpdatedAt holds the default value on creation for the updated_at field. mcpusertoolsetting.DefaultUpdatedAt = mcpusertoolsettingDescUpdatedAt.Default.(func() time.Time) // mcpusertoolsetting.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. mcpusertoolsetting.UpdateDefaultUpdatedAt = mcpusertoolsettingDescUpdatedAt.UpdateDefault.(func() time.Time) modelMixin := schema.Model{}.Mixin() modelMixinHooks0 := modelMixin[0].Hooks() model.Hooks[0] = modelMixinHooks0[0] modelMixinInters0 := modelMixin[0].Interceptors() model.Interceptors[0] = modelMixinInters0[0] modelFields := schema.Model{}.Fields() _ = modelFields // modelDescProvider is the schema descriptor for provider field. modelDescProvider := modelFields[2].Descriptor() // model.ProviderValidator is a validator for the "provider" field. It is called by the builders before save. model.ProviderValidator = modelDescProvider.Validators[0].(func(string) error) // modelDescAPIKey is the schema descriptor for api_key field. modelDescAPIKey := modelFields[3].Descriptor() // model.APIKeyValidator is a validator for the "api_key" field. It is called by the builders before save. model.APIKeyValidator = modelDescAPIKey.Validators[0].(func(string) error) // modelDescBaseURL is the schema descriptor for base_url field. modelDescBaseURL := modelFields[4].Descriptor() // model.BaseURLValidator is a validator for the "base_url" field. It is called by the builders before save. model.BaseURLValidator = modelDescBaseURL.Validators[0].(func(string) error) // modelDescModel is the schema descriptor for model field. modelDescModel := modelFields[5].Descriptor() // model.ModelValidator is a validator for the "model" field. It is called by the builders before save. model.ModelValidator = modelDescModel.Validators[0].(func(string) error) // modelDescWeight is the schema descriptor for weight field. modelDescWeight := modelFields[9].Descriptor() // model.DefaultWeight holds the default value on creation for the weight field. model.DefaultWeight = modelDescWeight.Default.(int) // modelDescThinkingEnabled is the schema descriptor for thinking_enabled field. modelDescThinkingEnabled := modelFields[10].Descriptor() // model.DefaultThinkingEnabled holds the default value on creation for the thinking_enabled field. model.DefaultThinkingEnabled = modelDescThinkingEnabled.Default.(bool) // modelDescSupportImage is the schema descriptor for support_image field. modelDescSupportImage := modelFields[11].Descriptor() // model.DefaultSupportImage holds the default value on creation for the support_image field. model.DefaultSupportImage = modelDescSupportImage.Default.(bool) // modelDescIsHidden is the schema descriptor for is_hidden field. modelDescIsHidden := modelFields[12].Descriptor() // model.DefaultIsHidden holds the default value on creation for the is_hidden field. model.DefaultIsHidden = modelDescIsHidden.Default.(bool) // modelDescContextLimit is the schema descriptor for context_limit field. modelDescContextLimit := modelFields[13].Descriptor() // model.DefaultContextLimit holds the default value on creation for the context_limit field. model.DefaultContextLimit = modelDescContextLimit.Default.(int) // modelDescOutputLimit is the schema descriptor for output_limit field. modelDescOutputLimit := modelFields[14].Descriptor() // model.DefaultOutputLimit holds the default value on creation for the output_limit field. model.DefaultOutputLimit = modelDescOutputLimit.Default.(int) // modelDescCreatedAt is the schema descriptor for created_at field. modelDescCreatedAt := modelFields[18].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[19].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) modelapikeyMixin := schema.ModelApiKey{}.Mixin() modelapikeyMixinHooks0 := modelapikeyMixin[0].Hooks() modelapikey.Hooks[0] = modelapikeyMixinHooks0[0] modelapikeyMixinInters0 := modelapikeyMixin[0].Interceptors() modelapikey.Interceptors[0] = modelapikeyMixinInters0[0] modelapikeyFields := schema.ModelApiKey{}.Fields() _ = modelapikeyFields // modelapikeyDescAPIKey is the schema descriptor for api_key field. modelapikeyDescAPIKey := modelapikeyFields[5].Descriptor() // modelapikey.APIKeyValidator is a validator for the "api_key" field. It is called by the builders before save. modelapikey.APIKeyValidator = modelapikeyDescAPIKey.Validators[0].(func(string) error) // modelapikeyDescSigningSecret is the schema descriptor for signing_secret field. modelapikeyDescSigningSecret := modelapikeyFields[6].Descriptor() // modelapikey.DefaultSigningSecret holds the default value on creation for the signing_secret field. modelapikey.DefaultSigningSecret = modelapikeyDescSigningSecret.Default.(string) // modelapikeyDescCreatedAt is the schema descriptor for created_at field. modelapikeyDescCreatedAt := modelapikeyFields[7].Descriptor() // modelapikey.DefaultCreatedAt holds the default value on creation for the created_at field. modelapikey.DefaultCreatedAt = modelapikeyDescCreatedAt.Default.(func() time.Time) modelpricingFields := schema.ModelPricing{}.Fields() _ = modelpricingFields // modelpricingDescAccessLevel is the schema descriptor for access_level field. modelpricingDescAccessLevel := modelpricingFields[2].Descriptor() // modelpricing.AccessLevelValidator is a validator for the "access_level" field. It is called by the builders before save. modelpricing.AccessLevelValidator = modelpricingDescAccessLevel.Validators[0].(func(string) error) // modelpricingDescIsFree is the schema descriptor for is_free field. modelpricingDescIsFree := modelpricingFields[3].Descriptor() // modelpricing.DefaultIsFree holds the default value on creation for the is_free field. modelpricing.DefaultIsFree = modelpricingDescIsFree.Default.(bool) // modelpricingDescInputPrice is the schema descriptor for input_price field. modelpricingDescInputPrice := modelpricingFields[4].Descriptor() // modelpricing.DefaultInputPrice holds the default value on creation for the input_price field. modelpricing.DefaultInputPrice = modelpricingDescInputPrice.Default.(int64) // modelpricingDescOutputPrice is the schema descriptor for output_price field. modelpricingDescOutputPrice := modelpricingFields[5].Descriptor() // modelpricing.DefaultOutputPrice holds the default value on creation for the output_price field. modelpricing.DefaultOutputPrice = modelpricingDescOutputPrice.Default.(int64) // modelpricingDescCreatedAt is the schema descriptor for created_at field. modelpricingDescCreatedAt := modelpricingFields[6].Descriptor() // modelpricing.DefaultCreatedAt holds the default value on creation for the created_at field. modelpricing.DefaultCreatedAt = modelpricingDescCreatedAt.Default.(func() time.Time) // modelpricingDescUpdatedAt is the schema descriptor for updated_at field. modelpricingDescUpdatedAt := modelpricingFields[7].Descriptor() // modelpricing.DefaultUpdatedAt holds the default value on creation for the updated_at field. modelpricing.DefaultUpdatedAt = modelpricingDescUpdatedAt.Default.(func() time.Time) // modelpricing.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. modelpricing.UpdateDefaultUpdatedAt = modelpricingDescUpdatedAt.UpdateDefault.(func() time.Time) notifychannelMixin := schema.NotifyChannel{}.Mixin() notifychannelMixinHooks0 := notifychannelMixin[0].Hooks() notifychannel.Hooks[0] = notifychannelMixinHooks0[0] notifychannelMixinInters0 := notifychannelMixin[0].Interceptors() notifychannel.Interceptors[0] = notifychannelMixinInters0[0] notifychannelFields := schema.NotifyChannel{}.Fields() _ = notifychannelFields // notifychannelDescOwnerType is the schema descriptor for owner_type field. notifychannelDescOwnerType := notifychannelFields[2].Descriptor() // notifychannel.DefaultOwnerType holds the default value on creation for the owner_type field. notifychannel.DefaultOwnerType = consts.NotifyOwnerType(notifychannelDescOwnerType.Default.(string)) // notifychannelDescName is the schema descriptor for name field. notifychannelDescName := notifychannelFields[3].Descriptor() // notifychannel.NameValidator is a validator for the "name" field. It is called by the builders before save. notifychannel.NameValidator = func() func(string) error { validators := notifychannelDescName.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 } }() // notifychannelDescSecret is the schema descriptor for secret field. notifychannelDescSecret := notifychannelFields[6].Descriptor() // notifychannel.DefaultSecret holds the default value on creation for the secret field. notifychannel.DefaultSecret = notifychannelDescSecret.Default.(string) // notifychannelDescTargetID is the schema descriptor for target_id field. notifychannelDescTargetID := notifychannelFields[9].Descriptor() // notifychannel.DefaultTargetID holds the default value on creation for the target_id field. notifychannel.DefaultTargetID = notifychannelDescTargetID.Default.(string) // notifychannelDescEnabled is the schema descriptor for enabled field. notifychannelDescEnabled := notifychannelFields[10].Descriptor() // notifychannel.DefaultEnabled holds the default value on creation for the enabled field. notifychannel.DefaultEnabled = notifychannelDescEnabled.Default.(bool) // notifychannelDescCreatedAt is the schema descriptor for created_at field. notifychannelDescCreatedAt := notifychannelFields[11].Descriptor() // notifychannel.DefaultCreatedAt holds the default value on creation for the created_at field. notifychannel.DefaultCreatedAt = notifychannelDescCreatedAt.Default.(func() time.Time) // notifychannelDescUpdatedAt is the schema descriptor for updated_at field. notifychannelDescUpdatedAt := notifychannelFields[12].Descriptor() // notifychannel.DefaultUpdatedAt holds the default value on creation for the updated_at field. notifychannel.DefaultUpdatedAt = notifychannelDescUpdatedAt.Default.(func() time.Time) // notifychannel.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. notifychannel.UpdateDefaultUpdatedAt = notifychannelDescUpdatedAt.UpdateDefault.(func() time.Time) notifysendlogFields := schema.NotifySendLog{}.Fields() _ = notifysendlogFields // notifysendlogDescError is the schema descriptor for error field. notifysendlogDescError := notifysendlogFields[6].Descriptor() // notifysendlog.DefaultError holds the default value on creation for the error field. notifysendlog.DefaultError = notifysendlogDescError.Default.(string) // notifysendlogDescCreatedAt is the schema descriptor for created_at field. notifysendlogDescCreatedAt := notifysendlogFields[7].Descriptor() // notifysendlog.DefaultCreatedAt holds the default value on creation for the created_at field. notifysendlog.DefaultCreatedAt = notifysendlogDescCreatedAt.Default.(func() time.Time) notifysubscriptionMixin := schema.NotifySubscription{}.Mixin() notifysubscriptionMixinHooks0 := notifysubscriptionMixin[0].Hooks() notifysubscription.Hooks[0] = notifysubscriptionMixinHooks0[0] notifysubscriptionMixinInters0 := notifysubscriptionMixin[0].Interceptors() notifysubscription.Interceptors[0] = notifysubscriptionMixinInters0[0] notifysubscriptionFields := schema.NotifySubscription{}.Fields() _ = notifysubscriptionFields // notifysubscriptionDescScope is the schema descriptor for scope field. notifysubscriptionDescScope := notifysubscriptionFields[2].Descriptor() // notifysubscription.DefaultScope holds the default value on creation for the scope field. notifysubscription.DefaultScope = notifysubscriptionDescScope.Default.(string) // notifysubscriptionDescEnabled is the schema descriptor for enabled field. notifysubscriptionDescEnabled := notifysubscriptionFields[4].Descriptor() // notifysubscription.DefaultEnabled holds the default value on creation for the enabled field. notifysubscription.DefaultEnabled = notifysubscriptionDescEnabled.Default.(bool) // notifysubscriptionDescCreatedAt is the schema descriptor for created_at field. notifysubscriptionDescCreatedAt := notifysubscriptionFields[5].Descriptor() // notifysubscription.DefaultCreatedAt holds the default value on creation for the created_at field. notifysubscription.DefaultCreatedAt = notifysubscriptionDescCreatedAt.Default.(func() time.Time) // notifysubscriptionDescUpdatedAt is the schema descriptor for updated_at field. notifysubscriptionDescUpdatedAt := notifysubscriptionFields[6].Descriptor() // notifysubscription.DefaultUpdatedAt holds the default value on creation for the updated_at field. notifysubscription.DefaultUpdatedAt = notifysubscriptionDescUpdatedAt.Default.(func() time.Time) // notifysubscription.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. notifysubscription.UpdateDefaultUpdatedAt = notifysubscriptionDescUpdatedAt.UpdateDefault.(func() time.Time) projectMixin := schema.Project{}.Mixin() projectMixinHooks0 := projectMixin[0].Hooks() project.Hooks[0] = projectMixinHooks0[0] projectMixinInters0 := projectMixin[0].Interceptors() project.Interceptors[0] = projectMixinInters0[0] projectFields := schema.Project{}.Fields() _ = projectFields // projectDescName is the schema descriptor for name field. projectDescName := projectFields[2].Descriptor() // project.NameValidator is a validator for the "name" field. It is called by the builders before save. project.NameValidator = projectDescName.Validators[0].(func(string) error) // projectDescCreatedAt is the schema descriptor for created_at field. projectDescCreatedAt := projectFields[10].Descriptor() // project.DefaultCreatedAt holds the default value on creation for the created_at field. project.DefaultCreatedAt = projectDescCreatedAt.Default.(func() time.Time) // projectDescUpdatedAt is the schema descriptor for updated_at field. projectDescUpdatedAt := projectFields[11].Descriptor() // project.DefaultUpdatedAt holds the default value on creation for the updated_at field. project.DefaultUpdatedAt = projectDescUpdatedAt.Default.(func() time.Time) // project.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. project.UpdateDefaultUpdatedAt = projectDescUpdatedAt.UpdateDefault.(func() time.Time) projectcollaboratorMixin := schema.ProjectCollaborator{}.Mixin() projectcollaboratorMixinHooks0 := projectcollaboratorMixin[0].Hooks() projectcollaborator.Hooks[0] = projectcollaboratorMixinHooks0[0] projectcollaboratorMixinInters0 := projectcollaboratorMixin[0].Interceptors() projectcollaborator.Interceptors[0] = projectcollaboratorMixinInters0[0] projectcollaboratorFields := schema.ProjectCollaborator{}.Fields() _ = projectcollaboratorFields // projectcollaboratorDescRole is the schema descriptor for role field. projectcollaboratorDescRole := projectcollaboratorFields[3].Descriptor() // projectcollaborator.DefaultRole holds the default value on creation for the role field. projectcollaborator.DefaultRole = consts.ProjectCollaboratorRole(projectcollaboratorDescRole.Default.(string)) // projectcollaboratorDescCreatedAt is the schema descriptor for created_at field. projectcollaboratorDescCreatedAt := projectcollaboratorFields[4].Descriptor() // projectcollaborator.DefaultCreatedAt holds the default value on creation for the created_at field. projectcollaborator.DefaultCreatedAt = projectcollaboratorDescCreatedAt.Default.(func() time.Time) // projectcollaboratorDescUpdatedAt is the schema descriptor for updated_at field. projectcollaboratorDescUpdatedAt := projectcollaboratorFields[5].Descriptor() // projectcollaborator.DefaultUpdatedAt holds the default value on creation for the updated_at field. projectcollaborator.DefaultUpdatedAt = projectcollaboratorDescUpdatedAt.Default.(func() time.Time) // projectcollaborator.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. projectcollaborator.UpdateDefaultUpdatedAt = projectcollaboratorDescUpdatedAt.UpdateDefault.(func() time.Time) projectgitbotFields := schema.ProjectGitBot{}.Fields() _ = projectgitbotFields // projectgitbotDescCreatedAt is the schema descriptor for created_at field. projectgitbotDescCreatedAt := projectgitbotFields[3].Descriptor() // projectgitbot.DefaultCreatedAt holds the default value on creation for the created_at field. projectgitbot.DefaultCreatedAt = projectgitbotDescCreatedAt.Default.(func() time.Time) // projectgitbotDescID is the schema descriptor for id field. projectgitbotDescID := projectgitbotFields[0].Descriptor() // projectgitbot.DefaultID holds the default value on creation for the id field. projectgitbot.DefaultID = projectgitbotDescID.Default.(func() uuid.UUID) projectissueMixin := schema.ProjectIssue{}.Mixin() projectissueMixinHooks0 := projectissueMixin[0].Hooks() projectissue.Hooks[0] = projectissueMixinHooks0[0] projectissueMixinInters0 := projectissueMixin[0].Interceptors() projectissue.Interceptors[0] = projectissueMixinInters0[0] projectissueFields := schema.ProjectIssue{}.Fields() _ = projectissueFields // projectissueDescStatus is the schema descriptor for status field. projectissueDescStatus := projectissueFields[3].Descriptor() // projectissue.DefaultStatus holds the default value on creation for the status field. projectissue.DefaultStatus = consts.ProjectIssueStatus(projectissueDescStatus.Default.(string)) // projectissueDescTitle is the schema descriptor for title field. projectissueDescTitle := projectissueFields[4].Descriptor() // projectissue.TitleValidator is a validator for the "title" field. It is called by the builders before save. projectissue.TitleValidator = projectissueDescTitle.Validators[0].(func(string) error) // projectissueDescPriority is the schema descriptor for priority field. projectissueDescPriority := projectissueFields[9].Descriptor() // projectissue.DefaultPriority holds the default value on creation for the priority field. projectissue.DefaultPriority = consts.ProjectIssuePriority(projectissueDescPriority.Default.(int)) // projectissueDescCreatedAt is the schema descriptor for created_at field. projectissueDescCreatedAt := projectissueFields[10].Descriptor() // projectissue.DefaultCreatedAt holds the default value on creation for the created_at field. projectissue.DefaultCreatedAt = projectissueDescCreatedAt.Default.(func() time.Time) // projectissueDescUpdatedAt is the schema descriptor for updated_at field. projectissueDescUpdatedAt := projectissueFields[11].Descriptor() // projectissue.DefaultUpdatedAt holds the default value on creation for the updated_at field. projectissue.DefaultUpdatedAt = projectissueDescUpdatedAt.Default.(func() time.Time) // projectissue.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. projectissue.UpdateDefaultUpdatedAt = projectissueDescUpdatedAt.UpdateDefault.(func() time.Time) projectissuecommentMixin := schema.ProjectIssueComment{}.Mixin() projectissuecommentMixinHooks0 := projectissuecommentMixin[0].Hooks() projectissuecomment.Hooks[0] = projectissuecommentMixinHooks0[0] projectissuecommentMixinInters0 := projectissuecommentMixin[0].Interceptors() projectissuecomment.Interceptors[0] = projectissuecommentMixinInters0[0] projectissuecommentFields := schema.ProjectIssueComment{}.Fields() _ = projectissuecommentFields // projectissuecommentDescComment is the schema descriptor for comment field. projectissuecommentDescComment := projectissuecommentFields[4].Descriptor() // projectissuecomment.CommentValidator is a validator for the "comment" field. It is called by the builders before save. projectissuecomment.CommentValidator = projectissuecommentDescComment.Validators[0].(func(string) error) // projectissuecommentDescCreatedAt is the schema descriptor for created_at field. projectissuecommentDescCreatedAt := projectissuecommentFields[5].Descriptor() // projectissuecomment.DefaultCreatedAt holds the default value on creation for the created_at field. projectissuecomment.DefaultCreatedAt = projectissuecommentDescCreatedAt.Default.(func() time.Time) // projectissuecommentDescUpdatedAt is the schema descriptor for updated_at field. projectissuecommentDescUpdatedAt := projectissuecommentFields[6].Descriptor() // projectissuecomment.DefaultUpdatedAt holds the default value on creation for the updated_at field. projectissuecomment.DefaultUpdatedAt = projectissuecommentDescUpdatedAt.Default.(func() time.Time) // projectissuecomment.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. projectissuecomment.UpdateDefaultUpdatedAt = projectissuecommentDescUpdatedAt.UpdateDefault.(func() time.Time) projecttaskFields := schema.ProjectTask{}.Fields() _ = projecttaskFields // projecttaskDescCreatedAt is the schema descriptor for created_at field. projecttaskDescCreatedAt := projecttaskFields[11].Descriptor() // projecttask.DefaultCreatedAt holds the default value on creation for the created_at field. projecttask.DefaultCreatedAt = projecttaskDescCreatedAt.Default.(func() time.Time) taskMixin := schema.Task{}.Mixin() taskMixinHooks0 := taskMixin[0].Hooks() task.Hooks[0] = taskMixinHooks0[0] taskMixinInters0 := taskMixin[0].Interceptors() task.Interceptors[0] = taskMixinInters0[0] taskFields := schema.Task{}.Fields() _ = taskFields // taskDescContent is the schema descriptor for content field. taskDescContent := taskFields[4].Descriptor() // task.ContentValidator is a validator for the "content" field. It is called by the builders before save. task.ContentValidator = taskDescContent.Validators[0].(func(string) error) // taskDescCreatedAt is the schema descriptor for created_at field. taskDescCreatedAt := taskFields[9].Descriptor() // task.DefaultCreatedAt holds the default value on creation for the created_at field. task.DefaultCreatedAt = taskDescCreatedAt.Default.(func() time.Time) // taskDescLastActiveAt is the schema descriptor for last_active_at field. taskDescLastActiveAt := taskFields[10].Descriptor() // task.DefaultLastActiveAt holds the default value on creation for the last_active_at field. task.DefaultLastActiveAt = taskDescLastActiveAt.Default.(func() time.Time) // taskDescUpdatedAt is the schema descriptor for updated_at field. taskDescUpdatedAt := taskFields[11].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) taskmodelswitchFields := schema.TaskModelSwitch{}.Fields() _ = taskmodelswitchFields // taskmodelswitchDescRequestID is the schema descriptor for request_id field. taskmodelswitchDescRequestID := taskmodelswitchFields[5].Descriptor() // taskmodelswitch.DefaultRequestID holds the default value on creation for the request_id field. taskmodelswitch.DefaultRequestID = taskmodelswitchDescRequestID.Default.(string) // taskmodelswitchDescLoadSession is the schema descriptor for load_session field. taskmodelswitchDescLoadSession := taskmodelswitchFields[6].Descriptor() // taskmodelswitch.DefaultLoadSession holds the default value on creation for the load_session field. taskmodelswitch.DefaultLoadSession = taskmodelswitchDescLoadSession.Default.(bool) // taskmodelswitchDescMessage is the schema descriptor for message field. taskmodelswitchDescMessage := taskmodelswitchFields[8].Descriptor() // taskmodelswitch.DefaultMessage holds the default value on creation for the message field. taskmodelswitch.DefaultMessage = taskmodelswitchDescMessage.Default.(string) // taskmodelswitchDescSessionID is the schema descriptor for session_id field. taskmodelswitchDescSessionID := taskmodelswitchFields[9].Descriptor() // taskmodelswitch.DefaultSessionID holds the default value on creation for the session_id field. taskmodelswitch.DefaultSessionID = taskmodelswitchDescSessionID.Default.(string) // taskmodelswitchDescCreatedAt is the schema descriptor for created_at field. taskmodelswitchDescCreatedAt := taskmodelswitchFields[10].Descriptor() // taskmodelswitch.DefaultCreatedAt holds the default value on creation for the created_at field. taskmodelswitch.DefaultCreatedAt = taskmodelswitchDescCreatedAt.Default.(func() time.Time) // taskmodelswitchDescUpdatedAt is the schema descriptor for updated_at field. taskmodelswitchDescUpdatedAt := taskmodelswitchFields[11].Descriptor() // taskmodelswitch.DefaultUpdatedAt holds the default value on creation for the updated_at field. taskmodelswitch.DefaultUpdatedAt = taskmodelswitchDescUpdatedAt.Default.(func() time.Time) // taskmodelswitch.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. taskmodelswitch.UpdateDefaultUpdatedAt = taskmodelswitchDescUpdatedAt.UpdateDefault.(func() time.Time) // taskmodelswitchDescID is the schema descriptor for id field. taskmodelswitchDescID := taskmodelswitchFields[0].Descriptor() // taskmodelswitch.DefaultID holds the default value on creation for the id field. taskmodelswitch.DefaultID = taskmodelswitchDescID.Default.(func() uuid.UUID) taskusagestatFields := schema.TaskUsageStat{}.Fields() _ = taskusagestatFields // taskusagestatDescModel is the schema descriptor for model field. taskusagestatDescModel := taskusagestatFields[3].Descriptor() // taskusagestat.DefaultModel holds the default value on creation for the model field. taskusagestat.DefaultModel = taskusagestatDescModel.Default.(string) // taskusagestatDescInputTokens is the schema descriptor for input_tokens field. taskusagestatDescInputTokens := taskusagestatFields[4].Descriptor() // taskusagestat.DefaultInputTokens holds the default value on creation for the input_tokens field. taskusagestat.DefaultInputTokens = taskusagestatDescInputTokens.Default.(int64) // taskusagestatDescOutputTokens is the schema descriptor for output_tokens field. taskusagestatDescOutputTokens := taskusagestatFields[5].Descriptor() // taskusagestat.DefaultOutputTokens holds the default value on creation for the output_tokens field. taskusagestat.DefaultOutputTokens = taskusagestatDescOutputTokens.Default.(int64) // taskusagestatDescTotalTokens is the schema descriptor for total_tokens field. taskusagestatDescTotalTokens := taskusagestatFields[6].Descriptor() // taskusagestat.DefaultTotalTokens holds the default value on creation for the total_tokens field. taskusagestat.DefaultTotalTokens = taskusagestatDescTotalTokens.Default.(int64) // taskusagestatDescCreatedAt is the schema descriptor for created_at field. taskusagestatDescCreatedAt := taskusagestatFields[7].Descriptor() // taskusagestat.DefaultCreatedAt holds the default value on creation for the created_at field. taskusagestat.DefaultCreatedAt = taskusagestatDescCreatedAt.Default.(func() time.Time) // taskusagestatDescID is the schema descriptor for id field. taskusagestatDescID := taskusagestatFields[0].Descriptor() // taskusagestat.DefaultID holds the default value on creation for the id field. taskusagestat.DefaultID = taskusagestatDescID.Default.(func() uuid.UUID) taskvirtualmachineFields := schema.TaskVirtualMachine{}.Fields() _ = taskvirtualmachineFields // taskvirtualmachineDescCreatedAt is the schema descriptor for created_at field. taskvirtualmachineDescCreatedAt := taskvirtualmachineFields[3].Descriptor() // taskvirtualmachine.DefaultCreatedAt holds the default value on creation for the created_at field. taskvirtualmachine.DefaultCreatedAt = taskvirtualmachineDescCreatedAt.Default.(func() time.Time) teamMixin := schema.Team{}.Mixin() teamMixinHooks0 := teamMixin[0].Hooks() team.Hooks[0] = teamMixinHooks0[0] teamMixinInters0 := teamMixin[0].Interceptors() team.Interceptors[0] = teamMixinInters0[0] teamFields := schema.Team{}.Fields() _ = teamFields // teamDescName is the schema descriptor for name field. teamDescName := teamFields[1].Descriptor() // team.NameValidator is a validator for the "name" field. It is called by the builders before save. team.NameValidator = teamDescName.Validators[0].(func(string) error) // teamDescTaskConcurrencyLimit is the schema descriptor for task_concurrency_limit field. teamDescTaskConcurrencyLimit := teamFields[3].Descriptor() // team.DefaultTaskConcurrencyLimit holds the default value on creation for the task_concurrency_limit field. team.DefaultTaskConcurrencyLimit = teamDescTaskConcurrencyLimit.Default.(int) // team.TaskConcurrencyLimitValidator is a validator for the "task_concurrency_limit" field. It is called by the builders before save. team.TaskConcurrencyLimitValidator = teamDescTaskConcurrencyLimit.Validators[0].(func(int) error) // teamDescTaskVMSleepEnabled is the schema descriptor for task_vm_sleep_enabled field. teamDescTaskVMSleepEnabled := teamFields[4].Descriptor() // team.DefaultTaskVMSleepEnabled holds the default value on creation for the task_vm_sleep_enabled field. team.DefaultTaskVMSleepEnabled = teamDescTaskVMSleepEnabled.Default.(bool) // teamDescTaskVMSleepSeconds is the schema descriptor for task_vm_sleep_seconds field. teamDescTaskVMSleepSeconds := teamFields[5].Descriptor() // team.DefaultTaskVMSleepSeconds holds the default value on creation for the task_vm_sleep_seconds field. team.DefaultTaskVMSleepSeconds = teamDescTaskVMSleepSeconds.Default.(int) // teamDescTaskVMRecycleEnabled is the schema descriptor for task_vm_recycle_enabled field. teamDescTaskVMRecycleEnabled := teamFields[6].Descriptor() // team.DefaultTaskVMRecycleEnabled holds the default value on creation for the task_vm_recycle_enabled field. team.DefaultTaskVMRecycleEnabled = teamDescTaskVMRecycleEnabled.Default.(bool) // teamDescTaskVMRecycleSeconds is the schema descriptor for task_vm_recycle_seconds field. teamDescTaskVMRecycleSeconds := teamFields[7].Descriptor() // team.DefaultTaskVMRecycleSeconds holds the default value on creation for the task_vm_recycle_seconds field. team.DefaultTaskVMRecycleSeconds = teamDescTaskVMRecycleSeconds.Default.(int) // teamDescCreatedAt is the schema descriptor for created_at field. teamDescCreatedAt := teamFields[8].Descriptor() // team.DefaultCreatedAt holds the default value on creation for the created_at field. team.DefaultCreatedAt = teamDescCreatedAt.Default.(func() time.Time) // teamDescUpdatedAt is the schema descriptor for updated_at field. teamDescUpdatedAt := teamFields[9].Descriptor() // team.DefaultUpdatedAt holds the default value on creation for the updated_at field. team.DefaultUpdatedAt = teamDescUpdatedAt.Default.(func() time.Time) teamextensionimagearchiveFields := schema.TeamExtensionImageArchive{}.Fields() _ = teamextensionimagearchiveFields // teamextensionimagearchiveDescPackageID is the schema descriptor for package_id field. teamextensionimagearchiveDescPackageID := teamextensionimagearchiveFields[3].Descriptor() // teamextensionimagearchive.PackageIDValidator is a validator for the "package_id" field. It is called by the builders before save. teamextensionimagearchive.PackageIDValidator = teamextensionimagearchiveDescPackageID.Validators[0].(func(string) error) // teamextensionimagearchiveDescExtensionImageID is the schema descriptor for extension_image_id field. teamextensionimagearchiveDescExtensionImageID := teamextensionimagearchiveFields[4].Descriptor() // teamextensionimagearchive.ExtensionImageIDValidator is a validator for the "extension_image_id" field. It is called by the builders before save. teamextensionimagearchive.ExtensionImageIDValidator = teamextensionimagearchiveDescExtensionImageID.Validators[0].(func(string) error) // teamextensionimagearchiveDescVersion is the schema descriptor for version field. teamextensionimagearchiveDescVersion := teamextensionimagearchiveFields[5].Descriptor() // teamextensionimagearchive.VersionValidator is a validator for the "version" field. It is called by the builders before save. teamextensionimagearchive.VersionValidator = teamextensionimagearchiveDescVersion.Validators[0].(func(string) error) // teamextensionimagearchiveDescArch is the schema descriptor for arch field. teamextensionimagearchiveDescArch := teamextensionimagearchiveFields[6].Descriptor() // teamextensionimagearchive.ArchValidator is a validator for the "arch" field. It is called by the builders before save. teamextensionimagearchive.ArchValidator = teamextensionimagearchiveDescArch.Validators[0].(func(string) error) // teamextensionimagearchiveDescImageName is the schema descriptor for image_name field. teamextensionimagearchiveDescImageName := teamextensionimagearchiveFields[7].Descriptor() // teamextensionimagearchive.ImageNameValidator is a validator for the "image_name" field. It is called by the builders before save. teamextensionimagearchive.ImageNameValidator = teamextensionimagearchiveDescImageName.Validators[0].(func(string) error) // teamextensionimagearchiveDescArchivePath is the schema descriptor for archive_path field. teamextensionimagearchiveDescArchivePath := teamextensionimagearchiveFields[8].Descriptor() // teamextensionimagearchive.ArchivePathValidator is a validator for the "archive_path" field. It is called by the builders before save. teamextensionimagearchive.ArchivePathValidator = teamextensionimagearchiveDescArchivePath.Validators[0].(func(string) error) // teamextensionimagearchiveDescArchiveURL is the schema descriptor for archive_url field. teamextensionimagearchiveDescArchiveURL := teamextensionimagearchiveFields[9].Descriptor() // teamextensionimagearchive.ArchiveURLValidator is a validator for the "archive_url" field. It is called by the builders before save. teamextensionimagearchive.ArchiveURLValidator = teamextensionimagearchiveDescArchiveURL.Validators[0].(func(string) error) // teamextensionimagearchiveDescCreatedAt is the schema descriptor for created_at field. teamextensionimagearchiveDescCreatedAt := teamextensionimagearchiveFields[11].Descriptor() // teamextensionimagearchive.DefaultCreatedAt holds the default value on creation for the created_at field. teamextensionimagearchive.DefaultCreatedAt = teamextensionimagearchiveDescCreatedAt.Default.(func() time.Time) // teamextensionimagearchiveDescUpdatedAt is the schema descriptor for updated_at field. teamextensionimagearchiveDescUpdatedAt := teamextensionimagearchiveFields[12].Descriptor() // teamextensionimagearchive.DefaultUpdatedAt holds the default value on creation for the updated_at field. teamextensionimagearchive.DefaultUpdatedAt = teamextensionimagearchiveDescUpdatedAt.Default.(func() time.Time) // teamextensionimagearchive.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. teamextensionimagearchive.UpdateDefaultUpdatedAt = teamextensionimagearchiveDescUpdatedAt.UpdateDefault.(func() time.Time) teamgroupMixin := schema.TeamGroup{}.Mixin() teamgroupMixinHooks0 := teamgroupMixin[0].Hooks() teamgroup.Hooks[0] = teamgroupMixinHooks0[0] teamgroupMixinInters0 := teamgroupMixin[0].Interceptors() teamgroup.Interceptors[0] = teamgroupMixinInters0[0] teamgroupFields := schema.TeamGroup{}.Fields() _ = teamgroupFields // teamgroupDescCreatedAt is the schema descriptor for created_at field. teamgroupDescCreatedAt := teamgroupFields[3].Descriptor() // teamgroup.DefaultCreatedAt holds the default value on creation for the created_at field. teamgroup.DefaultCreatedAt = teamgroupDescCreatedAt.Default.(func() time.Time) // teamgroupDescUpdatedAt is the schema descriptor for updated_at field. teamgroupDescUpdatedAt := teamgroupFields[4].Descriptor() // teamgroup.DefaultUpdatedAt holds the default value on creation for the updated_at field. teamgroup.DefaultUpdatedAt = teamgroupDescUpdatedAt.Default.(func() time.Time) // teamgroup.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. teamgroup.UpdateDefaultUpdatedAt = teamgroupDescUpdatedAt.UpdateDefault.(func() time.Time) teamgrouphostFields := schema.TeamGroupHost{}.Fields() _ = teamgrouphostFields // teamgrouphostDescCreatedAt is the schema descriptor for created_at field. teamgrouphostDescCreatedAt := teamgrouphostFields[3].Descriptor() // teamgrouphost.DefaultCreatedAt holds the default value on creation for the created_at field. teamgrouphost.DefaultCreatedAt = teamgrouphostDescCreatedAt.Default.(func() time.Time) teamgroupimageFields := schema.TeamGroupImage{}.Fields() _ = teamgroupimageFields // teamgroupimageDescCreatedAt is the schema descriptor for created_at field. teamgroupimageDescCreatedAt := teamgroupimageFields[3].Descriptor() // teamgroupimage.DefaultCreatedAt holds the default value on creation for the created_at field. teamgroupimage.DefaultCreatedAt = teamgroupimageDescCreatedAt.Default.(func() time.Time) teamgroupmcpupstreamFields := schema.TeamGroupMCPUpstream{}.Fields() _ = teamgroupmcpupstreamFields // teamgroupmcpupstreamDescCreatedAt is the schema descriptor for created_at field. teamgroupmcpupstreamDescCreatedAt := teamgroupmcpupstreamFields[4].Descriptor() // teamgroupmcpupstream.DefaultCreatedAt holds the default value on creation for the created_at field. teamgroupmcpupstream.DefaultCreatedAt = teamgroupmcpupstreamDescCreatedAt.Default.(func() time.Time) // teamgroupmcpupstreamDescUpdatedAt is the schema descriptor for updated_at field. teamgroupmcpupstreamDescUpdatedAt := teamgroupmcpupstreamFields[5].Descriptor() // teamgroupmcpupstream.DefaultUpdatedAt holds the default value on creation for the updated_at field. teamgroupmcpupstream.DefaultUpdatedAt = teamgroupmcpupstreamDescUpdatedAt.Default.(func() time.Time) // teamgroupmcpupstream.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. teamgroupmcpupstream.UpdateDefaultUpdatedAt = teamgroupmcpupstreamDescUpdatedAt.UpdateDefault.(func() time.Time) teamgroupmemberFields := schema.TeamGroupMember{}.Fields() _ = teamgroupmemberFields // teamgroupmemberDescCreatedAt is the schema descriptor for created_at field. teamgroupmemberDescCreatedAt := teamgroupmemberFields[3].Descriptor() // teamgroupmember.DefaultCreatedAt holds the default value on creation for the created_at field. teamgroupmember.DefaultCreatedAt = teamgroupmemberDescCreatedAt.Default.(func() time.Time) teamgroupmodelFields := schema.TeamGroupModel{}.Fields() _ = teamgroupmodelFields // teamgroupmodelDescCreatedAt is the schema descriptor for created_at field. teamgroupmodelDescCreatedAt := teamgroupmodelFields[3].Descriptor() // teamgroupmodel.DefaultCreatedAt holds the default value on creation for the created_at field. teamgroupmodel.DefaultCreatedAt = teamgroupmodelDescCreatedAt.Default.(func() time.Time) teamhostFields := schema.TeamHost{}.Fields() _ = teamhostFields // teamhostDescCreatedAt is the schema descriptor for created_at field. teamhostDescCreatedAt := teamhostFields[3].Descriptor() // teamhost.DefaultCreatedAt holds the default value on creation for the created_at field. teamhost.DefaultCreatedAt = teamhostDescCreatedAt.Default.(func() time.Time) teamimageFields := schema.TeamImage{}.Fields() _ = teamimageFields // teamimageDescCreatedAt is the schema descriptor for created_at field. teamimageDescCreatedAt := teamimageFields[3].Descriptor() // teamimage.DefaultCreatedAt holds the default value on creation for the created_at field. teamimage.DefaultCreatedAt = teamimageDescCreatedAt.Default.(func() time.Time) teammemberFields := schema.TeamMember{}.Fields() _ = teammemberFields // teammemberDescCreatedAt is the schema descriptor for created_at field. teammemberDescCreatedAt := teammemberFields[4].Descriptor() // teammember.DefaultCreatedAt holds the default value on creation for the created_at field. teammember.DefaultCreatedAt = teammemberDescCreatedAt.Default.(func() time.Time) teammodelFields := schema.TeamModel{}.Fields() _ = teammodelFields // teammodelDescCreatedAt is the schema descriptor for created_at field. teammodelDescCreatedAt := teammodelFields[3].Descriptor() // teammodel.DefaultCreatedAt holds the default value on creation for the created_at field. teammodel.DefaultCreatedAt = teammodelDescCreatedAt.Default.(func() time.Time) teamoidcconfigFields := schema.TeamOIDCConfig{}.Fields() _ = teamoidcconfigFields // teamoidcconfigDescEnabled is the schema descriptor for enabled field. teamoidcconfigDescEnabled := teamoidcconfigFields[2].Descriptor() // teamoidcconfig.DefaultEnabled holds the default value on creation for the enabled field. teamoidcconfig.DefaultEnabled = teamoidcconfigDescEnabled.Default.(bool) // teamoidcconfigDescDisplayName is the schema descriptor for display_name field. teamoidcconfigDescDisplayName := teamoidcconfigFields[3].Descriptor() // teamoidcconfig.DefaultDisplayName holds the default value on creation for the display_name field. teamoidcconfig.DefaultDisplayName = teamoidcconfigDescDisplayName.Default.(string) // teamoidcconfigDescIssuer is the schema descriptor for issuer field. teamoidcconfigDescIssuer := teamoidcconfigFields[4].Descriptor() // teamoidcconfig.IssuerValidator is a validator for the "issuer" field. It is called by the builders before save. teamoidcconfig.IssuerValidator = teamoidcconfigDescIssuer.Validators[0].(func(string) error) // teamoidcconfigDescClientID is the schema descriptor for client_id field. teamoidcconfigDescClientID := teamoidcconfigFields[5].Descriptor() // teamoidcconfig.ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save. teamoidcconfig.ClientIDValidator = teamoidcconfigDescClientID.Validators[0].(func(string) error) // teamoidcconfigDescScopes is the schema descriptor for scopes field. teamoidcconfigDescScopes := teamoidcconfigFields[7].Descriptor() // teamoidcconfig.DefaultScopes holds the default value on creation for the scopes field. teamoidcconfig.DefaultScopes = teamoidcconfigDescScopes.Default.(string) // teamoidcconfigDescAutoCreateMember is the schema descriptor for auto_create_member field. teamoidcconfigDescAutoCreateMember := teamoidcconfigFields[9].Descriptor() // teamoidcconfig.DefaultAutoCreateMember holds the default value on creation for the auto_create_member field. teamoidcconfig.DefaultAutoCreateMember = teamoidcconfigDescAutoCreateMember.Default.(bool) // teamoidcconfigDescAllowPasswordLogin is the schema descriptor for allow_password_login field. teamoidcconfigDescAllowPasswordLogin := teamoidcconfigFields[10].Descriptor() // teamoidcconfig.DefaultAllowPasswordLogin holds the default value on creation for the allow_password_login field. teamoidcconfig.DefaultAllowPasswordLogin = teamoidcconfigDescAllowPasswordLogin.Default.(bool) // teamoidcconfigDescCreatedAt is the schema descriptor for created_at field. teamoidcconfigDescCreatedAt := teamoidcconfigFields[11].Descriptor() // teamoidcconfig.DefaultCreatedAt holds the default value on creation for the created_at field. teamoidcconfig.DefaultCreatedAt = teamoidcconfigDescCreatedAt.Default.(func() time.Time) // teamoidcconfigDescUpdatedAt is the schema descriptor for updated_at field. teamoidcconfigDescUpdatedAt := teamoidcconfigFields[12].Descriptor() // teamoidcconfig.DefaultUpdatedAt holds the default value on creation for the updated_at field. teamoidcconfig.DefaultUpdatedAt = teamoidcconfigDescUpdatedAt.Default.(func() time.Time) // teamoidcconfig.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. teamoidcconfig.UpdateDefaultUpdatedAt = teamoidcconfigDescUpdatedAt.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 // userDescName is the schema descriptor for name field. userDescName := userFields[1].Descriptor() // user.NameValidator is a validator for the "name" field. It is called by the builders before save. user.NameValidator = userDescName.Validators[0].(func(string) error) // userDescIsBlocked is the schema descriptor for is_blocked field. userDescIsBlocked := userFields[7].Descriptor() // user.DefaultIsBlocked holds the default value on creation for the is_blocked field. user.DefaultIsBlocked = userDescIsBlocked.Default.(bool) // userDescCreatedAt is the schema descriptor for created_at field. userDescCreatedAt := userFields[9].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[10].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) 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.PlatformValidator is a validator for the "platform" field. It is called by the builders before save. useridentity.PlatformValidator = useridentityDescPlatform.Validators[0].(func(string) error) // useridentityDescIdentityID is the schema descriptor for identity_id field. useridentityDescIdentityID := useridentityFields[3].Descriptor() // useridentity.IdentityIDValidator is a validator for the "identity_id" field. It is called by the builders before save. useridentity.IdentityIDValidator = useridentityDescIdentityID.Validators[0].(func(string) error) // useridentityDescUsername is the schema descriptor for username field. useridentityDescUsername := useridentityFields[4].Descriptor() // useridentity.UsernameValidator is a validator for the "username" field. It is called by the builders before save. useridentity.UsernameValidator = useridentityDescUsername.Validators[0].(func(string) error) // useridentityDescCreatedAt is the schema descriptor for created_at field. useridentityDescCreatedAt := useridentityFields[7].Descriptor() // useridentity.DefaultCreatedAt holds the default value on creation for the created_at field. useridentity.DefaultCreatedAt = useridentityDescCreatedAt.Default.(func() time.Time) // useridentityDescUpdatedAt is the schema descriptor for updated_at field. useridentityDescUpdatedAt := useridentityFields[8].Descriptor() // useridentity.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. useridentity.UpdateDefaultUpdatedAt = useridentityDescUpdatedAt.UpdateDefault.(func() time.Time) virtualmachineMixin := schema.VirtualMachine{}.Mixin() virtualmachineMixinHooks0 := virtualmachineMixin[0].Hooks() virtualmachine.Hooks[0] = virtualmachineMixinHooks0[0] virtualmachineMixinInters0 := virtualmachineMixin[0].Interceptors() virtualmachine.Interceptors[0] = virtualmachineMixinInters0[0] virtualmachineFields := schema.VirtualMachine{}.Fields() _ = virtualmachineFields // virtualmachineDescCreatedAt is the schema descriptor for created_at field. virtualmachineDescCreatedAt := virtualmachineFields[23].Descriptor() // virtualmachine.DefaultCreatedAt holds the default value on creation for the created_at field. virtualmachine.DefaultCreatedAt = virtualmachineDescCreatedAt.Default.(func() time.Time) // virtualmachineDescUpdatedAt is the schema descriptor for updated_at field. virtualmachineDescUpdatedAt := virtualmachineFields[24].Descriptor() // virtualmachine.DefaultUpdatedAt holds the default value on creation for the updated_at field. virtualmachine.DefaultUpdatedAt = virtualmachineDescUpdatedAt.Default.(func() time.Time) virtualmachinerecyclerecordFields := schema.VirtualMachineRecycleRecord{}.Fields() _ = virtualmachinerecyclerecordFields // virtualmachinerecyclerecordDescRemoteDeleted is the schema descriptor for remote_deleted field. virtualmachinerecyclerecordDescRemoteDeleted := virtualmachinerecyclerecordFields[7].Descriptor() // virtualmachinerecyclerecord.DefaultRemoteDeleted holds the default value on creation for the remote_deleted field. virtualmachinerecyclerecord.DefaultRemoteDeleted = virtualmachinerecyclerecordDescRemoteDeleted.Default.(bool) // virtualmachinerecyclerecordDescCreatedAt is the schema descriptor for created_at field. virtualmachinerecyclerecordDescCreatedAt := virtualmachinerecyclerecordFields[9].Descriptor() // virtualmachinerecyclerecord.DefaultCreatedAt holds the default value on creation for the created_at field. virtualmachinerecyclerecord.DefaultCreatedAt = virtualmachinerecyclerecordDescCreatedAt.Default.(func() time.Time) } const ( Version = "v0.14.5" // Version of ent codegen. Sum = "h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=" // Sum of ent codegen. )