-
Notifications
You must be signed in to change notification settings - Fork 3
/
runtime.go
29 lines (25 loc) · 1.15 KB
/
runtime.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Code generated by ent, DO NOT EDIT.
package db
import (
"time"
"github.com/artefactual-sdps/enduro/internal/storage/persistence/ent/db/location"
"github.com/artefactual-sdps/enduro/internal/storage/persistence/ent/db/pkg"
"github.com/artefactual-sdps/enduro/internal/storage/persistence/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() {
locationFields := schema.Location{}.Fields()
_ = locationFields
// locationDescCreatedAt is the schema descriptor for created_at field.
locationDescCreatedAt := locationFields[6].Descriptor()
// location.DefaultCreatedAt holds the default value on creation for the created_at field.
location.DefaultCreatedAt = locationDescCreatedAt.Default.(func() time.Time)
pkgFields := schema.Pkg{}.Fields()
_ = pkgFields
// pkgDescCreatedAt is the schema descriptor for created_at field.
pkgDescCreatedAt := pkgFields[5].Descriptor()
// pkg.DefaultCreatedAt holds the default value on creation for the created_at field.
pkg.DefaultCreatedAt = pkgDescCreatedAt.Default.(func() time.Time)
}