frankenapi/ent/runtime.go
2022-09-08 09:18:04 +02:00

95 lines
5.6 KiB
Go

// Code generated by ent, DO NOT EDIT.
package ent
import (
"github.com/FrankenBotDev/FrankenAPI/ent/actions"
"github.com/FrankenBotDev/FrankenAPI/ent/schema"
"github.com/FrankenBotDev/FrankenAPI/ent/settings"
"github.com/FrankenBotDev/FrankenAPI/ent/user"
)
// 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() {
actionsFields := schema.Actions{}.Fields()
_ = actionsFields
// actionsDescTemp is the schema descriptor for temp field.
actionsDescTemp := actionsFields[8].Descriptor()
// actions.DefaultTemp holds the default value on creation for the temp field.
actions.DefaultTemp = actionsDescTemp.Default.(bool)
settingsFields := schema.Settings{}.Fields()
_ = settingsFields
// settingsDescLogger is the schema descriptor for logger field.
settingsDescLogger := settingsFields[12].Descriptor()
// settings.DefaultLogger holds the default value on creation for the logger field.
settings.DefaultLogger = settingsDescLogger.Default.(bool)
// settingsDescSpamprotection is the schema descriptor for spamprotection field.
settingsDescSpamprotection := settingsFields[13].Descriptor()
// settings.DefaultSpamprotection holds the default value on creation for the spamprotection field.
settings.DefaultSpamprotection = settingsDescSpamprotection.Default.(bool)
// settingsDescLinkprotection is the schema descriptor for linkprotection field.
settingsDescLinkprotection := settingsFields[14].Descriptor()
// settings.DefaultLinkprotection holds the default value on creation for the linkprotection field.
settings.DefaultLinkprotection = settingsDescLinkprotection.Default.(bool)
// settingsDescWordfilter is the schema descriptor for wordfilter field.
settingsDescWordfilter := settingsFields[15].Descriptor()
// settings.DefaultWordfilter holds the default value on creation for the wordfilter field.
settings.DefaultWordfilter = settingsDescWordfilter.Default.(bool)
// settingsDescGreetings is the schema descriptor for greetings field.
settingsDescGreetings := settingsFields[16].Descriptor()
// settings.DefaultGreetings holds the default value on creation for the greetings field.
settings.DefaultGreetings = settingsDescGreetings.Default.(bool)
// settingsDescApitoggle is the schema descriptor for apitoggle field.
settingsDescApitoggle := settingsFields[17].Descriptor()
// settings.DefaultApitoggle holds the default value on creation for the apitoggle field.
settings.DefaultApitoggle = settingsDescApitoggle.Default.(bool)
// settingsDescModeration is the schema descriptor for moderation field.
settingsDescModeration := settingsFields[18].Descriptor()
// settings.DefaultModeration holds the default value on creation for the moderation field.
settings.DefaultModeration = settingsDescModeration.Default.(bool)
// settingsDescAutomatedmoderation is the schema descriptor for automatedmoderation field.
settingsDescAutomatedmoderation := settingsFields[19].Descriptor()
// settings.DefaultAutomatedmoderation holds the default value on creation for the automatedmoderation field.
settings.DefaultAutomatedmoderation = settingsDescAutomatedmoderation.Default.(bool)
// settingsDescTwitchannounce is the schema descriptor for twitchannounce field.
settingsDescTwitchannounce := settingsFields[20].Descriptor()
// settings.DefaultTwitchannounce holds the default value on creation for the twitchannounce field.
settings.DefaultTwitchannounce = settingsDescTwitchannounce.Default.(bool)
// settingsDescTwitterannounce is the schema descriptor for twitterannounce field.
settingsDescTwitterannounce := settingsFields[21].Descriptor()
// settings.DefaultTwitterannounce holds the default value on creation for the twitterannounce field.
settings.DefaultTwitterannounce = settingsDescTwitterannounce.Default.(bool)
// settingsDescMusic is the schema descriptor for music field.
settingsDescMusic := settingsFields[22].Descriptor()
// settings.DefaultMusic holds the default value on creation for the music field.
settings.DefaultMusic = settingsDescMusic.Default.(bool)
// settingsDescStatspage is the schema descriptor for statspage field.
settingsDescStatspage := settingsFields[23].Descriptor()
// settings.DefaultStatspage holds the default value on creation for the statspage field.
settings.DefaultStatspage = settingsDescStatspage.Default.(bool)
// settingsDescStatsprivate is the schema descriptor for statsprivate field.
settingsDescStatsprivate := settingsFields[24].Descriptor()
// settings.DefaultStatsprivate holds the default value on creation for the statsprivate field.
settings.DefaultStatsprivate = settingsDescStatsprivate.Default.(bool)
// settingsDescStats is the schema descriptor for stats field.
settingsDescStats := settingsFields[25].Descriptor()
// settings.DefaultStats holds the default value on creation for the stats field.
settings.DefaultStats = settingsDescStats.Default.(bool)
userFields := schema.User{}.Fields()
_ = userFields
// userDescXp is the schema descriptor for xp field.
userDescXp := userFields[4].Descriptor()
// user.DefaultXp holds the default value on creation for the xp field.
user.DefaultXp = userDescXp.Default.(int)
// userDescLevel is the schema descriptor for level field.
userDescLevel := userFields[5].Descriptor()
// user.DefaultLevel holds the default value on creation for the level field.
user.DefaultLevel = userDescLevel.Default.(int)
// userDescMsgs is the schema descriptor for msgs field.
userDescMsgs := userFields[6].Descriptor()
// user.DefaultMsgs holds the default value on creation for the msgs field.
user.DefaultMsgs = userDescMsgs.Default.(int)
}