updated deps & regen ent
This commit is contained in:
@@ -4,6 +4,9 @@ package player
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -104,3 +107,133 @@ var (
|
||||
// DefaultSteamUpdated holds the default value on creation for the "steam_updated" field.
|
||||
DefaultSteamUpdated func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Player 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()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAvatar orders the results by the avatar field.
|
||||
func ByAvatar(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAvatar, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVanityURL orders the results by the vanity_url field.
|
||||
func ByVanityURL(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVanityURL, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVanityURLReal orders the results by the vanity_url_real field.
|
||||
func ByVanityURLReal(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVanityURLReal, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVacDate orders the results by the vac_date field.
|
||||
func ByVacDate(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVacDate, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVacCount orders the results by the vac_count field.
|
||||
func ByVacCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVacCount, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameBanDate orders the results by the game_ban_date field.
|
||||
func ByGameBanDate(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameBanDate, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameBanCount orders the results by the game_ban_count field.
|
||||
func ByGameBanCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameBanCount, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySteamUpdated orders the results by the steam_updated field.
|
||||
func BySteamUpdated(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSteamUpdated, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySharecodeUpdated orders the results by the sharecode_updated field.
|
||||
func BySharecodeUpdated(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSharecodeUpdated, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAuthCode orders the results by the auth_code field.
|
||||
func ByAuthCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAuthCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProfileCreated orders the results by the profile_created field.
|
||||
func ByProfileCreated(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProfileCreated, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOldestSharecodeSeen orders the results by the oldest_sharecode_seen field.
|
||||
func ByOldestSharecodeSeen(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOldestSharecodeSeen, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByWins orders the results by the wins field.
|
||||
func ByWins(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldWins, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLooses orders the results by the looses field.
|
||||
func ByLooses(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLooses, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTies orders the results by the ties field.
|
||||
func ByTies(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTies, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatsCount orders the results by stats count.
|
||||
func ByStatsCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newStatsStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByStats orders the results by stats terms.
|
||||
func ByStats(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newStatsStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByMatchesCount orders the results by matches count.
|
||||
func ByMatchesCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newMatchesStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByMatches orders the results by matches terms.
|
||||
func ByMatches(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newMatchesStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
func newStatsStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(StatsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, StatsTable, StatsColumn),
|
||||
)
|
||||
}
|
||||
func newMatchesStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(MatchesInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2M, false, MatchesTable, MatchesPrimaryKey...),
|
||||
)
|
||||
}
|
||||
|
@@ -1089,11 +1089,7 @@ func HasStats() predicate.Player {
|
||||
// HasStatsWith applies the HasEdge predicate on the "stats" edge with a given conditions (other predicates).
|
||||
func HasStatsWith(preds ...predicate.MatchPlayer) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(StatsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, StatsTable, StatsColumn),
|
||||
)
|
||||
step := newStatsStep()
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
p(s)
|
||||
@@ -1116,11 +1112,7 @@ func HasMatches() predicate.Player {
|
||||
// HasMatchesWith applies the HasEdge predicate on the "matches" edge with a given conditions (other predicates).
|
||||
func HasMatchesWith(preds ...predicate.Match) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(MatchesInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2M, false, MatchesTable, MatchesPrimaryKey...),
|
||||
)
|
||||
step := newMatchesStep()
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
p(s)
|
||||
|
Reference in New Issue
Block a user