// Code generated by ent, DO NOT EDIT.

package orders

import (
	"juwan-backend/app/order/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.Orders {
	return predicate.Orders(sql.FieldEQ(FieldID, id))
}

// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldID, id))
}

// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldID, id))
}

// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldID, ids...))
}

// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldID, ids...))
}

// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldID, id))
}

// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldID, id))
}

// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldID, id))
}

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldID, id))
}

// ConsumerID applies equality check predicate on the "consumer_id" field. It's identical to ConsumerIDEQ.
func ConsumerID(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldConsumerID, v))
}

// PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.
func PlayerID(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldPlayerID, v))
}

// ShopID applies equality check predicate on the "shop_id" field. It's identical to ShopIDEQ.
func ShopID(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldShopID, v))
}

// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldStatus, v))
}

// TotalPrice applies equality check predicate on the "total_price" field. It's identical to TotalPriceEQ.
func TotalPrice(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldTotalPrice, v))
}

// Note applies equality check predicate on the "note" field. It's identical to NoteEQ.
func Note(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldNote, v))
}

// Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func Version(v int) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldVersion, v))
}

// TimeoutJobID applies equality check predicate on the "timeout_job_id" field. It's identical to TimeoutJobIDEQ.
func TimeoutJobID(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldTimeoutJobID, v))
}

// SearchText applies equality check predicate on the "search_text" field. It's identical to SearchTextEQ.
func SearchText(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldSearchText, v))
}

// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldCreatedAt, v))
}

// AcceptedAt applies equality check predicate on the "accepted_at" field. It's identical to AcceptedAtEQ.
func AcceptedAt(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldAcceptedAt, v))
}

// ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.
func ClosedAt(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldClosedAt, v))
}

// CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.
func CompletedAt(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldCompletedAt, v))
}

// CancelledAt applies equality check predicate on the "cancelled_at" field. It's identical to CancelledAtEQ.
func CancelledAt(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldCancelledAt, v))
}

// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldUpdatedAt, v))
}

// ConsumerIDEQ applies the EQ predicate on the "consumer_id" field.
func ConsumerIDEQ(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldConsumerID, v))
}

// ConsumerIDNEQ applies the NEQ predicate on the "consumer_id" field.
func ConsumerIDNEQ(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldConsumerID, v))
}

// ConsumerIDIn applies the In predicate on the "consumer_id" field.
func ConsumerIDIn(vs ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldConsumerID, vs...))
}

// ConsumerIDNotIn applies the NotIn predicate on the "consumer_id" field.
func ConsumerIDNotIn(vs ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldConsumerID, vs...))
}

// ConsumerIDGT applies the GT predicate on the "consumer_id" field.
func ConsumerIDGT(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldConsumerID, v))
}

// ConsumerIDGTE applies the GTE predicate on the "consumer_id" field.
func ConsumerIDGTE(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldConsumerID, v))
}

// ConsumerIDLT applies the LT predicate on the "consumer_id" field.
func ConsumerIDLT(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldConsumerID, v))
}

// ConsumerIDLTE applies the LTE predicate on the "consumer_id" field.
func ConsumerIDLTE(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldConsumerID, v))
}

// PlayerIDEQ applies the EQ predicate on the "player_id" field.
func PlayerIDEQ(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldPlayerID, v))
}

// PlayerIDNEQ applies the NEQ predicate on the "player_id" field.
func PlayerIDNEQ(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldPlayerID, v))
}

// PlayerIDIn applies the In predicate on the "player_id" field.
func PlayerIDIn(vs ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldPlayerID, vs...))
}

// PlayerIDNotIn applies the NotIn predicate on the "player_id" field.
func PlayerIDNotIn(vs ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldPlayerID, vs...))
}

// PlayerIDGT applies the GT predicate on the "player_id" field.
func PlayerIDGT(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldPlayerID, v))
}

// PlayerIDGTE applies the GTE predicate on the "player_id" field.
func PlayerIDGTE(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldPlayerID, v))
}

// PlayerIDLT applies the LT predicate on the "player_id" field.
func PlayerIDLT(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldPlayerID, v))
}

