// Code generated by ent, DO NOT EDIT. package epici18nmappings import ( "entgo.io/ent/dialect/sql" ) const ( // Label holds the string label denoting the epici18nmappings type in the database. Label = "epic_i18n_mappings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKeyName holds the string denoting the key_name field in the database. FieldKeyName = "key_name" // FieldLanguage holds the string denoting the language field in the database. FieldLanguage = "language" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldCategory holds the string denoting the category field in the database. FieldCategory = "category" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCreator holds the string denoting the creator field in the database. FieldCreator = "creator" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdater holds the string denoting the updater field in the database. FieldUpdater = "updater" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldDeleted holds the string denoting the deleted field in the database. FieldDeleted = "deleted" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // Table holds the table name of the epici18nmappings in the database. Table = "epic_i18n_mappings" ) // Columns holds all SQL columns for epici18nmappings fields. var Columns = []string{ FieldID, FieldKeyName, FieldLanguage, FieldValue, FieldCategory, FieldStatus, FieldCreator, FieldCreateTime, FieldUpdater, FieldUpdateTime, FieldDeleted, FieldCode, } // 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 ( // KeyNameValidator is a validator for the "key_name" field. It is called by the builders before save. KeyNameValidator func(string) error // LanguageValidator is a validator for the "language" field. It is called by the builders before save. LanguageValidator func(string) error // ValueValidator is a validator for the "value" field. It is called by the builders before save. ValueValidator func(string) error // CategoryValidator is a validator for the "category" field. It is called by the builders before save. CategoryValidator func(string) error // CreatorValidator is a validator for the "creator" field. It is called by the builders before save. CreatorValidator func(string) error // UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. UpdaterValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error ) // OrderOption defines the ordering options for the EpicI18NMappings queries. type OrderOption func(*sql.Selector) // ByID orders the results by the id field. func ByID(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldID, opts...).ToFunc() } // ByKeyName orders the results by the key_name field. func ByKeyName(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldKeyName, opts...).ToFunc() } // ByLanguage orders the results by the language field. func ByLanguage(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldLanguage, opts...).ToFunc() } // ByValue orders the results by the value field. func ByValue(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldValue, opts...).ToFunc() } // ByCategory orders the results by the category field. func ByCategory(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldCategory, opts...).ToFunc() } // ByStatus orders the results by the status field. func ByStatus(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldStatus, opts...).ToFunc() } // ByCreator orders the results by the creator field. func ByCreator(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldCreator, opts...).ToFunc() } // ByCreateTime orders the results by the create_time field. func ByCreateTime(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldCreateTime, opts...).ToFunc() } // ByUpdater orders the results by the updater field. func ByUpdater(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldUpdater, opts...).ToFunc() } // ByUpdateTime orders the results by the update_time field. func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldUpdateTime, opts...).ToFunc() } // ByDeleted orders the results by the deleted field. func ByDeleted(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldDeleted, opts...).ToFunc() } // ByCode orders the results by the code field. func ByCode(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldCode, opts...).ToFunc() }