added roundstats with eco info, switched to avatar hash
This commit is contained in:
@@ -13,8 +13,8 @@ const (
|
||||
FieldID = "id"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldAvatarURL holds the string denoting the avatar_url field in the database.
|
||||
FieldAvatarURL = "avatar_url"
|
||||
// FieldAvatar holds the string denoting the avatar field in the database.
|
||||
FieldAvatar = "avatar"
|
||||
// FieldVanityURL holds the string denoting the vanity_url field in the database.
|
||||
FieldVanityURL = "vanity_url"
|
||||
// FieldVanityURLReal holds the string denoting the vanity_url_real field in the database.
|
||||
@@ -57,7 +57,7 @@ const (
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldName,
|
||||
FieldAvatarURL,
|
||||
FieldAvatar,
|
||||
FieldVanityURL,
|
||||
FieldVanityURLReal,
|
||||
FieldVac,
|
||||
|
@@ -100,10 +100,10 @@ func Name(v string) predicate.Player {
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
|
||||
func AvatarURL(v string) predicate.Player {
|
||||
// Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
|
||||
func Avatar(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.EQ(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
@@ -295,22 +295,22 @@ func NameContainsFold(v string) predicate.Player {
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
|
||||
func AvatarURLEQ(v string) predicate.Player {
|
||||
// AvatarEQ applies the EQ predicate on the "avatar" field.
|
||||
func AvatarEQ(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.EQ(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
|
||||
func AvatarURLNEQ(v string) predicate.Player {
|
||||
// AvatarNEQ applies the NEQ predicate on the "avatar" field.
|
||||
func AvatarNEQ(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.NEQ(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.NEQ(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLIn applies the In predicate on the "avatar_url" field.
|
||||
func AvatarURLIn(vs ...string) predicate.Player {
|
||||
// AvatarIn applies the In predicate on the "avatar" field.
|
||||
func AvatarIn(vs ...string) predicate.Player {
|
||||
v := make([]interface{}, len(vs))
|
||||
for i := range v {
|
||||
v[i] = vs[i]
|
||||
@@ -322,12 +322,12 @@ func AvatarURLIn(vs ...string) predicate.Player {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldAvatarURL), v...))
|
||||
s.Where(sql.In(s.C(FieldAvatar), v...))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
|
||||
func AvatarURLNotIn(vs ...string) predicate.Player {
|
||||
// AvatarNotIn applies the NotIn predicate on the "avatar" field.
|
||||
func AvatarNotIn(vs ...string) predicate.Player {
|
||||
v := make([]interface{}, len(vs))
|
||||
for i := range v {
|
||||
v[i] = vs[i]
|
||||
@@ -339,84 +339,84 @@ func AvatarURLNotIn(vs ...string) predicate.Player {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldAvatarURL), v...))
|
||||
s.Where(sql.NotIn(s.C(FieldAvatar), v...))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLGT applies the GT predicate on the "avatar_url" field.
|
||||
func AvatarURLGT(v string) predicate.Player {
|
||||
// AvatarGT applies the GT predicate on the "avatar" field.
|
||||
func AvatarGT(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.GT(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.GT(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
|
||||
func AvatarURLGTE(v string) predicate.Player {
|
||||
// AvatarGTE applies the GTE predicate on the "avatar" field.
|
||||
func AvatarGTE(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.GTE(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.GTE(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLLT applies the LT predicate on the "avatar_url" field.
|
||||
func AvatarURLLT(v string) predicate.Player {
|
||||
// AvatarLT applies the LT predicate on the "avatar" field.
|
||||
func AvatarLT(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.LT(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.LT(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
|
||||
func AvatarURLLTE(v string) predicate.Player {
|
||||
// AvatarLTE applies the LTE predicate on the "avatar" field.
|
||||
func AvatarLTE(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.LTE(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.LTE(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLContains applies the Contains predicate on the "avatar_url" field.
|
||||
func AvatarURLContains(v string) predicate.Player {
|
||||
// AvatarContains applies the Contains predicate on the "avatar" field.
|
||||
func AvatarContains(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.Contains(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.Contains(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
|
||||
func AvatarURLHasPrefix(v string) predicate.Player {
|
||||
// AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
|
||||
func AvatarHasPrefix(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.HasPrefix(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.HasPrefix(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
|
||||
func AvatarURLHasSuffix(v string) predicate.Player {
|
||||
// AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
|
||||
func AvatarHasSuffix(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.HasSuffix(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.HasSuffix(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
|
||||
func AvatarURLIsNil() predicate.Player {
|
||||
// AvatarIsNil applies the IsNil predicate on the "avatar" field.
|
||||
func AvatarIsNil() predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.IsNull(s.C(FieldAvatarURL)))
|
||||
s.Where(sql.IsNull(s.C(FieldAvatar)))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.
|
||||
func AvatarURLNotNil() predicate.Player {
|
||||
// AvatarNotNil applies the NotNil predicate on the "avatar" field.
|
||||
func AvatarNotNil() predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.NotNull(s.C(FieldAvatarURL)))
|
||||
s.Where(sql.NotNull(s.C(FieldAvatar)))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
|
||||
func AvatarURLEqualFold(v string) predicate.Player {
|
||||
// AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
|
||||
func AvatarEqualFold(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.EqualFold(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.EqualFold(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
// AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
|
||||
func AvatarURLContainsFold(v string) predicate.Player {
|
||||
// AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
|
||||
func AvatarContainsFold(v string) predicate.Player {
|
||||
return predicate.Player(func(s *sql.Selector) {
|
||||
s.Where(sql.ContainsFold(s.C(FieldAvatarURL), v))
|
||||
s.Where(sql.ContainsFold(s.C(FieldAvatar), v))
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user