// Code generated by ent, DO NOT EDIT. package fribbleheroset import ( "entgo.io/ent/dialect/sql" ) const ( // Label holds the string label denoting the fribbleheroset type in the database. Label = "fribble_hero_set" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHeroCode holds the string denoting the hero_code field in the database. FieldHeroCode = "hero_code" // FieldJSONContent holds the string denoting the json_content field in the database. FieldJSONContent = "json_content" // FieldHeroName holds the string denoting the hero_name field in the database. FieldHeroName = "hero_name" // 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" // FieldSuccessGet holds the string denoting the success_get field in the database. FieldSuccessGet = "success_get" // Table holds the table name of the fribbleheroset in the database. Table = "fribble_hero_sets" ) // Columns holds all SQL columns for fribbleheroset fields. var Columns = []string{ FieldID, FieldHeroCode, FieldJSONContent, FieldHeroName, FieldCreator, FieldCreateTime, FieldUpdater, FieldUpdateTime, FieldDeleted, FieldSuccessGet, } // 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 ( // HeroCodeValidator is a validator for the "hero_code" field. It is called by the builders before save. HeroCodeValidator func(string) error // JSONContentValidator is a validator for the "json_content" field. It is called by the builders before save. JSONContentValidator func(string) error // HeroNameValidator is a validator for the "hero_name" field. It is called by the builders before save. HeroNameValidator 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 ) // OrderOption defines the ordering options for the FribbleHeroSet 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() } // ByHeroCode orders the results by the hero_code field. func ByHeroCode(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldHeroCode, opts...).ToFunc() } // ByJSONContent orders the results by the json_content field. func ByJSONContent(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldJSONContent, opts...).ToFunc() } // ByHeroName orders the results by the hero_name field. func ByHeroName(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldHeroName, 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() } // BySuccessGet orders the results by the success_get field. func BySuccessGet(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldSuccessGet, opts...).ToFunc() }