klefki/internal/db/ent/runtime.go
Jared Allard 886e8aa11e
All checks were successful
tests / golangci-lint (push) Successful in 51s
tests / go test (push) Successful in 55s
feat: key generation, basic CLI
2025-02-22 22:11:11 -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[2].Descriptor()
// machine.DefaultCreatedAt holds the default value on creation for the created_at field.
machine.DefaultCreatedAt = machineDescCreatedAt.Default.(string)
}