38 lines
1.6 KiB
Go
38 lines
1.6 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package ent
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.harting.dev/csgowtf/csgowtfd/ent/match"
|
|
"git.harting.dev/csgowtf/csgowtfd/ent/player"
|
|
"git.harting.dev/csgowtf/csgowtfd/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() {
|
|
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)
|
|
// matchDescVacPresent is the schema descriptor for vac_present field.
|
|
matchDescVacPresent := matchFields[11].Descriptor()
|
|
// match.DefaultVacPresent holds the default value on creation for the vac_present field.
|
|
match.DefaultVacPresent = matchDescVacPresent.Default.(bool)
|
|
// matchDescGamebanPresent is the schema descriptor for gameban_present field.
|
|
matchDescGamebanPresent := matchFields[12].Descriptor()
|
|
// match.DefaultGamebanPresent holds the default value on creation for the gameban_present field.
|
|
match.DefaultGamebanPresent = matchDescGamebanPresent.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)
|
|
}
|