// Code generated by ent, DO NOT EDIT. package settings const ( // Label holds the string label denoting the settings type in the database. Label = "settings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldServerid holds the string denoting the serverid field in the database. FieldServerid = "serverid" // FieldServername holds the string denoting the servername field in the database. FieldServername = "servername" // FieldOwnerid holds the string denoting the ownerid field in the database. FieldOwnerid = "ownerid" // FieldPermtoken holds the string denoting the permtoken field in the database. FieldPermtoken = "permtoken" // FieldApitoken holds the string denoting the apitoken field in the database. FieldApitoken = "apitoken" // FieldStatspagemode holds the string denoting the statspagemode field in the database. FieldStatspagemode = "statspagemode" // FieldLoggerchannel holds the string denoting the loggerchannel field in the database. FieldLoggerchannel = "loggerchannel" // FieldSpamchannel holds the string denoting the spamchannel field in the database. FieldSpamchannel = "spamchannel" // FieldGreeterchannel holds the string denoting the greeterchannel field in the database. FieldGreeterchannel = "greeterchannel" // FieldGreetermode holds the string denoting the greetermode field in the database. FieldGreetermode = "greetermode" // FieldAnnouncechannel holds the string denoting the announcechannel field in the database. FieldAnnouncechannel = "announcechannel" // FieldLogger holds the string denoting the logger field in the database. FieldLogger = "logger" // FieldSpamprotection holds the string denoting the spamprotection field in the database. FieldSpamprotection = "spamprotection" // FieldLinkprotection holds the string denoting the linkprotection field in the database. FieldLinkprotection = "linkprotection" // FieldWordfilter holds the string denoting the wordfilter field in the database. FieldWordfilter = "wordfilter" // FieldGreetings holds the string denoting the greetings field in the database. FieldGreetings = "greetings" // FieldApitoggle holds the string denoting the apitoggle field in the database. FieldApitoggle = "apitoggle" // FieldModeration holds the string denoting the moderation field in the database. FieldModeration = "moderation" // FieldAutomatedmoderation holds the string denoting the automatedmoderation field in the database. FieldAutomatedmoderation = "automatedmoderation" // FieldTwitchannounce holds the string denoting the twitchannounce field in the database. FieldTwitchannounce = "twitchannounce" // FieldTwitterannounce holds the string denoting the twitterannounce field in the database. FieldTwitterannounce = "twitterannounce" // FieldMusic holds the string denoting the music field in the database. FieldMusic = "music" // FieldStatspage holds the string denoting the statspage field in the database. FieldStatspage = "statspage" // FieldStatsprivate holds the string denoting the statsprivate field in the database. FieldStatsprivate = "statsprivate" // FieldStats holds the string denoting the stats field in the database. FieldStats = "stats" // Table holds the table name of the settings in the database. Table = "settings" ) // Columns holds all SQL columns for settings fields. var Columns = []string{ FieldID, FieldServerid, FieldServername, FieldOwnerid, FieldPermtoken, FieldApitoken, FieldStatspagemode, FieldLoggerchannel, FieldSpamchannel, FieldGreeterchannel, FieldGreetermode, FieldAnnouncechannel, FieldLogger, FieldSpamprotection, FieldLinkprotection, FieldWordfilter, FieldGreetings, FieldApitoggle, FieldModeration, FieldAutomatedmoderation, FieldTwitchannounce, FieldTwitterannounce, FieldMusic, FieldStatspage, FieldStatsprivate, FieldStats, } // ValidColumn reports if the column name is valid (part of the table columns). func ValidColumn(column string) bool { for i := range Columns { if column == Columns[i] { return true } } return false } var ( // DefaultLogger holds the default value on creation for the "logger" field. DefaultLogger bool // DefaultSpamprotection holds the default value on creation for the "spamprotection" field. DefaultSpamprotection bool // DefaultLinkprotection holds the default value on creation for the "linkprotection" field. DefaultLinkprotection bool // DefaultWordfilter holds the default value on creation for the "wordfilter" field. DefaultWordfilter bool // DefaultGreetings holds the default value on creation for the "greetings" field. DefaultGreetings bool // DefaultApitoggle holds the default value on creation for the "apitoggle" field. DefaultApitoggle bool // DefaultModeration holds the default value on creation for the "moderation" field. DefaultModeration bool // DefaultAutomatedmoderation holds the default value on creation for the "automatedmoderation" field. DefaultAutomatedmoderation bool // DefaultTwitchannounce holds the default value on creation for the "twitchannounce" field. DefaultTwitchannounce bool // DefaultTwitterannounce holds the default value on creation for the "twitterannounce" field. DefaultTwitterannounce bool // DefaultMusic holds the default value on creation for the "music" field. DefaultMusic bool // DefaultStatspage holds the default value on creation for the "statspage" field. DefaultStatspage bool // DefaultStatsprivate holds the default value on creation for the "statsprivate" field. DefaultStatsprivate bool // DefaultStats holds the default value on creation for the "stats" field. DefaultStats bool )