import from unified repo
This commit is contained in:
36
ent/runtime.go
Normal file
36
ent/runtime.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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
|
||||
// matchDescDemoExpired is the schema descriptor for demo_expired field.
|
||||
matchDescDemoExpired := matchFields[10].Descriptor()
|
||||
// match.DefaultDemoExpired holds the default value on creation for the demo_expired field.
|
||||
match.DefaultDemoExpired = matchDescDemoExpired.Default.(bool)
|
||||
// matchDescDemoParsed is the schema descriptor for demo_parsed field.
|
||||
matchDescDemoParsed := matchFields[11].Descriptor()
|
||||
// match.DefaultDemoParsed holds the default value on creation for the demo_parsed field.
|
||||
match.DefaultDemoParsed = matchDescDemoParsed.Default.(bool)
|
||||
playerFields := schema.Player{}.Fields()
|
||||
_ = playerFields
|
||||
// playerDescVac is the schema descriptor for vac field.
|
||||
playerDescVac := playerFields[5].Descriptor()
|
||||
// player.DefaultVac holds the default value on creation for the vac field.
|
||||
player.DefaultVac = playerDescVac.Default.(bool)
|
||||
// playerDescSteamUpdated is the schema descriptor for steam_updated field.
|
||||
playerDescSteamUpdated := playerFields[8].Descriptor()
|
||||
// player.DefaultSteamUpdated holds the default value on creation for the steam_updated field.
|
||||
player.DefaultSteamUpdated = playerDescSteamUpdated.Default.(func() time.Time)
|
||||
}
|
Reference in New Issue
Block a user