Add general queue
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package ent
|
||||
|
||||
import (
|
||||
"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() {
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user