// PlayerIDLTE applies the LTE predicate on the "player_id" field.
func PlayerIDLTE(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldPlayerID, v))
}

// ShopIDEQ applies the EQ predicate on the "shop_id" field.
func ShopIDEQ(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldShopID, v))
}

// ShopIDNEQ applies the NEQ predicate on the "shop_id" field.
func ShopIDNEQ(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldShopID, v))
}

// ShopIDIn applies the In predicate on the "shop_id" field.
func ShopIDIn(vs ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldShopID, vs...))
}

// ShopIDNotIn applies the NotIn predicate on the "shop_id" field.
func ShopIDNotIn(vs ...int64) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldShopID, vs...))
}

// ShopIDGT applies the GT predicate on the "shop_id" field.
func ShopIDGT(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldShopID, v))
}

// ShopIDGTE applies the GTE predicate on the "shop_id" field.
func ShopIDGTE(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldShopID, v))
}

// ShopIDLT applies the LT predicate on the "shop_id" field.
func ShopIDLT(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldShopID, v))
}

// ShopIDLTE applies the LTE predicate on the "shop_id" field.
func ShopIDLTE(v int64) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldShopID, v))
}

// ShopIDIsNil applies the IsNil predicate on the "shop_id" field.
func ShopIDIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldShopID))
}

// ShopIDNotNil applies the NotNil predicate on the "shop_id" field.
func ShopIDNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldShopID))
}

// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldStatus, v))
}

// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldStatus, v))
}

// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldStatus, vs...))
}

// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldStatus, vs...))
}

// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldStatus, v))
}

// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldStatus, v))
}

// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldStatus, v))
}

// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldStatus, v))
}

// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContains(FieldStatus, v))
}

// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasPrefix(FieldStatus, v))
}

// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasSuffix(FieldStatus, v))
}

// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEqualFold(FieldStatus, v))
}

// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContainsFold(FieldStatus, v))
}

// TotalPriceEQ applies the EQ predicate on the "total_price" field.
func TotalPriceEQ(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldTotalPrice, v))
}

// TotalPriceNEQ applies the NEQ predicate on the "total_price" field.
func TotalPriceNEQ(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldTotalPrice, v))
}

// TotalPriceIn applies the In predicate on the "total_price" field.
func TotalPriceIn(vs ...decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldTotalPrice, vs...))
}

// TotalPriceNotIn applies the NotIn predicate on the "total_price" field.
func TotalPriceNotIn(vs ...decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldTotalPrice, vs...))
}

// TotalPriceGT applies the GT predicate on the "total_price" field.
func TotalPriceGT(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldTotalPrice, v))
}

// TotalPriceGTE applies the GTE predicate on the "total_price" field.
func TotalPriceGTE(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldTotalPrice, v))
}

// TotalPriceLT applies the LT predicate on the "total_price" field.
func TotalPriceLT(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldTotalPrice, v))
}

// TotalPriceLTE applies the LTE predicate on the "total_price" field.
func TotalPriceLTE(v decimal.Decimal) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldTotalPrice, v))
}

// NoteEQ applies the EQ predicate on the "note" field.
func NoteEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldNote, v))
}

// NoteNEQ applies the NEQ predicate on the "note" field.
func NoteNEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldNote, v))
}

// NoteIn applies the In predicate on the "note" field.
func NoteIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldNote, vs...))
}

// NoteNotIn applies the NotIn predicate on the "note" field.
func NoteNotIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldNote, vs...))
}

// NoteGT applies the GT predicate on the "note" field.
func NoteGT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldNote, v))
}

// NoteGTE applies the GTE predicate on the "note" field.
func NoteGTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldNote, v))
}

// NoteLT applies the LT predicate on the "note" field.
func NoteLT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldNote, v))
}

// NoteLTE applies the LTE predicate on the "note" field.
func NoteLTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldNote, v))
}

// NoteContains applies the Contains predicate on the "note" field.
func NoteContains(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContains(FieldNote, v))
}

// NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasPrefix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasPrefix(FieldNote, v))
}

// NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteHasSuffix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasSuffix(FieldNote, v))
}

// NoteIsNil applies the IsNil predicate on the "note" field.
func NoteIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldNote))
}

// NoteNotNil applies the NotNil predicate on the "note" field.
func NoteNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldNote))
}

// NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteEqualFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEqualFold(FieldNote, v))
}

// NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteContainsFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContainsFold(FieldNote, v))
}

// VersionEQ applies the EQ predicate on the "version" field.
func VersionEQ(v int) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldVersion, v))
}

// VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNEQ(v int) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldVersion, v))
}

// VersionIn applies the In predicate on the "version" field.
func VersionIn(vs ...int) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldVersion, vs...))
}

// VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotIn(vs ...int) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldVersion, vs...))
}

// VersionGT applies the GT predicate on the "version" field.
func VersionGT(v int) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldVersion, v))
}

// VersionGTE applies the GTE predicate on the "version" field.
func VersionGTE(v int) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldVersion, v))
}

// VersionLT applies the LT predicate on the "version" field.
func VersionLT(v int) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldVersion, v))
}

// VersionLTE applies the LTE predicate on the "version" field.
func VersionLTE(v int) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldVersion, v))
}

// TimeoutJobIDEQ applies the EQ predicate on the "timeout_job_id" field.
func TimeoutJobIDEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldTimeoutJobID, v))
}

// TimeoutJobIDNEQ applies the NEQ predicate on the "timeout_job_id" field.
func TimeoutJobIDNEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldTimeoutJobID, v))
}

// TimeoutJobIDIn applies the In predicate on the "timeout_job_id" field.
func TimeoutJobIDIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldTimeoutJobID, vs...))
}

// TimeoutJobIDNotIn applies the NotIn predicate on the "timeout_job_id" field.
func TimeoutJobIDNotIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldTimeoutJobID, vs...))
}

// TimeoutJobIDGT applies the GT predicate on the "timeout_job_id" field.
func TimeoutJobIDGT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldTimeoutJobID, v))
}

// TimeoutJobIDGTE applies the GTE predicate on the "timeout_job_id" field.
func TimeoutJobIDGTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldTimeoutJobID, v))
}

// TimeoutJobIDLT applies the LT predicate on the "timeout_job_id" field.
func TimeoutJobIDLT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldTimeoutJobID, v))
}

// TimeoutJobIDLTE applies the LTE predicate on the "timeout_job_id" field.
func TimeoutJobIDLTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldTimeoutJobID, v))
}

// TimeoutJobIDContains applies the Contains predicate on the "timeout_job_id" field.
func TimeoutJobIDContains(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContains(FieldTimeoutJobID, v))
}

// TimeoutJobIDHasPrefix applies the HasPrefix predicate on the "timeout_job_id" field.
func TimeoutJobIDHasPrefix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasPrefix(FieldTimeoutJobID, v))
}

// TimeoutJobIDHasSuffix applies the HasSuffix predicate on the "timeout_job_id" field.
func TimeoutJobIDHasSuffix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasSuffix(FieldTimeoutJobID, v))
}

// TimeoutJobIDIsNil applies the IsNil predicate on the "timeout_job_id" field.
func TimeoutJobIDIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldTimeoutJobID))
}

// TimeoutJobIDNotNil applies the NotNil predicate on the "timeout_job_id" field.
func TimeoutJobIDNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldTimeoutJobID))
}

// TimeoutJobIDEqualFold applies the EqualFold predicate on the "timeout_job_id" field.
func TimeoutJobIDEqualFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEqualFold(FieldTimeoutJobID, v))
}

// TimeoutJobIDContainsFold applies the ContainsFold predicate on the "timeout_job_id" field.
func TimeoutJobIDContainsFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContainsFold(FieldTimeoutJobID, v))
}

// SearchTextEQ applies the EQ predicate on the "search_text" field.
func SearchTextEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldSearchText, v))
}

// SearchTextNEQ applies the NEQ predicate on the "search_text" field.
func SearchTextNEQ(v string) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldSearchText, v))
}

