// Code generated by ent, DO NOT EDIT.

package xunjiservice

import (
	"time"
	"wechat-api/ent/predicate"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
)

// ID filters vertices based on their ID field.
func ID(id uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldID, id))
}

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

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

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

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

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

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

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

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

// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(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.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldUpdatedAt, v))
}

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

// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldDeletedAt, v))
}

// XunjiID applies equality check predicate on the "xunji_id" field. It's identical to XunjiIDEQ.
func XunjiID(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldXunjiID, v))
}

// AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentID(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldAgentID, v))
}

// OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationID(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldOrganizationID, v))
}

// Wxid applies equality check predicate on the "wxid" field. It's identical to WxidEQ.
func Wxid(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldWxid, v))
}

// APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
func APIBase(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldAPIBase, v))
}

// APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
func APIKey(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldAPIKey, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// StatusIsNil applies the IsNil predicate on the "status" field.
func StatusIsNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIsNull(FieldStatus))
}

// StatusNotNil applies the NotNil predicate on the "status" field.
func StatusNotNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotNull(FieldStatus))
}

// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldDeletedAt, v))
}

// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldDeletedAt, v))
}

// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldDeletedAt, vs...))
}

// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldDeletedAt, vs...))
}

// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGT(FieldDeletedAt, v))
}

// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGTE(FieldDeletedAt, v))
}

// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLT(FieldDeletedAt, v))
}

// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLTE(FieldDeletedAt, v))
}

// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIsNull(FieldDeletedAt))
}

// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotNull(FieldDeletedAt))
}

// XunjiIDEQ applies the EQ predicate on the "xunji_id" field.
func XunjiIDEQ(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldXunjiID, v))
}

// XunjiIDNEQ applies the NEQ predicate on the "xunji_id" field.
func XunjiIDNEQ(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldXunjiID, v))
}

// XunjiIDIn applies the In predicate on the "xunji_id" field.
func XunjiIDIn(vs ...uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldXunjiID, vs...))
}

// XunjiIDNotIn applies the NotIn predicate on the "xunji_id" field.
func XunjiIDNotIn(vs ...uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldXunjiID, vs...))
}

// XunjiIDGT applies the GT predicate on the "xunji_id" field.
func XunjiIDGT(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGT(FieldXunjiID, v))
}

// XunjiIDGTE applies the GTE predicate on the "xunji_id" field.
func XunjiIDGTE(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGTE(FieldXunjiID, v))
}

// XunjiIDLT applies the LT predicate on the "xunji_id" field.
func XunjiIDLT(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLT(FieldXunjiID, v))
}

// XunjiIDLTE applies the LTE predicate on the "xunji_id" field.
func XunjiIDLTE(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLTE(FieldXunjiID, v))
}

// AgentIDEQ applies the EQ predicate on the "agent_id" field.
func AgentIDEQ(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldAgentID, v))
}

// AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNEQ(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldAgentID, v))
}

// AgentIDIn applies the In predicate on the "agent_id" field.
func AgentIDIn(vs ...uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldAgentID, vs...))
}

// AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func AgentIDNotIn(vs ...uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldAgentID, vs...))
}

// OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDEQ(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldOrganizationID, v))
}

// OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNEQ(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldOrganizationID, v))
}

// OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDIn(vs ...uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldOrganizationID, vs...))
}

// OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func OrganizationIDNotIn(vs ...uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldOrganizationID, vs...))
}

// OrganizationIDGT applies the GT predicate on the "organization_id" field.
func OrganizationIDGT(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGT(FieldOrganizationID, v))
}

// OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
func OrganizationIDGTE(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGTE(FieldOrganizationID, v))
}

// OrganizationIDLT applies the LT predicate on the "organization_id" field.
func OrganizationIDLT(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLT(FieldOrganizationID, v))
}

// OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
func OrganizationIDLTE(v uint64) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLTE(FieldOrganizationID, v))
}

// WxidEQ applies the EQ predicate on the "wxid" field.
func WxidEQ(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldWxid, v))
}

// WxidNEQ applies the NEQ predicate on the "wxid" field.
func WxidNEQ(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldWxid, v))
}

// WxidIn applies the In predicate on the "wxid" field.
func WxidIn(vs ...string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldWxid, vs...))
}

// WxidNotIn applies the NotIn predicate on the "wxid" field.
func WxidNotIn(vs ...string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldWxid, vs...))
}

// WxidGT applies the GT predicate on the "wxid" field.
func WxidGT(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGT(FieldWxid, v))
}

// WxidGTE applies the GTE predicate on the "wxid" field.
func WxidGTE(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGTE(FieldWxid, v))
}

// WxidLT applies the LT predicate on the "wxid" field.
func WxidLT(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLT(FieldWxid, v))
}

// WxidLTE applies the LTE predicate on the "wxid" field.
func WxidLTE(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLTE(FieldWxid, v))
}

