// Code generated by ent, DO NOT EDIT. package ent import ( "time" "todolist/ent/schema" "todolist/ent/task" "github.com/google/uuid" ) // 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() { taskFields := schema.Task{}.Fields() _ = taskFields // taskDescName is the schema descriptor for name field. taskDescName := taskFields[1].Descriptor() // task.DefaultName holds the default value on creation for the name field. task.DefaultName = taskDescName.Default.(string) // taskDescCreatedAt is the schema descriptor for created_at field. taskDescCreatedAt := taskFields[2].Descriptor() // task.DefaultCreatedAt holds the default value on creation for the created_at field. task.DefaultCreatedAt = taskDescCreatedAt.Default.(func() time.Time) // taskDescUpdatedAt is the schema descriptor for updated_at field. taskDescUpdatedAt := taskFields[3].Descriptor() // task.DefaultUpdatedAt holds the default value on creation for the updated_at field. task.DefaultUpdatedAt = taskDescUpdatedAt.Default.(func() time.Time) // taskDescIPAddress is the schema descriptor for ip_address field. taskDescIPAddress := taskFields[6].Descriptor() // task.DefaultIPAddress holds the default value on creation for the ip_address field. task.DefaultIPAddress = taskDescIPAddress.Default.(string) // taskDescID is the schema descriptor for id field. taskDescID := taskFields[0].Descriptor() // task.DefaultID holds the default value on creation for the id field. task.DefaultID = taskDescID.Default.(func() uuid.UUID) }