Files
polaris/ent/runtime.go
2024-07-06 10:59:30 +08:00

60 lines
3.5 KiB
Go

// Code generated by ent, DO NOT EDIT.
package ent
import (
"polaris/ent/downloadclients"
"polaris/ent/indexers"
"polaris/ent/schema"
"polaris/ent/series"
"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)
// downloadclientsDescPriority is the schema descriptor for priority field.
downloadclientsDescPriority := downloadclientsFields[7].Descriptor()
// downloadclients.DefaultPriority holds the default value on creation for the priority field.
downloadclients.DefaultPriority = downloadclientsDescPriority.Default.(string)
// 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)
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)
seriesFields := schema.Series{}.Fields()
_ = seriesFields
// seriesDescCreatedAt is the schema descriptor for created_at field.
seriesDescCreatedAt := seriesFields[7].Descriptor()
// series.DefaultCreatedAt holds the default value on creation for the created_at field.
series.DefaultCreatedAt = seriesDescCreatedAt.Default.(time.Time)
}