34 lines
1.4 KiB
Go
34 lines
1.4 KiB
Go
|
// Code generated by ent, DO NOT EDIT.
|
||
|
|
||
|
package ent
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"code.icod.de/dalu/gomanager/ent/logentry"
|
||
|
"code.icod.de/dalu/gomanager/ent/project"
|
||
|
"code.icod.de/dalu/gomanager/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() {
|
||
|
logentryFields := schema.Logentry{}.Fields()
|
||
|
_ = logentryFields
|
||
|
// logentryDescDate is the schema descriptor for date field.
|
||
|
logentryDescDate := logentryFields[1].Descriptor()
|
||
|
// logentry.DefaultDate holds the default value on creation for the date field.
|
||
|
logentry.DefaultDate = logentryDescDate.Default.(func() time.Time)
|
||
|
projectFields := schema.Project{}.Fields()
|
||
|
_ = projectFields
|
||
|
// projectDescCreateTime is the schema descriptor for create_time field.
|
||
|
projectDescCreateTime := projectFields[1].Descriptor()
|
||
|
// project.DefaultCreateTime holds the default value on creation for the create_time field.
|
||
|
project.DefaultCreateTime = projectDescCreateTime.Default.(func() time.Time)
|
||
|
// projectDescMoveToTarget is the schema descriptor for move_to_target field.
|
||
|
projectDescMoveToTarget := projectFields[7].Descriptor()
|
||
|
// project.DefaultMoveToTarget holds the default value on creation for the move_to_target field.
|
||
|
project.DefaultMoveToTarget = projectDescMoveToTarget.Default.(bool)
|
||
|
}
|