Add the event service

This commit is contained in:
Achim Rohn
2025-11-16 19:54:42 +01:00
parent bcc5c7493d
commit 049fefed75
26 changed files with 2656 additions and 9 deletions
+9
View File
@@ -3,6 +3,9 @@
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"
@@ -12,6 +15,12 @@ import (
// (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.