2025-02-22 18:39:14 -08:00
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
|
|
|
|
package ent
|
|
|
|
|
2025-02-22 22:11:11 -08:00
|
|
|
import (
|
|
|
|
"git.rgst.io/homelab/klefki/internal/db/ent/machine"
|
|
|
|
"git.rgst.io/homelab/klefki/internal/db/ent/schema"
|
|
|
|
)
|
|
|
|
|
2025-02-22 18:39:14 -08: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() {
|
2025-02-22 22:11:11 -08:00
|
|
|
machineFields := schema.Machine{}.Fields()
|
|
|
|
_ = machineFields
|
|
|
|
// machineDescCreatedAt is the schema descriptor for created_at field.
|
|
|
|
machineDescCreatedAt := machineFields[2].Descriptor()
|
|
|
|
// machine.DefaultCreatedAt holds the default value on creation for the created_at field.
|
|
|
|
machine.DefaultCreatedAt = machineDescCreatedAt.Default.(string)
|
2025-02-22 18:39:14 -08:00
|
|
|
}
|