21 lines
593 B
Go
21 lines
593 B
Go
|
|
// Code generated by ent, DO NOT EDIT.
|
||
|
|
|
||
|
|
package ent
|
||
|
|
|
||
|
|
import (
|
||
|
|
"portfolio-backend/ent/schema"
|
||
|
|
"portfolio-backend/ent/user"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 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() {
|
||
|
|
userFields := schema.User{}.Fields()
|
||
|
|
_ = userFields
|
||
|
|
// userDescName is the schema descriptor for name field.
|
||
|
|
userDescName := userFields[0].Descriptor()
|
||
|
|
// user.DefaultName holds the default value on creation for the name field.
|
||
|
|
user.DefaultName = userDescName.Default.(string)
|
||
|
|
}
|