// WxidContains applies the Contains predicate on the "wxid" field.
func WxidContains(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldContains(FieldWxid, v))
}

// WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
func WxidHasPrefix(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldHasPrefix(FieldWxid, v))
}

// WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
func WxidHasSuffix(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldHasSuffix(FieldWxid, v))
}

// WxidEqualFold applies the EqualFold predicate on the "wxid" field.
func WxidEqualFold(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEqualFold(FieldWxid, v))
}

// WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
func WxidContainsFold(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldContainsFold(FieldWxid, v))
}

// APIBaseEQ applies the EQ predicate on the "api_base" field.
func APIBaseEQ(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldAPIBase, v))
}

// APIBaseNEQ applies the NEQ predicate on the "api_base" field.
func APIBaseNEQ(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldAPIBase, v))
}

// APIBaseIn applies the In predicate on the "api_base" field.
func APIBaseIn(vs ...string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldAPIBase, vs...))
}

// APIBaseNotIn applies the NotIn predicate on the "api_base" field.
func APIBaseNotIn(vs ...string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldAPIBase, vs...))
}

// APIBaseGT applies the GT predicate on the "api_base" field.
func APIBaseGT(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGT(FieldAPIBase, v))
}

// APIBaseGTE applies the GTE predicate on the "api_base" field.
func APIBaseGTE(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGTE(FieldAPIBase, v))
}

// APIBaseLT applies the LT predicate on the "api_base" field.
func APIBaseLT(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLT(FieldAPIBase, v))
}

// APIBaseLTE applies the LTE predicate on the "api_base" field.
func APIBaseLTE(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLTE(FieldAPIBase, v))
}

// APIBaseContains applies the Contains predicate on the "api_base" field.
func APIBaseContains(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldContains(FieldAPIBase, v))
}

// APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
func APIBaseHasPrefix(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldHasPrefix(FieldAPIBase, v))
}

// APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
func APIBaseHasSuffix(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldHasSuffix(FieldAPIBase, v))
}

// APIBaseIsNil applies the IsNil predicate on the "api_base" field.
func APIBaseIsNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIsNull(FieldAPIBase))
}

// APIBaseNotNil applies the NotNil predicate on the "api_base" field.
func APIBaseNotNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotNull(FieldAPIBase))
}

// APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
func APIBaseEqualFold(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEqualFold(FieldAPIBase, v))
}

// APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
func APIBaseContainsFold(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldContainsFold(FieldAPIBase, v))
}

// APIKeyEQ applies the EQ predicate on the "api_key" field.
func APIKeyEQ(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEQ(FieldAPIKey, v))
}

// APIKeyNEQ applies the NEQ predicate on the "api_key" field.
func APIKeyNEQ(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNEQ(FieldAPIKey, v))
}

// APIKeyIn applies the In predicate on the "api_key" field.
func APIKeyIn(vs ...string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIn(FieldAPIKey, vs...))
}

// APIKeyNotIn applies the NotIn predicate on the "api_key" field.
func APIKeyNotIn(vs ...string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotIn(FieldAPIKey, vs...))
}

// APIKeyGT applies the GT predicate on the "api_key" field.
func APIKeyGT(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGT(FieldAPIKey, v))
}

// APIKeyGTE applies the GTE predicate on the "api_key" field.
func APIKeyGTE(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldGTE(FieldAPIKey, v))
}

// APIKeyLT applies the LT predicate on the "api_key" field.
func APIKeyLT(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLT(FieldAPIKey, v))
}

// APIKeyLTE applies the LTE predicate on the "api_key" field.
func APIKeyLTE(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldLTE(FieldAPIKey, v))
}

// APIKeyContains applies the Contains predicate on the "api_key" field.
func APIKeyContains(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldContains(FieldAPIKey, v))
}

// APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
func APIKeyHasPrefix(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldHasPrefix(FieldAPIKey, v))
}

// APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
func APIKeyHasSuffix(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldHasSuffix(FieldAPIKey, v))
}

// APIKeyIsNil applies the IsNil predicate on the "api_key" field.
func APIKeyIsNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldIsNull(FieldAPIKey))
}

// APIKeyNotNil applies the NotNil predicate on the "api_key" field.
func APIKeyNotNil() predicate.XunjiService {
	return predicate.XunjiService(sql.FieldNotNull(FieldAPIKey))
}

// APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
func APIKeyEqualFold(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldEqualFold(FieldAPIKey, v))
}

// APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
func APIKeyContainsFold(v string) predicate.XunjiService {
	return predicate.XunjiService(sql.FieldContainsFold(FieldAPIKey, v))
}

// HasAgent applies the HasEdge predicate on the "agent" edge.
func HasAgent() predicate.XunjiService {
	return predicate.XunjiService(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, true, AgentTable, AgentColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasAgentWith(preds ...predicate.Agent) predicate.XunjiService {
	return predicate.XunjiService(func(s *sql.Selector) {
		step := newAgentStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

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

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

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