add seven
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"api/ent/group"
|
||||
"api/ent/ma"
|
||||
"api/ent/schema"
|
||||
"api/ent/sev"
|
||||
"api/ent/ue"
|
||||
"api/ent/user"
|
||||
"time"
|
||||
@@ -66,6 +67,20 @@ func init() {
|
||||
maDescCreatedAt := maFields[13].Descriptor()
|
||||
// ma.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
ma.DefaultCreatedAt = maDescCreatedAt.Default.(func() time.Time)
|
||||
sevFields := schema.Sev{}.Fields()
|
||||
_ = sevFields
|
||||
// sevDescPassword is the schema descriptor for password field.
|
||||
sevDescPassword := sevFields[0].Descriptor()
|
||||
// sev.PasswordValidator is a validator for the "password" field. It is called by the builders before save.
|
||||
sev.PasswordValidator = sevDescPassword.Validators[0].(func(string) error)
|
||||
// sevDescLimit is the schema descriptor for limit field.
|
||||
sevDescLimit := sevFields[2].Descriptor()
|
||||
// sev.DefaultLimit holds the default value on creation for the limit field.
|
||||
sev.DefaultLimit = sevDescLimit.Default.(bool)
|
||||
// sevDescCreatedAt is the schema descriptor for created_at field.
|
||||
sevDescCreatedAt := sevFields[11].Descriptor()
|
||||
// sev.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
sev.DefaultCreatedAt = sevDescCreatedAt.Default.(func() time.Time)
|
||||
ueFields := schema.Ue{}.Fields()
|
||||
_ = ueFields
|
||||
// ueDescLimit is the schema descriptor for limit field.
|
||||
|
Reference in New Issue
Block a user