// Code generated by ent, DO NOT EDIT. package connector const ( // Label holds the string label denoting the connector type in the database. Label = "connector" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldResourceVersion holds the string denoting the resource_version field in the database. FieldResourceVersion = "resource_version" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // Table holds the table name of the connector in the database. Table = "connectors" ) // Columns holds all SQL columns for connector fields. var Columns = []string{ FieldID, FieldType, FieldName, FieldResourceVersion, FieldConfig, } // 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 ( // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )