Add general queue

This commit is contained in:
Achim Rohn
2025-11-16 19:09:01 +01:00
parent ed7ee7e95c
commit bcc5c7493d
60 changed files with 5657 additions and 8506 deletions
+31
View File
@@ -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)
}