Add the event service
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user