// SearchTextIn applies the In predicate on the "search_text" field.
func SearchTextIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldSearchText, vs...))
}

// SearchTextNotIn applies the NotIn predicate on the "search_text" field.
func SearchTextNotIn(vs ...string) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldSearchText, vs...))
}

// SearchTextGT applies the GT predicate on the "search_text" field.
func SearchTextGT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldSearchText, v))
}

// SearchTextGTE applies the GTE predicate on the "search_text" field.
func SearchTextGTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldSearchText, v))
}

// SearchTextLT applies the LT predicate on the "search_text" field.
func SearchTextLT(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldSearchText, v))
}

// SearchTextLTE applies the LTE predicate on the "search_text" field.
func SearchTextLTE(v string) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldSearchText, v))
}

// SearchTextContains applies the Contains predicate on the "search_text" field.
func SearchTextContains(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContains(FieldSearchText, v))
}

// SearchTextHasPrefix applies the HasPrefix predicate on the "search_text" field.
func SearchTextHasPrefix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasPrefix(FieldSearchText, v))
}

// SearchTextHasSuffix applies the HasSuffix predicate on the "search_text" field.
func SearchTextHasSuffix(v string) predicate.Orders {
	return predicate.Orders(sql.FieldHasSuffix(FieldSearchText, v))
}

// SearchTextIsNil applies the IsNil predicate on the "search_text" field.
func SearchTextIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldSearchText))
}

// SearchTextNotNil applies the NotNil predicate on the "search_text" field.
func SearchTextNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldSearchText))
}

// SearchTextEqualFold applies the EqualFold predicate on the "search_text" field.
func SearchTextEqualFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldEqualFold(FieldSearchText, v))
}

// SearchTextContainsFold applies the ContainsFold predicate on the "search_text" field.
func SearchTextContainsFold(v string) predicate.Orders {
	return predicate.Orders(sql.FieldContainsFold(FieldSearchText, v))
}

// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldCreatedAt, v))
}

// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldCreatedAt, v))
}

// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldCreatedAt, vs...))
}

// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldCreatedAt, vs...))
}

// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldCreatedAt, v))
}

// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldCreatedAt, v))
}

// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldCreatedAt, v))
}

// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldCreatedAt, v))
}

// AcceptedAtEQ applies the EQ predicate on the "accepted_at" field.
func AcceptedAtEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldAcceptedAt, v))
}

// AcceptedAtNEQ applies the NEQ predicate on the "accepted_at" field.
func AcceptedAtNEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldAcceptedAt, v))
}

// AcceptedAtIn applies the In predicate on the "accepted_at" field.
func AcceptedAtIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldAcceptedAt, vs...))
}

// AcceptedAtNotIn applies the NotIn predicate on the "accepted_at" field.
func AcceptedAtNotIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldAcceptedAt, vs...))
}

// AcceptedAtGT applies the GT predicate on the "accepted_at" field.
func AcceptedAtGT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldAcceptedAt, v))
}

// AcceptedAtGTE applies the GTE predicate on the "accepted_at" field.
func AcceptedAtGTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldAcceptedAt, v))
}

// AcceptedAtLT applies the LT predicate on the "accepted_at" field.
func AcceptedAtLT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldAcceptedAt, v))
}

// AcceptedAtLTE applies the LTE predicate on the "accepted_at" field.
func AcceptedAtLTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldAcceptedAt, v))
}

// AcceptedAtIsNil applies the IsNil predicate on the "accepted_at" field.
func AcceptedAtIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldAcceptedAt))
}

// AcceptedAtNotNil applies the NotNil predicate on the "accepted_at" field.
func AcceptedAtNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldAcceptedAt))
}

// ClosedAtEQ applies the EQ predicate on the "closed_at" field.
func ClosedAtEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldClosedAt, v))
}

// ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.
func ClosedAtNEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldClosedAt, v))
}

// ClosedAtIn applies the In predicate on the "closed_at" field.
func ClosedAtIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldClosedAt, vs...))
}

// ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.
func ClosedAtNotIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldClosedAt, vs...))
}

