// Code generated by ent, DO NOT EDIT. package logging const ( // Label holds the string label denoting the logging type in the database. Label = "logging" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldCommiter holds the string denoting the commiter field in the database. FieldCommiter = "commiter" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // Table holds the table name of the logging in the database. Table = "loggings" ) // Columns holds all SQL columns for logging fields. var Columns = []string{ FieldID, FieldServerid, FieldType, FieldCommiter, FieldDescription, } // 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 }