add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
130
internal/ent/epicherouserbuild/epicherouserbuild.go
Normal file
130
internal/ent/epicherouserbuild/epicherouserbuild.go
Normal file
@@ -0,0 +1,130 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package epicherouserbuild
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the epicherouserbuild type in the database.
|
||||
Label = "epic_hero_user_build"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldArtifactCode holds the string denoting the artifact_code field in the database.
|
||||
FieldArtifactCode = "artifact_code"
|
||||
// FieldHeroCode holds the string denoting the hero_code field in the database.
|
||||
FieldHeroCode = "hero_code"
|
||||
// FieldHeroHeathBuild holds the string denoting the hero_heath_build field in the database.
|
||||
FieldHeroHeathBuild = "hero_heath_build"
|
||||
// FieldHeroAttackBuild holds the string denoting the hero_attack_build field in the database.
|
||||
FieldHeroAttackBuild = "hero_attack_build"
|
||||
// FieldHeroDefBuild holds the string denoting the hero_def_build field in the database.
|
||||
FieldHeroDefBuild = "hero_def_build"
|
||||
// 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 epicherouserbuild in the database.
|
||||
Table = "epic_hero_user_builds"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for epicherouserbuild fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldArtifactCode,
|
||||
FieldHeroCode,
|
||||
FieldHeroHeathBuild,
|
||||
FieldHeroAttackBuild,
|
||||
FieldHeroDefBuild,
|
||||
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 (
|
||||
// ArtifactCodeValidator is a validator for the "artifact_code" field. It is called by the builders before save.
|
||||
ArtifactCodeValidator func(string) error
|
||||
// HeroCodeValidator is a validator for the "hero_code" field. It is called by the builders before save.
|
||||
HeroCodeValidator 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 EpicHeroUserBuild 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()
|
||||
}
|
||||
|
||||
// ByArtifactCode orders the results by the artifact_code field.
|
||||
func ByArtifactCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldArtifactCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHeroCode orders the results by the hero_code field.
|
||||
func ByHeroCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHeroCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHeroHeathBuild orders the results by the hero_heath_build field.
|
||||
func ByHeroHeathBuild(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHeroHeathBuild, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHeroAttackBuild orders the results by the hero_attack_build field.
|
||||
func ByHeroAttackBuild(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHeroAttackBuild, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHeroDefBuild orders the results by the hero_def_build field.
|
||||
func ByHeroDefBuild(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHeroDefBuild, 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()
|
||||
}
|
||||
610
internal/ent/epicherouserbuild/where.go
Normal file
610
internal/ent/epicherouserbuild/where.go
Normal file
@@ -0,0 +1,610 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package epicherouserbuild
|
||||
|
||||
import (
|
||||
"epic-ent/internal/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// ArtifactCode applies equality check predicate on the "artifact_code" field. It's identical to ArtifactCodeEQ.
|
||||
func ArtifactCode(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// HeroCode applies equality check predicate on the "hero_code" field. It's identical to HeroCodeEQ.
|
||||
func HeroCode(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuild applies equality check predicate on the "hero_heath_build" field. It's identical to HeroHeathBuildEQ.
|
||||
func HeroHeathBuild(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuild applies equality check predicate on the "hero_attack_build" field. It's identical to HeroAttackBuildEQ.
|
||||
func HeroAttackBuild(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuild applies equality check predicate on the "hero_def_build" field. It's identical to HeroDefBuildEQ.
|
||||
func HeroDefBuild(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// Creator applies equality check predicate on the "creator" field. It's identical to CreatorEQ.
|
||||
func Creator(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
|
||||
func CreateTime(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// Updater applies equality check predicate on the "updater" field. It's identical to UpdaterEQ.
|
||||
func Updater(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
|
||||
func UpdateTime(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
||||
func Deleted(v bool) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeEQ applies the EQ predicate on the "artifact_code" field.
|
||||
func ArtifactCodeEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeNEQ applies the NEQ predicate on the "artifact_code" field.
|
||||
func ArtifactCodeNEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeIn applies the In predicate on the "artifact_code" field.
|
||||
func ArtifactCodeIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldArtifactCode, vs...))
|
||||
}
|
||||
|
||||
// ArtifactCodeNotIn applies the NotIn predicate on the "artifact_code" field.
|
||||
func ArtifactCodeNotIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldArtifactCode, vs...))
|
||||
}
|
||||
|
||||
// ArtifactCodeGT applies the GT predicate on the "artifact_code" field.
|
||||
func ArtifactCodeGT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeGTE applies the GTE predicate on the "artifact_code" field.
|
||||
func ArtifactCodeGTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeLT applies the LT predicate on the "artifact_code" field.
|
||||
func ArtifactCodeLT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeLTE applies the LTE predicate on the "artifact_code" field.
|
||||
func ArtifactCodeLTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeContains applies the Contains predicate on the "artifact_code" field.
|
||||
func ArtifactCodeContains(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContains(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeHasPrefix applies the HasPrefix predicate on the "artifact_code" field.
|
||||
func ArtifactCodeHasPrefix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasPrefix(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeHasSuffix applies the HasSuffix predicate on the "artifact_code" field.
|
||||
func ArtifactCodeHasSuffix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasSuffix(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeEqualFold applies the EqualFold predicate on the "artifact_code" field.
|
||||
func ArtifactCodeEqualFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEqualFold(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeContainsFold applies the ContainsFold predicate on the "artifact_code" field.
|
||||
func ArtifactCodeContainsFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContainsFold(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeEQ applies the EQ predicate on the "hero_code" field.
|
||||
func HeroCodeEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeNEQ applies the NEQ predicate on the "hero_code" field.
|
||||
func HeroCodeNEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeIn applies the In predicate on the "hero_code" field.
|
||||
func HeroCodeIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldHeroCode, vs...))
|
||||
}
|
||||
|
||||
// HeroCodeNotIn applies the NotIn predicate on the "hero_code" field.
|
||||
func HeroCodeNotIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldHeroCode, vs...))
|
||||
}
|
||||
|
||||
// HeroCodeGT applies the GT predicate on the "hero_code" field.
|
||||
func HeroCodeGT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeGTE applies the GTE predicate on the "hero_code" field.
|
||||
func HeroCodeGTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeLT applies the LT predicate on the "hero_code" field.
|
||||
func HeroCodeLT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeLTE applies the LTE predicate on the "hero_code" field.
|
||||
func HeroCodeLTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeContains applies the Contains predicate on the "hero_code" field.
|
||||
func HeroCodeContains(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContains(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeHasPrefix applies the HasPrefix predicate on the "hero_code" field.
|
||||
func HeroCodeHasPrefix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasPrefix(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeHasSuffix applies the HasSuffix predicate on the "hero_code" field.
|
||||
func HeroCodeHasSuffix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasSuffix(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeEqualFold applies the EqualFold predicate on the "hero_code" field.
|
||||
func HeroCodeEqualFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEqualFold(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroCodeContainsFold applies the ContainsFold predicate on the "hero_code" field.
|
||||
func HeroCodeContainsFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContainsFold(FieldHeroCode, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuildEQ applies the EQ predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildEQ(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuildNEQ applies the NEQ predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildNEQ(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuildIn applies the In predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildIn(vs ...float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldHeroHeathBuild, vs...))
|
||||
}
|
||||
|
||||
// HeroHeathBuildNotIn applies the NotIn predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildNotIn(vs ...float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldHeroHeathBuild, vs...))
|
||||
}
|
||||
|
||||
// HeroHeathBuildGT applies the GT predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildGT(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuildGTE applies the GTE predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildGTE(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuildLT applies the LT predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildLT(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroHeathBuildLTE applies the LTE predicate on the "hero_heath_build" field.
|
||||
func HeroHeathBuildLTE(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldHeroHeathBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuildEQ applies the EQ predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildEQ(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuildNEQ applies the NEQ predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildNEQ(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuildIn applies the In predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildIn(vs ...float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldHeroAttackBuild, vs...))
|
||||
}
|
||||
|
||||
// HeroAttackBuildNotIn applies the NotIn predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildNotIn(vs ...float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldHeroAttackBuild, vs...))
|
||||
}
|
||||
|
||||
// HeroAttackBuildGT applies the GT predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildGT(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuildGTE applies the GTE predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildGTE(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuildLT applies the LT predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildLT(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroAttackBuildLTE applies the LTE predicate on the "hero_attack_build" field.
|
||||
func HeroAttackBuildLTE(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldHeroAttackBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuildEQ applies the EQ predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildEQ(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuildNEQ applies the NEQ predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildNEQ(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuildIn applies the In predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildIn(vs ...float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldHeroDefBuild, vs...))
|
||||
}
|
||||
|
||||
// HeroDefBuildNotIn applies the NotIn predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildNotIn(vs ...float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldHeroDefBuild, vs...))
|
||||
}
|
||||
|
||||
// HeroDefBuildGT applies the GT predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildGT(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuildGTE applies the GTE predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildGTE(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuildLT applies the LT predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildLT(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// HeroDefBuildLTE applies the LTE predicate on the "hero_def_build" field.
|
||||
func HeroDefBuildLTE(v float64) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldHeroDefBuild, v))
|
||||
}
|
||||
|
||||
// CreatorEQ applies the EQ predicate on the "creator" field.
|
||||
func CreatorEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorNEQ applies the NEQ predicate on the "creator" field.
|
||||
func CreatorNEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorIn applies the In predicate on the "creator" field.
|
||||
func CreatorIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldCreator, vs...))
|
||||
}
|
||||
|
||||
// CreatorNotIn applies the NotIn predicate on the "creator" field.
|
||||
func CreatorNotIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldCreator, vs...))
|
||||
}
|
||||
|
||||
// CreatorGT applies the GT predicate on the "creator" field.
|
||||
func CreatorGT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorGTE applies the GTE predicate on the "creator" field.
|
||||
func CreatorGTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorLT applies the LT predicate on the "creator" field.
|
||||
func CreatorLT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorLTE applies the LTE predicate on the "creator" field.
|
||||
func CreatorLTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorContains applies the Contains predicate on the "creator" field.
|
||||
func CreatorContains(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContains(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorHasPrefix applies the HasPrefix predicate on the "creator" field.
|
||||
func CreatorHasPrefix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasPrefix(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorHasSuffix applies the HasSuffix predicate on the "creator" field.
|
||||
func CreatorHasSuffix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasSuffix(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorEqualFold applies the EqualFold predicate on the "creator" field.
|
||||
func CreatorEqualFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEqualFold(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorContainsFold applies the ContainsFold predicate on the "creator" field.
|
||||
func CreatorContainsFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContainsFold(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreateTimeEQ applies the EQ predicate on the "create_time" field.
|
||||
func CreateTimeEQ(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
|
||||
func CreateTimeNEQ(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeIn applies the In predicate on the "create_time" field.
|
||||
func CreateTimeIn(vs ...time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldCreateTime, vs...))
|
||||
}
|
||||
|
||||
// CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
|
||||
func CreateTimeNotIn(vs ...time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldCreateTime, vs...))
|
||||
}
|
||||
|
||||
// CreateTimeGT applies the GT predicate on the "create_time" field.
|
||||
func CreateTimeGT(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeGTE applies the GTE predicate on the "create_time" field.
|
||||
func CreateTimeGTE(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeLT applies the LT predicate on the "create_time" field.
|
||||
func CreateTimeLT(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeLTE applies the LTE predicate on the "create_time" field.
|
||||
func CreateTimeLTE(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeIsNil applies the IsNil predicate on the "create_time" field.
|
||||
func CreateTimeIsNil() predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIsNull(FieldCreateTime))
|
||||
}
|
||||
|
||||
// CreateTimeNotNil applies the NotNil predicate on the "create_time" field.
|
||||
func CreateTimeNotNil() predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotNull(FieldCreateTime))
|
||||
}
|
||||
|
||||
// UpdaterEQ applies the EQ predicate on the "updater" field.
|
||||
func UpdaterEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterNEQ applies the NEQ predicate on the "updater" field.
|
||||
func UpdaterNEQ(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterIn applies the In predicate on the "updater" field.
|
||||
func UpdaterIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldUpdater, vs...))
|
||||
}
|
||||
|
||||
// UpdaterNotIn applies the NotIn predicate on the "updater" field.
|
||||
func UpdaterNotIn(vs ...string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldUpdater, vs...))
|
||||
}
|
||||
|
||||
// UpdaterGT applies the GT predicate on the "updater" field.
|
||||
func UpdaterGT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterGTE applies the GTE predicate on the "updater" field.
|
||||
func UpdaterGTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterLT applies the LT predicate on the "updater" field.
|
||||
func UpdaterLT(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterLTE applies the LTE predicate on the "updater" field.
|
||||
func UpdaterLTE(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterContains applies the Contains predicate on the "updater" field.
|
||||
func UpdaterContains(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContains(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterHasPrefix applies the HasPrefix predicate on the "updater" field.
|
||||
func UpdaterHasPrefix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasPrefix(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterHasSuffix applies the HasSuffix predicate on the "updater" field.
|
||||
func UpdaterHasSuffix(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldHasSuffix(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterEqualFold applies the EqualFold predicate on the "updater" field.
|
||||
func UpdaterEqualFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEqualFold(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterContainsFold applies the ContainsFold predicate on the "updater" field.
|
||||
func UpdaterContainsFold(v string) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldContainsFold(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdateTimeEQ applies the EQ predicate on the "update_time" field.
|
||||
func UpdateTimeEQ(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
|
||||
func UpdateTimeNEQ(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeIn applies the In predicate on the "update_time" field.
|
||||
func UpdateTimeIn(vs ...time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIn(FieldUpdateTime, vs...))
|
||||
}
|
||||
|
||||
// UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
|
||||
func UpdateTimeNotIn(vs ...time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotIn(FieldUpdateTime, vs...))
|
||||
}
|
||||
|
||||
// UpdateTimeGT applies the GT predicate on the "update_time" field.
|
||||
func UpdateTimeGT(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGT(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeGTE applies the GTE predicate on the "update_time" field.
|
||||
func UpdateTimeGTE(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldGTE(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeLT applies the LT predicate on the "update_time" field.
|
||||
func UpdateTimeLT(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLT(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeLTE applies the LTE predicate on the "update_time" field.
|
||||
func UpdateTimeLTE(v time.Time) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldLTE(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeIsNil applies the IsNil predicate on the "update_time" field.
|
||||
func UpdateTimeIsNil() predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldIsNull(FieldUpdateTime))
|
||||
}
|
||||
|
||||
// UpdateTimeNotNil applies the NotNil predicate on the "update_time" field.
|
||||
func UpdateTimeNotNil() predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNotNull(FieldUpdateTime))
|
||||
}
|
||||
|
||||
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
||||
func DeletedEQ(v bool) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
||||
func DeletedNEQ(v bool) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.FieldNEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.EpicHeroUserBuild) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.EpicHeroUserBuild) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.EpicHeroUserBuild) predicate.EpicHeroUserBuild {
|
||||
return predicate.EpicHeroUserBuild(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user