add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
170
internal/ent/epicartifactinfo/epicartifactinfo.go
Normal file
170
internal/ent/epicartifactinfo/epicartifactinfo.go
Normal file
@@ -0,0 +1,170 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package epicartifactinfo
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the epicartifactinfo type in the database.
|
||||
Label = "epic_artifact_info"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldArtifactName holds the string denoting the artifact_name field in the database.
|
||||
FieldArtifactName = "artifact_name"
|
||||
// FieldArtifactCode holds the string denoting the artifact_code field in the database.
|
||||
FieldArtifactCode = "artifact_code"
|
||||
// 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"
|
||||
// FieldStatsHealth holds the string denoting the stats_health field in the database.
|
||||
FieldStatsHealth = "stats_health"
|
||||
// FieldStatsAttack holds the string denoting the stats_attack field in the database.
|
||||
FieldStatsAttack = "stats_attack"
|
||||
// FieldStatsDefense holds the string denoting the stats_defense field in the database.
|
||||
FieldStatsDefense = "stats_defense"
|
||||
// FieldRarity holds the string denoting the rarity field in the database.
|
||||
FieldRarity = "rarity"
|
||||
// FieldRole holds the string denoting the role field in the database.
|
||||
FieldRole = "role"
|
||||
// FieldArtifactNameEn holds the string denoting the artifact_name_en field in the database.
|
||||
FieldArtifactNameEn = "artifact_name_en"
|
||||
// FieldImageURL holds the string denoting the image_url field in the database.
|
||||
FieldImageURL = "image_url"
|
||||
// Table holds the table name of the epicartifactinfo in the database.
|
||||
Table = "epic_artifact_infos"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for epicartifactinfo fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldArtifactName,
|
||||
FieldArtifactCode,
|
||||
FieldCreator,
|
||||
FieldCreateTime,
|
||||
FieldUpdater,
|
||||
FieldUpdateTime,
|
||||
FieldDeleted,
|
||||
FieldStatsHealth,
|
||||
FieldStatsAttack,
|
||||
FieldStatsDefense,
|
||||
FieldRarity,
|
||||
FieldRole,
|
||||
FieldArtifactNameEn,
|
||||
FieldImageURL,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// ArtifactNameValidator is a validator for the "artifact_name" field. It is called by the builders before save.
|
||||
ArtifactNameValidator func(string) error
|
||||
// ArtifactCodeValidator is a validator for the "artifact_code" field. It is called by the builders before save.
|
||||
ArtifactCodeValidator 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
|
||||
// RarityValidator is a validator for the "rarity" field. It is called by the builders before save.
|
||||
RarityValidator func(string) error
|
||||
// RoleValidator is a validator for the "role" field. It is called by the builders before save.
|
||||
RoleValidator func(string) error
|
||||
// ArtifactNameEnValidator is a validator for the "artifact_name_en" field. It is called by the builders before save.
|
||||
ArtifactNameEnValidator func(string) error
|
||||
// ImageURLValidator is a validator for the "image_url" field. It is called by the builders before save.
|
||||
ImageURLValidator func(string) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the EpicArtifactInfo 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()
|
||||
}
|
||||
|
||||
// ByArtifactName orders the results by the artifact_name field.
|
||||
func ByArtifactName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldArtifactName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByArtifactCode orders the results by the artifact_code field.
|
||||
func ByArtifactCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldArtifactCode, 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()
|
||||
}
|
||||
|
||||
// ByStatsHealth orders the results by the stats_health field.
|
||||
func ByStatsHealth(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatsHealth, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatsAttack orders the results by the stats_attack field.
|
||||
func ByStatsAttack(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatsAttack, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatsDefense orders the results by the stats_defense field.
|
||||
func ByStatsDefense(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatsDefense, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRarity orders the results by the rarity field.
|
||||
func ByRarity(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRarity, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRole orders the results by the role field.
|
||||
func ByRole(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRole, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByArtifactNameEn orders the results by the artifact_name_en field.
|
||||
func ByArtifactNameEn(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldArtifactNameEn, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByImageURL orders the results by the image_url field.
|
||||
func ByImageURL(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldImageURL, opts...).ToFunc()
|
||||
}
|
||||
890
internal/ent/epicartifactinfo/where.go
Normal file
890
internal/ent/epicartifactinfo/where.go
Normal file
@@ -0,0 +1,890 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package epicartifactinfo
|
||||
|
||||
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.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int64) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// ArtifactName applies equality check predicate on the "artifact_name" field. It's identical to ArtifactNameEQ.
|
||||
func ArtifactName(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactCode applies equality check predicate on the "artifact_code" field. It's identical to ArtifactCodeEQ.
|
||||
func ArtifactCode(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// Creator applies equality check predicate on the "creator" field. It's identical to CreatorEQ.
|
||||
func Creator(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(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.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// Updater applies equality check predicate on the "updater" field. It's identical to UpdaterEQ.
|
||||
func Updater(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(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.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
||||
func Deleted(v bool) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// StatsHealth applies equality check predicate on the "stats_health" field. It's identical to StatsHealthEQ.
|
||||
func StatsHealth(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsAttack applies equality check predicate on the "stats_attack" field. It's identical to StatsAttackEQ.
|
||||
func StatsAttack(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsDefense applies equality check predicate on the "stats_defense" field. It's identical to StatsDefenseEQ.
|
||||
func StatsDefense(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// Rarity applies equality check predicate on the "rarity" field. It's identical to RarityEQ.
|
||||
func Rarity(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldRarity, v))
|
||||
}
|
||||
|
||||
// Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
|
||||
func Role(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldRole, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEn applies equality check predicate on the "artifact_name_en" field. It's identical to ArtifactNameEnEQ.
|
||||
func ArtifactNameEn(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.
|
||||
func ImageURL(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEQ applies the EQ predicate on the "artifact_name" field.
|
||||
func ArtifactNameEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameNEQ applies the NEQ predicate on the "artifact_name" field.
|
||||
func ArtifactNameNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameIn applies the In predicate on the "artifact_name" field.
|
||||
func ArtifactNameIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldArtifactName, vs...))
|
||||
}
|
||||
|
||||
// ArtifactNameNotIn applies the NotIn predicate on the "artifact_name" field.
|
||||
func ArtifactNameNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldArtifactName, vs...))
|
||||
}
|
||||
|
||||
// ArtifactNameGT applies the GT predicate on the "artifact_name" field.
|
||||
func ArtifactNameGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameGTE applies the GTE predicate on the "artifact_name" field.
|
||||
func ArtifactNameGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameLT applies the LT predicate on the "artifact_name" field.
|
||||
func ArtifactNameLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameLTE applies the LTE predicate on the "artifact_name" field.
|
||||
func ArtifactNameLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameContains applies the Contains predicate on the "artifact_name" field.
|
||||
func ArtifactNameContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameHasPrefix applies the HasPrefix predicate on the "artifact_name" field.
|
||||
func ArtifactNameHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameHasSuffix applies the HasSuffix predicate on the "artifact_name" field.
|
||||
func ArtifactNameHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEqualFold applies the EqualFold predicate on the "artifact_name" field.
|
||||
func ArtifactNameEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactNameContainsFold applies the ContainsFold predicate on the "artifact_name" field.
|
||||
func ArtifactNameContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldArtifactName, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeEQ applies the EQ predicate on the "artifact_code" field.
|
||||
func ArtifactCodeEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeNEQ applies the NEQ predicate on the "artifact_code" field.
|
||||
func ArtifactCodeNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeIn applies the In predicate on the "artifact_code" field.
|
||||
func ArtifactCodeIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldArtifactCode, vs...))
|
||||
}
|
||||
|
||||
// ArtifactCodeNotIn applies the NotIn predicate on the "artifact_code" field.
|
||||
func ArtifactCodeNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldArtifactCode, vs...))
|
||||
}
|
||||
|
||||
// ArtifactCodeGT applies the GT predicate on the "artifact_code" field.
|
||||
func ArtifactCodeGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeGTE applies the GTE predicate on the "artifact_code" field.
|
||||
func ArtifactCodeGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeLT applies the LT predicate on the "artifact_code" field.
|
||||
func ArtifactCodeLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeLTE applies the LTE predicate on the "artifact_code" field.
|
||||
func ArtifactCodeLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeContains applies the Contains predicate on the "artifact_code" field.
|
||||
func ArtifactCodeContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeHasPrefix applies the HasPrefix predicate on the "artifact_code" field.
|
||||
func ArtifactCodeHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeHasSuffix applies the HasSuffix predicate on the "artifact_code" field.
|
||||
func ArtifactCodeHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeEqualFold applies the EqualFold predicate on the "artifact_code" field.
|
||||
func ArtifactCodeEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// ArtifactCodeContainsFold applies the ContainsFold predicate on the "artifact_code" field.
|
||||
func ArtifactCodeContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldArtifactCode, v))
|
||||
}
|
||||
|
||||
// CreatorEQ applies the EQ predicate on the "creator" field.
|
||||
func CreatorEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorNEQ applies the NEQ predicate on the "creator" field.
|
||||
func CreatorNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorIn applies the In predicate on the "creator" field.
|
||||
func CreatorIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldCreator, vs...))
|
||||
}
|
||||
|
||||
// CreatorNotIn applies the NotIn predicate on the "creator" field.
|
||||
func CreatorNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldCreator, vs...))
|
||||
}
|
||||
|
||||
// CreatorGT applies the GT predicate on the "creator" field.
|
||||
func CreatorGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorGTE applies the GTE predicate on the "creator" field.
|
||||
func CreatorGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorLT applies the LT predicate on the "creator" field.
|
||||
func CreatorLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorLTE applies the LTE predicate on the "creator" field.
|
||||
func CreatorLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorContains applies the Contains predicate on the "creator" field.
|
||||
func CreatorContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorHasPrefix applies the HasPrefix predicate on the "creator" field.
|
||||
func CreatorHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorHasSuffix applies the HasSuffix predicate on the "creator" field.
|
||||
func CreatorHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorEqualFold applies the EqualFold predicate on the "creator" field.
|
||||
func CreatorEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreatorContainsFold applies the ContainsFold predicate on the "creator" field.
|
||||
func CreatorContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldCreator, v))
|
||||
}
|
||||
|
||||
// CreateTimeEQ applies the EQ predicate on the "create_time" field.
|
||||
func CreateTimeEQ(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
|
||||
func CreateTimeNEQ(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeIn applies the In predicate on the "create_time" field.
|
||||
func CreateTimeIn(vs ...time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldCreateTime, vs...))
|
||||
}
|
||||
|
||||
// CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
|
||||
func CreateTimeNotIn(vs ...time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldCreateTime, vs...))
|
||||
}
|
||||
|
||||
// CreateTimeGT applies the GT predicate on the "create_time" field.
|
||||
func CreateTimeGT(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeGTE applies the GTE predicate on the "create_time" field.
|
||||
func CreateTimeGTE(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeLT applies the LT predicate on the "create_time" field.
|
||||
func CreateTimeLT(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeLTE applies the LTE predicate on the "create_time" field.
|
||||
func CreateTimeLTE(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldCreateTime, v))
|
||||
}
|
||||
|
||||
// CreateTimeIsNil applies the IsNil predicate on the "create_time" field.
|
||||
func CreateTimeIsNil() predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIsNull(FieldCreateTime))
|
||||
}
|
||||
|
||||
// CreateTimeNotNil applies the NotNil predicate on the "create_time" field.
|
||||
func CreateTimeNotNil() predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotNull(FieldCreateTime))
|
||||
}
|
||||
|
||||
// UpdaterEQ applies the EQ predicate on the "updater" field.
|
||||
func UpdaterEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterNEQ applies the NEQ predicate on the "updater" field.
|
||||
func UpdaterNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterIn applies the In predicate on the "updater" field.
|
||||
func UpdaterIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldUpdater, vs...))
|
||||
}
|
||||
|
||||
// UpdaterNotIn applies the NotIn predicate on the "updater" field.
|
||||
func UpdaterNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldUpdater, vs...))
|
||||
}
|
||||
|
||||
// UpdaterGT applies the GT predicate on the "updater" field.
|
||||
func UpdaterGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterGTE applies the GTE predicate on the "updater" field.
|
||||
func UpdaterGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterLT applies the LT predicate on the "updater" field.
|
||||
func UpdaterLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterLTE applies the LTE predicate on the "updater" field.
|
||||
func UpdaterLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterContains applies the Contains predicate on the "updater" field.
|
||||
func UpdaterContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterHasPrefix applies the HasPrefix predicate on the "updater" field.
|
||||
func UpdaterHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterHasSuffix applies the HasSuffix predicate on the "updater" field.
|
||||
func UpdaterHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterEqualFold applies the EqualFold predicate on the "updater" field.
|
||||
func UpdaterEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdaterContainsFold applies the ContainsFold predicate on the "updater" field.
|
||||
func UpdaterContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldUpdater, v))
|
||||
}
|
||||
|
||||
// UpdateTimeEQ applies the EQ predicate on the "update_time" field.
|
||||
func UpdateTimeEQ(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
|
||||
func UpdateTimeNEQ(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeIn applies the In predicate on the "update_time" field.
|
||||
func UpdateTimeIn(vs ...time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldUpdateTime, vs...))
|
||||
}
|
||||
|
||||
// UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
|
||||
func UpdateTimeNotIn(vs ...time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldUpdateTime, vs...))
|
||||
}
|
||||
|
||||
// UpdateTimeGT applies the GT predicate on the "update_time" field.
|
||||
func UpdateTimeGT(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeGTE applies the GTE predicate on the "update_time" field.
|
||||
func UpdateTimeGTE(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeLT applies the LT predicate on the "update_time" field.
|
||||
func UpdateTimeLT(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeLTE applies the LTE predicate on the "update_time" field.
|
||||
func UpdateTimeLTE(v time.Time) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldUpdateTime, v))
|
||||
}
|
||||
|
||||
// UpdateTimeIsNil applies the IsNil predicate on the "update_time" field.
|
||||
func UpdateTimeIsNil() predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIsNull(FieldUpdateTime))
|
||||
}
|
||||
|
||||
// UpdateTimeNotNil applies the NotNil predicate on the "update_time" field.
|
||||
func UpdateTimeNotNil() predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotNull(FieldUpdateTime))
|
||||
}
|
||||
|
||||
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
||||
func DeletedEQ(v bool) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
||||
func DeletedNEQ(v bool) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// StatsHealthEQ applies the EQ predicate on the "stats_health" field.
|
||||
func StatsHealthEQ(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsHealthNEQ applies the NEQ predicate on the "stats_health" field.
|
||||
func StatsHealthNEQ(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsHealthIn applies the In predicate on the "stats_health" field.
|
||||
func StatsHealthIn(vs ...int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldStatsHealth, vs...))
|
||||
}
|
||||
|
||||
// StatsHealthNotIn applies the NotIn predicate on the "stats_health" field.
|
||||
func StatsHealthNotIn(vs ...int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldStatsHealth, vs...))
|
||||
}
|
||||
|
||||
// StatsHealthGT applies the GT predicate on the "stats_health" field.
|
||||
func StatsHealthGT(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsHealthGTE applies the GTE predicate on the "stats_health" field.
|
||||
func StatsHealthGTE(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsHealthLT applies the LT predicate on the "stats_health" field.
|
||||
func StatsHealthLT(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsHealthLTE applies the LTE predicate on the "stats_health" field.
|
||||
func StatsHealthLTE(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldStatsHealth, v))
|
||||
}
|
||||
|
||||
// StatsAttackEQ applies the EQ predicate on the "stats_attack" field.
|
||||
func StatsAttackEQ(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsAttackNEQ applies the NEQ predicate on the "stats_attack" field.
|
||||
func StatsAttackNEQ(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsAttackIn applies the In predicate on the "stats_attack" field.
|
||||
func StatsAttackIn(vs ...int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldStatsAttack, vs...))
|
||||
}
|
||||
|
||||
// StatsAttackNotIn applies the NotIn predicate on the "stats_attack" field.
|
||||
func StatsAttackNotIn(vs ...int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldStatsAttack, vs...))
|
||||
}
|
||||
|
||||
// StatsAttackGT applies the GT predicate on the "stats_attack" field.
|
||||
func StatsAttackGT(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsAttackGTE applies the GTE predicate on the "stats_attack" field.
|
||||
func StatsAttackGTE(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsAttackLT applies the LT predicate on the "stats_attack" field.
|
||||
func StatsAttackLT(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsAttackLTE applies the LTE predicate on the "stats_attack" field.
|
||||
func StatsAttackLTE(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldStatsAttack, v))
|
||||
}
|
||||
|
||||
// StatsDefenseEQ applies the EQ predicate on the "stats_defense" field.
|
||||
func StatsDefenseEQ(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// StatsDefenseNEQ applies the NEQ predicate on the "stats_defense" field.
|
||||
func StatsDefenseNEQ(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// StatsDefenseIn applies the In predicate on the "stats_defense" field.
|
||||
func StatsDefenseIn(vs ...int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldStatsDefense, vs...))
|
||||
}
|
||||
|
||||
// StatsDefenseNotIn applies the NotIn predicate on the "stats_defense" field.
|
||||
func StatsDefenseNotIn(vs ...int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldStatsDefense, vs...))
|
||||
}
|
||||
|
||||
// StatsDefenseGT applies the GT predicate on the "stats_defense" field.
|
||||
func StatsDefenseGT(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// StatsDefenseGTE applies the GTE predicate on the "stats_defense" field.
|
||||
func StatsDefenseGTE(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// StatsDefenseLT applies the LT predicate on the "stats_defense" field.
|
||||
func StatsDefenseLT(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// StatsDefenseLTE applies the LTE predicate on the "stats_defense" field.
|
||||
func StatsDefenseLTE(v int) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldStatsDefense, v))
|
||||
}
|
||||
|
||||
// RarityEQ applies the EQ predicate on the "rarity" field.
|
||||
func RarityEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityNEQ applies the NEQ predicate on the "rarity" field.
|
||||
func RarityNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityIn applies the In predicate on the "rarity" field.
|
||||
func RarityIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldRarity, vs...))
|
||||
}
|
||||
|
||||
// RarityNotIn applies the NotIn predicate on the "rarity" field.
|
||||
func RarityNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldRarity, vs...))
|
||||
}
|
||||
|
||||
// RarityGT applies the GT predicate on the "rarity" field.
|
||||
func RarityGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityGTE applies the GTE predicate on the "rarity" field.
|
||||
func RarityGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityLT applies the LT predicate on the "rarity" field.
|
||||
func RarityLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityLTE applies the LTE predicate on the "rarity" field.
|
||||
func RarityLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityContains applies the Contains predicate on the "rarity" field.
|
||||
func RarityContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityHasPrefix applies the HasPrefix predicate on the "rarity" field.
|
||||
func RarityHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityHasSuffix applies the HasSuffix predicate on the "rarity" field.
|
||||
func RarityHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityEqualFold applies the EqualFold predicate on the "rarity" field.
|
||||
func RarityEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RarityContainsFold applies the ContainsFold predicate on the "rarity" field.
|
||||
func RarityContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldRarity, v))
|
||||
}
|
||||
|
||||
// RoleEQ applies the EQ predicate on the "role" field.
|
||||
func RoleEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleNEQ applies the NEQ predicate on the "role" field.
|
||||
func RoleNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleIn applies the In predicate on the "role" field.
|
||||
func RoleIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldRole, vs...))
|
||||
}
|
||||
|
||||
// RoleNotIn applies the NotIn predicate on the "role" field.
|
||||
func RoleNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldRole, vs...))
|
||||
}
|
||||
|
||||
// RoleGT applies the GT predicate on the "role" field.
|
||||
func RoleGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleGTE applies the GTE predicate on the "role" field.
|
||||
func RoleGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleLT applies the LT predicate on the "role" field.
|
||||
func RoleLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleLTE applies the LTE predicate on the "role" field.
|
||||
func RoleLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleContains applies the Contains predicate on the "role" field.
|
||||
func RoleContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleHasPrefix applies the HasPrefix predicate on the "role" field.
|
||||
func RoleHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleHasSuffix applies the HasSuffix predicate on the "role" field.
|
||||
func RoleHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleEqualFold applies the EqualFold predicate on the "role" field.
|
||||
func RoleEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleContainsFold applies the ContainsFold predicate on the "role" field.
|
||||
func RoleContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldRole, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnEQ applies the EQ predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnNEQ applies the NEQ predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnIn applies the In predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldArtifactNameEn, vs...))
|
||||
}
|
||||
|
||||
// ArtifactNameEnNotIn applies the NotIn predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldArtifactNameEn, vs...))
|
||||
}
|
||||
|
||||
// ArtifactNameEnGT applies the GT predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnGTE applies the GTE predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnLT applies the LT predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnLTE applies the LTE predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnContains applies the Contains predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnHasPrefix applies the HasPrefix predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnHasSuffix applies the HasSuffix predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnEqualFold applies the EqualFold predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ArtifactNameEnContainsFold applies the ContainsFold predicate on the "artifact_name_en" field.
|
||||
func ArtifactNameEnContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldArtifactNameEn, v))
|
||||
}
|
||||
|
||||
// ImageURLEQ applies the EQ predicate on the "image_url" field.
|
||||
func ImageURLEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEQ(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLNEQ applies the NEQ predicate on the "image_url" field.
|
||||
func ImageURLNEQ(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNEQ(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLIn applies the In predicate on the "image_url" field.
|
||||
func ImageURLIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldIn(FieldImageURL, vs...))
|
||||
}
|
||||
|
||||
// ImageURLNotIn applies the NotIn predicate on the "image_url" field.
|
||||
func ImageURLNotIn(vs ...string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldNotIn(FieldImageURL, vs...))
|
||||
}
|
||||
|
||||
// ImageURLGT applies the GT predicate on the "image_url" field.
|
||||
func ImageURLGT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGT(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLGTE applies the GTE predicate on the "image_url" field.
|
||||
func ImageURLGTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldGTE(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLLT applies the LT predicate on the "image_url" field.
|
||||
func ImageURLLT(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLT(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLLTE applies the LTE predicate on the "image_url" field.
|
||||
func ImageURLLTE(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldLTE(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLContains applies the Contains predicate on the "image_url" field.
|
||||
func ImageURLContains(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContains(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.
|
||||
func ImageURLHasPrefix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasPrefix(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.
|
||||
func ImageURLHasSuffix(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldHasSuffix(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.
|
||||
func ImageURLEqualFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldEqualFold(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.
|
||||
func ImageURLContainsFold(v string) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.FieldContainsFold(FieldImageURL, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.EpicArtifactInfo) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.EpicArtifactInfo) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.EpicArtifactInfo) predicate.EpicArtifactInfo {
|
||||
return predicate.EpicArtifactInfo(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user