klefki/internal/db/ent/runtime.go
Jared Allard a5d79f2787
All checks were successful
tests / golangci-lint (push) Successful in 52s
tests / go test (push) Successful in 52s
switch to session model w/ client side enc
2025-03-01 11:01:27 -08:00

20 lines
702 B
Go
Generated

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