// ClosedAtGT applies the GT predicate on the "closed_at" field.
func ClosedAtGT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldClosedAt, v))
}

// ClosedAtGTE applies the GTE predicate on the "closed_at" field.
func ClosedAtGTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldClosedAt, v))
}

// ClosedAtLT applies the LT predicate on the "closed_at" field.
func ClosedAtLT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldClosedAt, v))
}

// ClosedAtLTE applies the LTE predicate on the "closed_at" field.
func ClosedAtLTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldClosedAt, v))
}

// ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.
func ClosedAtIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldClosedAt))
}

// ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.
func ClosedAtNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldClosedAt))
}

// CompletedAtEQ applies the EQ predicate on the "completed_at" field.
func CompletedAtEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldCompletedAt, v))
}

// CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.
func CompletedAtNEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldCompletedAt, v))
}

// CompletedAtIn applies the In predicate on the "completed_at" field.
func CompletedAtIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldCompletedAt, vs...))
}

// CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.
func CompletedAtNotIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldCompletedAt, vs...))
}

// CompletedAtGT applies the GT predicate on the "completed_at" field.
func CompletedAtGT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldCompletedAt, v))
}

// CompletedAtGTE applies the GTE predicate on the "completed_at" field.
func CompletedAtGTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldCompletedAt, v))
}

// CompletedAtLT applies the LT predicate on the "completed_at" field.
func CompletedAtLT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldCompletedAt, v))
}

// CompletedAtLTE applies the LTE predicate on the "completed_at" field.
func CompletedAtLTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldCompletedAt, v))
}

// CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.
func CompletedAtIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldCompletedAt))
}

// CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.
func CompletedAtNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldCompletedAt))
}

// CancelledAtEQ applies the EQ predicate on the "cancelled_at" field.
func CancelledAtEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldCancelledAt, v))
}

// CancelledAtNEQ applies the NEQ predicate on the "cancelled_at" field.
func CancelledAtNEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldCancelledAt, v))
}

// CancelledAtIn applies the In predicate on the "cancelled_at" field.
func CancelledAtIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldCancelledAt, vs...))
}

// CancelledAtNotIn applies the NotIn predicate on the "cancelled_at" field.
func CancelledAtNotIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldCancelledAt, vs...))
}

// CancelledAtGT applies the GT predicate on the "cancelled_at" field.
func CancelledAtGT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldCancelledAt, v))
}

// CancelledAtGTE applies the GTE predicate on the "cancelled_at" field.
func CancelledAtGTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldCancelledAt, v))
}

// CancelledAtLT applies the LT predicate on the "cancelled_at" field.
func CancelledAtLT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldCancelledAt, v))
}

// CancelledAtLTE applies the LTE predicate on the "cancelled_at" field.
func CancelledAtLTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldCancelledAt, v))
}

// CancelledAtIsNil applies the IsNil predicate on the "cancelled_at" field.
func CancelledAtIsNil() predicate.Orders {
	return predicate.Orders(sql.FieldIsNull(FieldCancelledAt))
}

// CancelledAtNotNil applies the NotNil predicate on the "cancelled_at" field.
func CancelledAtNotNil() predicate.Orders {
	return predicate.Orders(sql.FieldNotNull(FieldCancelledAt))
}

// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldEQ(FieldUpdatedAt, v))
}

// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNEQ(FieldUpdatedAt, v))
}

// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldIn(FieldUpdatedAt, vs...))
}

// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldNotIn(FieldUpdatedAt, vs...))
}

// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGT(FieldUpdatedAt, v))
}

// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldGTE(FieldUpdatedAt, v))
}

// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLT(FieldUpdatedAt, v))
}

// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Orders {
	return predicate.Orders(sql.FieldLTE(FieldUpdatedAt, v))
}

// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Orders) predicate.Orders {
	return predicate.Orders(sql.AndPredicates(predicates...))
}

// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Orders) predicate.Orders {
	return predicate.Orders(sql.OrPredicates(predicates...))
}

// Not applies the not operator on the given predicate.
func Not(p predicate.Orders) predicate.Orders {
	return predicate.Orders(sql.NotPredicates(p))
}
