// Code generated by ent, DO NOT EDIT. package epicgvgdefenseteams import ( "entgo.io/ent/dialect/sql" ) const ( // Label holds the string label denoting the epicgvgdefenseteams type in the database. Label = "epic_gvg_defense_teams" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDefenseHeroes holds the string denoting the defense_heroes field in the database. FieldDefenseHeroes = "defense_heroes" // 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" // Table holds the table name of the epicgvgdefenseteams in the database. Table = "epic_gvg_defense_teams" ) // Columns holds all SQL columns for epicgvgdefenseteams fields. var Columns = []string{ FieldID, FieldDefenseHeroes, FieldCreator, FieldCreateTime, FieldUpdater, FieldUpdateTime, FieldDeleted, } // 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 ( // DefenseHeroesValidator is a validator for the "defense_heroes" field. It is called by the builders before save. DefenseHeroesValidator 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 EpicGvgDefenseTeams 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() } // ByDefenseHeroes orders the results by the defense_heroes field. func ByDefenseHeroes(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldDefenseHeroes, 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() }