// Code generated by ent, DO NOT EDIT. package warns const ( // Label holds the string label denoting the warns type in the database. Label = "warns" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEmitter holds the string denoting the emitter field in the database. FieldEmitter = "emitter" // FieldServerid holds the string denoting the serverid field in the database. FieldServerid = "serverid" // FieldTarget holds the string denoting the target field in the database. FieldTarget = "target" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldDuration holds the string denoting the duration field in the database. FieldDuration = "duration" // FieldReason holds the string denoting the reason field in the database. FieldReason = "reason" // FieldRefid holds the string denoting the refid field in the database. FieldRefid = "refid" // Table holds the table name of the warns in the database. Table = "warns" ) // Columns holds all SQL columns for warns fields. var Columns = []string{ FieldID, FieldEmitter, FieldServerid, FieldTarget, FieldType, FieldDuration, FieldReason, FieldRefid, } // 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 }