Files
ersteller/schema/ent/runtime.go
T
2025-11-16 19:54:42 +01:00

41 lines
1.9 KiB
Go

// Code generated by ent, DO NOT EDIT.
package ent
import (
"time"
"git.gorlug.de/code/ersteller/schema/ent/event"
"git.gorlug.de/code/ersteller/schema/ent/generalqueue"
"git.gorlug.de/code/ersteller/schema/ent/generalqueuestate"
"git.gorlug.de/code/ersteller/schema/ent/schema"
)
// 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() {
eventFields := schema.Event{}.Fields()
_ = eventFields
// eventDescCreatedAt is the schema descriptor for created_at field.
eventDescCreatedAt := eventFields[2].Descriptor()
// event.DefaultCreatedAt holds the default value on creation for the created_at field.
event.DefaultCreatedAt = eventDescCreatedAt.Default.(func() time.Time)
generalqueueFields := schema.GeneralQueue{}.Fields()
_ = generalqueueFields
// generalqueueDescNumberOfTries is the schema descriptor for number_of_tries field.
generalqueueDescNumberOfTries := generalqueueFields[3].Descriptor()
// generalqueue.DefaultNumberOfTries holds the default value on creation for the number_of_tries field.
generalqueue.DefaultNumberOfTries = generalqueueDescNumberOfTries.Default.(int)
// generalqueueDescMaxRetries is the schema descriptor for max_retries field.
generalqueueDescMaxRetries := generalqueueFields[4].Descriptor()
// generalqueue.DefaultMaxRetries holds the default value on creation for the max_retries field.
generalqueue.DefaultMaxRetries = generalqueueDescMaxRetries.Default.(int)
generalqueuestateFields := schema.GeneralQueueState{}.Fields()
_ = generalqueuestateFields
// generalqueuestateDescRunning is the schema descriptor for running field.
generalqueuestateDescRunning := generalqueuestateFields[1].Descriptor()
// generalqueuestate.DefaultRunning holds the default value on creation for the running field.
generalqueuestate.DefaultRunning = generalqueuestateDescRunning.Default.(bool)
}