// Code generated by ent, DO NOT EDIT. package ent import ( "polaris/ent/downloadclients" "polaris/ent/episode" "polaris/ent/history" "polaris/ent/indexers" "polaris/ent/media" "polaris/ent/notificationclient" "polaris/ent/schema" "polaris/ent/storage" "time" ) // The init function reads all schema descriptors with runtime code // (default values, validators, hooks and policies) and stitches it // to their package variables. func init() { downloadclientsFields := schema.DownloadClients{}.Fields() _ = downloadclientsFields // downloadclientsDescUser is the schema descriptor for user field. downloadclientsDescUser := downloadclientsFields[4].Descriptor() // downloadclients.DefaultUser holds the default value on creation for the user field. downloadclients.DefaultUser = downloadclientsDescUser.Default.(string) // downloadclientsDescPassword is the schema descriptor for password field. downloadclientsDescPassword := downloadclientsFields[5].Descriptor() // downloadclients.DefaultPassword holds the default value on creation for the password field. downloadclients.DefaultPassword = downloadclientsDescPassword.Default.(string) // downloadclientsDescSettings is the schema descriptor for settings field. downloadclientsDescSettings := downloadclientsFields[6].Descriptor() // downloadclients.DefaultSettings holds the default value on creation for the settings field. downloadclients.DefaultSettings = downloadclientsDescSettings.Default.(string) // downloadclientsDescPriority1 is the schema descriptor for priority1 field. downloadclientsDescPriority1 := downloadclientsFields[7].Descriptor() // downloadclients.DefaultPriority1 holds the default value on creation for the priority1 field. downloadclients.DefaultPriority1 = downloadclientsDescPriority1.Default.(int) // downloadclients.Priority1Validator is a validator for the "priority1" field. It is called by the builders before save. downloadclients.Priority1Validator = downloadclientsDescPriority1.Validators[0].(func(int) error) // downloadclientsDescRemoveCompletedDownloads is the schema descriptor for remove_completed_downloads field. downloadclientsDescRemoveCompletedDownloads := downloadclientsFields[8].Descriptor() // downloadclients.DefaultRemoveCompletedDownloads holds the default value on creation for the remove_completed_downloads field. downloadclients.DefaultRemoveCompletedDownloads = downloadclientsDescRemoveCompletedDownloads.Default.(bool) // downloadclientsDescRemoveFailedDownloads is the schema descriptor for remove_failed_downloads field. downloadclientsDescRemoveFailedDownloads := downloadclientsFields[9].Descriptor() // downloadclients.DefaultRemoveFailedDownloads holds the default value on creation for the remove_failed_downloads field. downloadclients.DefaultRemoveFailedDownloads = downloadclientsDescRemoveFailedDownloads.Default.(bool) // downloadclientsDescTags is the schema descriptor for tags field. downloadclientsDescTags := downloadclientsFields[10].Descriptor() // downloadclients.DefaultTags holds the default value on creation for the tags field. downloadclients.DefaultTags = downloadclientsDescTags.Default.(string) episodeFields := schema.Episode{}.Fields() _ = episodeFields // episodeDescMonitored is the schema descriptor for monitored field. episodeDescMonitored := episodeFields[7].Descriptor() // episode.DefaultMonitored holds the default value on creation for the monitored field. episode.DefaultMonitored = episodeDescMonitored.Default.(bool) historyFields := schema.History{}.Fields() _ = historyFields // historyDescSize is the schema descriptor for size field. historyDescSize := historyFields[5].Descriptor() // history.DefaultSize holds the default value on creation for the size field. history.DefaultSize = historyDescSize.Default.(int) indexersFields := schema.Indexers{}.Fields() _ = indexersFields // indexersDescEnableRss is the schema descriptor for enable_rss field. indexersDescEnableRss := indexersFields[3].Descriptor() // indexers.DefaultEnableRss holds the default value on creation for the enable_rss field. indexers.DefaultEnableRss = indexersDescEnableRss.Default.(bool) // indexersDescPriority is the schema descriptor for priority field. indexersDescPriority := indexersFields[4].Descriptor() // indexers.DefaultPriority holds the default value on creation for the priority field. indexers.DefaultPriority = indexersDescPriority.Default.(int) // indexersDescSeedRatio is the schema descriptor for seed_ratio field. indexersDescSeedRatio := indexersFields[5].Descriptor() // indexers.DefaultSeedRatio holds the default value on creation for the seed_ratio field. indexers.DefaultSeedRatio = indexersDescSeedRatio.Default.(float32) // indexersDescDisabled is the schema descriptor for disabled field. indexersDescDisabled := indexersFields[6].Descriptor() // indexers.DefaultDisabled holds the default value on creation for the disabled field. indexers.DefaultDisabled = indexersDescDisabled.Default.(bool) mediaFields := schema.Media{}.Fields() _ = mediaFields // mediaDescCreatedAt is the schema descriptor for created_at field. mediaDescCreatedAt := mediaFields[7].Descriptor() // media.DefaultCreatedAt holds the default value on creation for the created_at field. media.DefaultCreatedAt = mediaDescCreatedAt.Default.(time.Time) // mediaDescAirDate is the schema descriptor for air_date field. mediaDescAirDate := mediaFields[8].Descriptor() // media.DefaultAirDate holds the default value on creation for the air_date field. media.DefaultAirDate = mediaDescAirDate.Default.(string) // mediaDescDownloadHistoryEpisodes is the schema descriptor for download_history_episodes field. mediaDescDownloadHistoryEpisodes := mediaFields[12].Descriptor() // media.DefaultDownloadHistoryEpisodes holds the default value on creation for the download_history_episodes field. media.DefaultDownloadHistoryEpisodes = mediaDescDownloadHistoryEpisodes.Default.(bool) notificationclientFields := schema.NotificationClient{}.Fields() _ = notificationclientFields // notificationclientDescEnabled is the schema descriptor for enabled field. notificationclientDescEnabled := notificationclientFields[3].Descriptor() // notificationclient.DefaultEnabled holds the default value on creation for the enabled field. notificationclient.DefaultEnabled = notificationclientDescEnabled.Default.(bool) storageFields := schema.Storage{}.Fields() _ = storageFields // storageDescDeleted is the schema descriptor for deleted field. storageDescDeleted := storageFields[5].Descriptor() // storage.DefaultDeleted holds the default value on creation for the deleted field. storage.DefaultDeleted = storageDescDeleted.Default.(bool) // storageDescDefault is the schema descriptor for default field. storageDescDefault := storageFields[6].Descriptor() // storage.DefaultDefault holds the default value on creation for the default field. storage.DefaultDefault = storageDescDefault.Default.(bool) }