2024-02-14 00:08:14 +01:00
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package ent
|
|
|
|
|
|
|
|
|
|
import (
|
2024-03-13 13:28:06 +01:00
|
|
|
"portfolio/backend/database/ent/schema"
|
|
|
|
|
"portfolio/backend/database/ent/user"
|
2024-02-14 00:08:14 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 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)
|
|
|
|
|
}
|