Files
csgowtfd/ent/runtime.go

29 lines
1.0 KiB
Go

// Code generated by entc, DO NOT EDIT.
package ent
import (
"csgowtfd/ent/match"
"csgowtfd/ent/player"
"csgowtfd/ent/schema"
"time"
)
// 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() {
matchFields := schema.Match{}.Fields()
_ = matchFields
// matchDescDemoParsed is the schema descriptor for demo_parsed field.
matchDescDemoParsed := matchFields[10].Descriptor()
// match.DefaultDemoParsed holds the default value on creation for the demo_parsed field.
match.DefaultDemoParsed = matchDescDemoParsed.Default.(bool)
playerFields := schema.Player{}.Fields()
_ = playerFields
// playerDescSteamUpdated is the schema descriptor for steam_updated field.
playerDescSteamUpdated := playerFields[9].Descriptor()
// player.DefaultSteamUpdated holds the default value on creation for the steam_updated field.
player.DefaultSteamUpdated = playerDescSteamUpdated.Default.(func() time.Time)
}