fix: api descript
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package playerservices
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the playerservices type in the database.
|
||||
Label = "player_services"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldPlayerID holds the string denoting the player_id field in the database.
|
||||
FieldPlayerID = "player_id"
|
||||
// FieldGameID holds the string denoting the game_id field in the database.
|
||||
FieldGameID = "game_id"
|
||||
// FieldTitle holds the string denoting the title field in the database.
|
||||
FieldTitle = "title"
|
||||
// FieldDescription holds the string denoting the description field in the database.
|
||||
FieldDescription = "description"
|
||||
// FieldPrice holds the string denoting the price field in the database.
|
||||
FieldPrice = "price"
|
||||
// FieldUnit holds the string denoting the unit field in the database.
|
||||
FieldUnit = "unit"
|
||||
// FieldRankRange holds the string denoting the rank_range field in the database.
|
||||
FieldRankRange = "rank_range"
|
||||
// FieldAvailability holds the string denoting the availability field in the database.
|
||||
FieldAvailability = "availability"
|
||||
// FieldRating holds the string denoting the rating field in the database.
|
||||
FieldRating = "rating"
|
||||
// FieldIsActive holds the string denoting the is_active field in the database.
|
||||
FieldIsActive = "is_active"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// Table holds the table name of the playerservices in the database.
|
||||
Table = "player_services"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for playerservices fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldPlayerID,
|
||||
FieldGameID,
|
||||
FieldTitle,
|
||||
FieldDescription,
|
||||
FieldPrice,
|
||||
FieldUnit,
|
||||
FieldRankRange,
|
||||
FieldAvailability,
|
||||
FieldRating,
|
||||
FieldIsActive,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// TitleValidator is a validator for the "title" field. It is called by the builders before save.
|
||||
TitleValidator func(string) error
|
||||
// UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
UnitValidator func(string) error
|
||||
// RankRangeValidator is a validator for the "rank_range" field. It is called by the builders before save.
|
||||
RankRangeValidator func(string) error
|
||||
// DefaultAvailability holds the default value on creation for the "availability" field.
|
||||
DefaultAvailability []string
|
||||
// DefaultRating holds the default value on creation for the "rating" field.
|
||||
DefaultRating decimal.Decimal
|
||||
// DefaultIsActive holds the default value on creation for the "is_active" field.
|
||||
DefaultIsActive bool
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the PlayerServices 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()
|
||||
}
|
||||
|
||||
// ByPlayerID orders the results by the player_id field.
|
||||
func ByPlayerID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPlayerID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameID orders the results by the game_id field.
|
||||
func ByGameID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTitle orders the results by the title field.
|
||||
func ByTitle(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTitle, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDescription orders the results by the description field.
|
||||
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDescription, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPrice orders the results by the price field.
|
||||
func ByPrice(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPrice, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUnit orders the results by the unit field.
|
||||
func ByUnit(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUnit, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRankRange orders the results by the rank_range field.
|
||||
func ByRankRange(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRankRange, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRating orders the results by the rating field.
|
||||
func ByRating(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRating, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIsActive orders the results by the is_active field.
|
||||
func ByIsActive(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIsActive, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,676 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package playerservices
|
||||
|
||||
import (
|
||||
"juwan-backend/app/player/rpc/internal/models/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.
|
||||
func PlayerID(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// GameID applies equality check predicate on the "game_id" field. It's identical to GameIDEQ.
|
||||
func GameID(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldGameID, v))
|
||||
}
|
||||
|
||||
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
|
||||
func Title(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldTitle, v))
|
||||
}
|
||||
|
||||
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
|
||||
func Description(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
|
||||
func Price(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldPrice, v))
|
||||
}
|
||||
|
||||
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
||||
func Unit(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// RankRange applies equality check predicate on the "rank_range" field. It's identical to RankRangeEQ.
|
||||
func RankRange(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// Rating applies equality check predicate on the "rating" field. It's identical to RatingEQ.
|
||||
func Rating(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldRating, v))
|
||||
}
|
||||
|
||||
// IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
|
||||
func IsActive(v bool) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldIsActive, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// PlayerIDEQ applies the EQ predicate on the "player_id" field.
|
||||
func PlayerIDEQ(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// PlayerIDNEQ applies the NEQ predicate on the "player_id" field.
|
||||
func PlayerIDNEQ(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// PlayerIDIn applies the In predicate on the "player_id" field.
|
||||
func PlayerIDIn(vs ...int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldPlayerID, vs...))
|
||||
}
|
||||
|
||||
// PlayerIDNotIn applies the NotIn predicate on the "player_id" field.
|
||||
func PlayerIDNotIn(vs ...int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldPlayerID, vs...))
|
||||
}
|
||||
|
||||
// PlayerIDGT applies the GT predicate on the "player_id" field.
|
||||
func PlayerIDGT(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// PlayerIDGTE applies the GTE predicate on the "player_id" field.
|
||||
func PlayerIDGTE(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// PlayerIDLT applies the LT predicate on the "player_id" field.
|
||||
func PlayerIDLT(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// PlayerIDLTE applies the LTE predicate on the "player_id" field.
|
||||
func PlayerIDLTE(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldPlayerID, v))
|
||||
}
|
||||
|
||||
// GameIDEQ applies the EQ predicate on the "game_id" field.
|
||||
func GameIDEQ(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldGameID, v))
|
||||
}
|
||||
|
||||
// GameIDNEQ applies the NEQ predicate on the "game_id" field.
|
||||
func GameIDNEQ(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldGameID, v))
|
||||
}
|
||||
|
||||
// GameIDIn applies the In predicate on the "game_id" field.
|
||||
func GameIDIn(vs ...int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldGameID, vs...))
|
||||
}
|
||||
|
||||
// GameIDNotIn applies the NotIn predicate on the "game_id" field.
|
||||
func GameIDNotIn(vs ...int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldGameID, vs...))
|
||||
}
|
||||
|
||||
// GameIDGT applies the GT predicate on the "game_id" field.
|
||||
func GameIDGT(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldGameID, v))
|
||||
}
|
||||
|
||||
// GameIDGTE applies the GTE predicate on the "game_id" field.
|
||||
func GameIDGTE(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldGameID, v))
|
||||
}
|
||||
|
||||
// GameIDLT applies the LT predicate on the "game_id" field.
|
||||
func GameIDLT(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldGameID, v))
|
||||
}
|
||||
|
||||
// GameIDLTE applies the LTE predicate on the "game_id" field.
|
||||
func GameIDLTE(v int64) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldGameID, v))
|
||||
}
|
||||
|
||||
// TitleEQ applies the EQ predicate on the "title" field.
|
||||
func TitleEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleNEQ applies the NEQ predicate on the "title" field.
|
||||
func TitleNEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleIn applies the In predicate on the "title" field.
|
||||
func TitleIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldTitle, vs...))
|
||||
}
|
||||
|
||||
// TitleNotIn applies the NotIn predicate on the "title" field.
|
||||
func TitleNotIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldTitle, vs...))
|
||||
}
|
||||
|
||||
// TitleGT applies the GT predicate on the "title" field.
|
||||
func TitleGT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleGTE applies the GTE predicate on the "title" field.
|
||||
func TitleGTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleLT applies the LT predicate on the "title" field.
|
||||
func TitleLT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleLTE applies the LTE predicate on the "title" field.
|
||||
func TitleLTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleContains applies the Contains predicate on the "title" field.
|
||||
func TitleContains(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContains(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
|
||||
func TitleHasPrefix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasPrefix(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
|
||||
func TitleHasSuffix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasSuffix(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleEqualFold applies the EqualFold predicate on the "title" field.
|
||||
func TitleEqualFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEqualFold(FieldTitle, v))
|
||||
}
|
||||
|
||||
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
|
||||
func TitleContainsFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContainsFold(FieldTitle, v))
|
||||
}
|
||||
|
||||
// DescriptionEQ applies the EQ predicate on the "description" field.
|
||||
func DescriptionEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionNEQ applies the NEQ predicate on the "description" field.
|
||||
func DescriptionNEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionIn applies the In predicate on the "description" field.
|
||||
func DescriptionIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldDescription, vs...))
|
||||
}
|
||||
|
||||
// DescriptionNotIn applies the NotIn predicate on the "description" field.
|
||||
func DescriptionNotIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldDescription, vs...))
|
||||
}
|
||||
|
||||
// DescriptionGT applies the GT predicate on the "description" field.
|
||||
func DescriptionGT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionGTE applies the GTE predicate on the "description" field.
|
||||
func DescriptionGTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionLT applies the LT predicate on the "description" field.
|
||||
func DescriptionLT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionLTE applies the LTE predicate on the "description" field.
|
||||
func DescriptionLTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionContains applies the Contains predicate on the "description" field.
|
||||
func DescriptionContains(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContains(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
|
||||
func DescriptionHasPrefix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasPrefix(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
|
||||
func DescriptionHasSuffix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasSuffix(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionIsNil applies the IsNil predicate on the "description" field.
|
||||
func DescriptionIsNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIsNull(FieldDescription))
|
||||
}
|
||||
|
||||
// DescriptionNotNil applies the NotNil predicate on the "description" field.
|
||||
func DescriptionNotNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotNull(FieldDescription))
|
||||
}
|
||||
|
||||
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
|
||||
func DescriptionEqualFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEqualFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
|
||||
func DescriptionContainsFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContainsFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// PriceEQ applies the EQ predicate on the "price" field.
|
||||
func PriceEQ(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldPrice, v))
|
||||
}
|
||||
|
||||
// PriceNEQ applies the NEQ predicate on the "price" field.
|
||||
func PriceNEQ(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldPrice, v))
|
||||
}
|
||||
|
||||
// PriceIn applies the In predicate on the "price" field.
|
||||
func PriceIn(vs ...decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldPrice, vs...))
|
||||
}
|
||||
|
||||
// PriceNotIn applies the NotIn predicate on the "price" field.
|
||||
func PriceNotIn(vs ...decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldPrice, vs...))
|
||||
}
|
||||
|
||||
// PriceGT applies the GT predicate on the "price" field.
|
||||
func PriceGT(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldPrice, v))
|
||||
}
|
||||
|
||||
// PriceGTE applies the GTE predicate on the "price" field.
|
||||
func PriceGTE(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldPrice, v))
|
||||
}
|
||||
|
||||
// PriceLT applies the LT predicate on the "price" field.
|
||||
func PriceLT(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldPrice, v))
|
||||
}
|
||||
|
||||
// PriceLTE applies the LTE predicate on the "price" field.
|
||||
func PriceLTE(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldPrice, v))
|
||||
}
|
||||
|
||||
// UnitEQ applies the EQ predicate on the "unit" field.
|
||||
func UnitEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
||||
func UnitNEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitIn applies the In predicate on the "unit" field.
|
||||
func UnitIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
||||
func UnitNotIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitGT applies the GT predicate on the "unit" field.
|
||||
func UnitGT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitGTE applies the GTE predicate on the "unit" field.
|
||||
func UnitGTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLT applies the LT predicate on the "unit" field.
|
||||
func UnitLT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLTE applies the LTE predicate on the "unit" field.
|
||||
func UnitLTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContains applies the Contains predicate on the "unit" field.
|
||||
func UnitContains(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContains(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
||||
func UnitHasPrefix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasPrefix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
||||
func UnitHasSuffix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasSuffix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
||||
func UnitEqualFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEqualFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
||||
func UnitContainsFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContainsFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// RankRangeEQ applies the EQ predicate on the "rank_range" field.
|
||||
func RankRangeEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeNEQ applies the NEQ predicate on the "rank_range" field.
|
||||
func RankRangeNEQ(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeIn applies the In predicate on the "rank_range" field.
|
||||
func RankRangeIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldRankRange, vs...))
|
||||
}
|
||||
|
||||
// RankRangeNotIn applies the NotIn predicate on the "rank_range" field.
|
||||
func RankRangeNotIn(vs ...string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldRankRange, vs...))
|
||||
}
|
||||
|
||||
// RankRangeGT applies the GT predicate on the "rank_range" field.
|
||||
func RankRangeGT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeGTE applies the GTE predicate on the "rank_range" field.
|
||||
func RankRangeGTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeLT applies the LT predicate on the "rank_range" field.
|
||||
func RankRangeLT(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeLTE applies the LTE predicate on the "rank_range" field.
|
||||
func RankRangeLTE(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeContains applies the Contains predicate on the "rank_range" field.
|
||||
func RankRangeContains(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContains(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeHasPrefix applies the HasPrefix predicate on the "rank_range" field.
|
||||
func RankRangeHasPrefix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasPrefix(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeHasSuffix applies the HasSuffix predicate on the "rank_range" field.
|
||||
func RankRangeHasSuffix(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldHasSuffix(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeIsNil applies the IsNil predicate on the "rank_range" field.
|
||||
func RankRangeIsNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIsNull(FieldRankRange))
|
||||
}
|
||||
|
||||
// RankRangeNotNil applies the NotNil predicate on the "rank_range" field.
|
||||
func RankRangeNotNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotNull(FieldRankRange))
|
||||
}
|
||||
|
||||
// RankRangeEqualFold applies the EqualFold predicate on the "rank_range" field.
|
||||
func RankRangeEqualFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEqualFold(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// RankRangeContainsFold applies the ContainsFold predicate on the "rank_range" field.
|
||||
func RankRangeContainsFold(v string) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldContainsFold(FieldRankRange, v))
|
||||
}
|
||||
|
||||
// AvailabilityIsNil applies the IsNil predicate on the "availability" field.
|
||||
func AvailabilityIsNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIsNull(FieldAvailability))
|
||||
}
|
||||
|
||||
// AvailabilityNotNil applies the NotNil predicate on the "availability" field.
|
||||
func AvailabilityNotNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotNull(FieldAvailability))
|
||||
}
|
||||
|
||||
// RatingEQ applies the EQ predicate on the "rating" field.
|
||||
func RatingEQ(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldRating, v))
|
||||
}
|
||||
|
||||
// RatingNEQ applies the NEQ predicate on the "rating" field.
|
||||
func RatingNEQ(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldRating, v))
|
||||
}
|
||||
|
||||
// RatingIn applies the In predicate on the "rating" field.
|
||||
func RatingIn(vs ...decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldRating, vs...))
|
||||
}
|
||||
|
||||
// RatingNotIn applies the NotIn predicate on the "rating" field.
|
||||
func RatingNotIn(vs ...decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldRating, vs...))
|
||||
}
|
||||
|
||||
// RatingGT applies the GT predicate on the "rating" field.
|
||||
func RatingGT(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldRating, v))
|
||||
}
|
||||
|
||||
// RatingGTE applies the GTE predicate on the "rating" field.
|
||||
func RatingGTE(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldRating, v))
|
||||
}
|
||||
|
||||
// RatingLT applies the LT predicate on the "rating" field.
|
||||
func RatingLT(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldRating, v))
|
||||
}
|
||||
|
||||
// RatingLTE applies the LTE predicate on the "rating" field.
|
||||
func RatingLTE(v decimal.Decimal) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldRating, v))
|
||||
}
|
||||
|
||||
// IsActiveEQ applies the EQ predicate on the "is_active" field.
|
||||
func IsActiveEQ(v bool) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldIsActive, v))
|
||||
}
|
||||
|
||||
// IsActiveNEQ applies the NEQ predicate on the "is_active" field.
|
||||
func IsActiveNEQ(v bool) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldIsActive, v))
|
||||
}
|
||||
|
||||
// IsActiveIsNil applies the IsNil predicate on the "is_active" field.
|
||||
func IsActiveIsNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIsNull(FieldIsActive))
|
||||
}
|
||||
|
||||
// IsActiveNotNil applies the NotNil predicate on the "is_active" field.
|
||||
func IsActiveNotNil() predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotNull(FieldIsActive))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.PlayerServices) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.PlayerServices) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.PlayerServices) predicate.PlayerServices {
|
||||
return predicate.PlayerServices(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user