75 lines
4.0 KiB
Go
75 lines
4.0 KiB
Go
|
// Code generated by entc, DO NOT EDIT.
|
||
|
|
||
|
package ent
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"code.icod.de/postfix/manager/ent/account"
|
||
|
"code.icod.de/postfix/manager/ent/alias"
|
||
|
"code.icod.de/postfix/manager/ent/domain"
|
||
|
"code.icod.de/postfix/manager/ent/logentry"
|
||
|
"code.icod.de/postfix/manager/ent/mailbox"
|
||
|
"code.icod.de/postfix/manager/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() {
|
||
|
accountFields := schema.Account{}.Fields()
|
||
|
_ = accountFields
|
||
|
// accountDescCreated is the schema descriptor for created field.
|
||
|
accountDescCreated := accountFields[1].Descriptor()
|
||
|
// account.DefaultCreated holds the default value on creation for the created field.
|
||
|
account.DefaultCreated = accountDescCreated.Default.(func() time.Time)
|
||
|
// accountDescModified is the schema descriptor for modified field.
|
||
|
accountDescModified := accountFields[2].Descriptor()
|
||
|
// account.DefaultModified holds the default value on creation for the modified field.
|
||
|
account.DefaultModified = accountDescModified.Default.(func() time.Time)
|
||
|
// account.UpdateDefaultModified holds the default value on update for the modified field.
|
||
|
account.UpdateDefaultModified = accountDescModified.UpdateDefault.(func() time.Time)
|
||
|
aliasFields := schema.Alias{}.Fields()
|
||
|
_ = aliasFields
|
||
|
// aliasDescCreated is the schema descriptor for created field.
|
||
|
aliasDescCreated := aliasFields[1].Descriptor()
|
||
|
// alias.DefaultCreated holds the default value on creation for the created field.
|
||
|
alias.DefaultCreated = aliasDescCreated.Default.(func() time.Time)
|
||
|
// aliasDescModified is the schema descriptor for modified field.
|
||
|
aliasDescModified := aliasFields[2].Descriptor()
|
||
|
// alias.DefaultModified holds the default value on creation for the modified field.
|
||
|
alias.DefaultModified = aliasDescModified.Default.(func() time.Time)
|
||
|
// alias.UpdateDefaultModified holds the default value on update for the modified field.
|
||
|
alias.UpdateDefaultModified = aliasDescModified.UpdateDefault.(func() time.Time)
|
||
|
domainFields := schema.Domain{}.Fields()
|
||
|
_ = domainFields
|
||
|
// domainDescCreated is the schema descriptor for created field.
|
||
|
domainDescCreated := domainFields[1].Descriptor()
|
||
|
// domain.DefaultCreated holds the default value on creation for the created field.
|
||
|
domain.DefaultCreated = domainDescCreated.Default.(func() time.Time)
|
||
|
// domainDescModified is the schema descriptor for modified field.
|
||
|
domainDescModified := domainFields[2].Descriptor()
|
||
|
// domain.DefaultModified holds the default value on creation for the modified field.
|
||
|
domain.DefaultModified = domainDescModified.Default.(func() time.Time)
|
||
|
// domain.UpdateDefaultModified holds the default value on update for the modified field.
|
||
|
domain.UpdateDefaultModified = domainDescModified.UpdateDefault.(func() time.Time)
|
||
|
logentryFields := schema.Logentry{}.Fields()
|
||
|
_ = logentryFields
|
||
|
// logentryDescTimestamp is the schema descriptor for timestamp field.
|
||
|
logentryDescTimestamp := logentryFields[1].Descriptor()
|
||
|
// logentry.DefaultTimestamp holds the default value on creation for the timestamp field.
|
||
|
logentry.DefaultTimestamp = logentryDescTimestamp.Default.(func() time.Time)
|
||
|
mailboxFields := schema.Mailbox{}.Fields()
|
||
|
_ = mailboxFields
|
||
|
// mailboxDescCreated is the schema descriptor for created field.
|
||
|
mailboxDescCreated := mailboxFields[2].Descriptor()
|
||
|
// mailbox.DefaultCreated holds the default value on creation for the created field.
|
||
|
mailbox.DefaultCreated = mailboxDescCreated.Default.(func() time.Time)
|
||
|
// mailboxDescModified is the schema descriptor for modified field.
|
||
|
mailboxDescModified := mailboxFields[3].Descriptor()
|
||
|
// mailbox.DefaultModified holds the default value on creation for the modified field.
|
||
|
mailbox.DefaultModified = mailboxDescModified.Default.(func() time.Time)
|
||
|
// mailbox.UpdateDefaultModified holds the default value on update for the modified field.
|
||
|
mailbox.UpdateDefaultModified = mailboxDescModified.UpdateDefault.(func() time.Time)
|
||
|
}
|