// Code generated by ent, DO NOT EDIT. package actions const ( // Label holds the string label denoting the actions type in the database. Label = "actions" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRefid holds the string denoting the refid field in the database. FieldRefid = "refid" // FieldCommiter holds the string denoting the commiter field in the database. FieldCommiter = "commiter" // 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" // FieldTemp holds the string denoting the temp field in the database. FieldTemp = "temp" // Table holds the table name of the actions in the database. Table = "actions" ) // Columns holds all SQL columns for actions fields. var Columns = []string{ FieldID, FieldRefid, FieldCommiter, FieldServerid, FieldTarget, FieldType, FieldDuration, FieldReason, FieldTemp, } // 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 ( // DefaultTemp holds the default value on creation for the "temp" field. DefaultTemp bool )