Files
juwan-backend/app/shop/rpc/internal/models/shopinvitations/where.go
T
2026-02-28 05:33:16 +08:00

376 lines
14 KiB
Go

// Code generated by ent, DO NOT EDIT.
package shopinvitations
import (
"juwan-backend/app/shop/rpc/internal/models/predicate"
"time"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldID, id))
}
// ShopID applies equality check predicate on the "shop_id" field. It's identical to ShopIDEQ.
func ShopID(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldShopID, v))
}
// PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.
func PlayerID(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldPlayerID, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldStatus, v))
}
// InvitedBy applies equality check predicate on the "invited_by" field. It's identical to InvitedByEQ.
func InvitedBy(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldInvitedBy, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldCreatedAt, v))
}
// RespondedAt applies equality check predicate on the "responded_at" field. It's identical to RespondedAtEQ.
func RespondedAt(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldRespondedAt, v))
}
// ShopIDEQ applies the EQ predicate on the "shop_id" field.
func ShopIDEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldShopID, v))
}
// ShopIDNEQ applies the NEQ predicate on the "shop_id" field.
func ShopIDNEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldShopID, v))
}
// ShopIDIn applies the In predicate on the "shop_id" field.
func ShopIDIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldShopID, vs...))
}
// ShopIDNotIn applies the NotIn predicate on the "shop_id" field.
func ShopIDNotIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldShopID, vs...))
}
// ShopIDGT applies the GT predicate on the "shop_id" field.
func ShopIDGT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldShopID, v))
}
// ShopIDGTE applies the GTE predicate on the "shop_id" field.
func ShopIDGTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldShopID, v))
}
// ShopIDLT applies the LT predicate on the "shop_id" field.
func ShopIDLT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldShopID, v))
}
// ShopIDLTE applies the LTE predicate on the "shop_id" field.
func ShopIDLTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldShopID, v))
}
// PlayerIDEQ applies the EQ predicate on the "player_id" field.
func PlayerIDEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldPlayerID, v))
}
// PlayerIDNEQ applies the NEQ predicate on the "player_id" field.
func PlayerIDNEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldPlayerID, v))
}
// PlayerIDIn applies the In predicate on the "player_id" field.
func PlayerIDIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldPlayerID, vs...))
}
// PlayerIDNotIn applies the NotIn predicate on the "player_id" field.
func PlayerIDNotIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldPlayerID, vs...))
}
// PlayerIDGT applies the GT predicate on the "player_id" field.
func PlayerIDGT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldPlayerID, v))
}
// PlayerIDGTE applies the GTE predicate on the "player_id" field.
func PlayerIDGTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldPlayerID, v))
}
// PlayerIDLT applies the LT predicate on the "player_id" field.
func PlayerIDLT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldPlayerID, v))
}
// PlayerIDLTE applies the LTE predicate on the "player_id" field.
func PlayerIDLTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldPlayerID, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldContainsFold(FieldStatus, v))
}
// InvitedByEQ applies the EQ predicate on the "invited_by" field.
func InvitedByEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldInvitedBy, v))
}
// InvitedByNEQ applies the NEQ predicate on the "invited_by" field.
func InvitedByNEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldInvitedBy, v))
}
// InvitedByIn applies the In predicate on the "invited_by" field.
func InvitedByIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldInvitedBy, vs...))
}
// InvitedByNotIn applies the NotIn predicate on the "invited_by" field.
func InvitedByNotIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldInvitedBy, vs...))
}
// InvitedByGT applies the GT predicate on the "invited_by" field.
func InvitedByGT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldInvitedBy, v))
}
// InvitedByGTE applies the GTE predicate on the "invited_by" field.
func InvitedByGTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldInvitedBy, v))
}
// InvitedByLT applies the LT predicate on the "invited_by" field.
func InvitedByLT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldInvitedBy, v))
}
// InvitedByLTE applies the LTE predicate on the "invited_by" field.
func InvitedByLTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldInvitedBy, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldCreatedAt, v))
}
// RespondedAtEQ applies the EQ predicate on the "responded_at" field.
func RespondedAtEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldRespondedAt, v))
}
// RespondedAtNEQ applies the NEQ predicate on the "responded_at" field.
func RespondedAtNEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldRespondedAt, v))
}
// RespondedAtIn applies the In predicate on the "responded_at" field.
func RespondedAtIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldRespondedAt, vs...))
}
// RespondedAtNotIn applies the NotIn predicate on the "responded_at" field.
func RespondedAtNotIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldRespondedAt, vs...))
}
// RespondedAtGT applies the GT predicate on the "responded_at" field.
func RespondedAtGT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldRespondedAt, v))
}
// RespondedAtGTE applies the GTE predicate on the "responded_at" field.
func RespondedAtGTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldRespondedAt, v))
}
// RespondedAtLT applies the LT predicate on the "responded_at" field.
func RespondedAtLT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldRespondedAt, v))
}
// RespondedAtLTE applies the LTE predicate on the "responded_at" field.
func RespondedAtLTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldRespondedAt, v))
}
// RespondedAtIsNil applies the IsNil predicate on the "responded_at" field.
func RespondedAtIsNil() predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIsNull(FieldRespondedAt))
}
// RespondedAtNotNil applies the NotNil predicate on the "responded_at" field.
func RespondedAtNotNil() predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotNull(FieldRespondedAt))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.ShopInvitations) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.ShopInvitations) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.ShopInvitations) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.NotPredicates(p))
}