// Code generated by ent, DO NOT EDIT.

package apihistory

const (
	// Label holds the string label denoting the apihistory type in the database.
	Label = "api_history"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldQueryParams holds the string denoting the query_params field in the database.
	FieldQueryParams = "query_params"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// Table holds the table name of the apihistory in the database.
	Table = "api_history"
)

// Columns holds all SQL columns for apihistory fields.
var Columns = []string{
	FieldID,
	FieldVersion,
	FieldQueryParams,
	FieldCreatedAt,
	FieldCreatedBy,
	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
}
