mirror of
https://github.com/kevin-DL/football_info_api.git
synced 2026-01-21 22:25:00 +00:00
Initial commit
This commit is contained in:
31
ent/runtime.go
Normal file
31
ent/runtime.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package ent
|
||||
|
||||
import (
|
||||
"football_api/ent/profile"
|
||||
"football_api/ent/schema"
|
||||
"time"
|
||||
|
||||
"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() {
|
||||
profileFields := schema.Profile{}.Fields()
|
||||
_ = profileFields
|
||||
// profileDescCreatedAt is the schema descriptor for created_at field.
|
||||
profileDescCreatedAt := profileFields[3].Descriptor()
|
||||
// profile.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
profile.DefaultCreatedAt = profileDescCreatedAt.Default.(func() time.Time)
|
||||
// profileDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
profileDescUpdatedAt := profileFields[4].Descriptor()
|
||||
// profile.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
profile.DefaultUpdatedAt = profileDescUpdatedAt.Default.(func() time.Time)
|
||||
// profileDescID is the schema descriptor for id field.
|
||||
profileDescID := profileFields[0].Descriptor()
|
||||
// profile.DefaultID holds the default value on creation for the id field.
|
||||
profile.DefaultID = profileDescID.Default.(func() uuid.UUID)
|
||||
}
|
||||
Reference in New Issue
Block a user