// Code generated by ent, DO NOT EDIT.

package msg

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

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

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

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

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

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

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

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

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

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

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uint64) predicate.Msg {
	return predicate.Msg(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.Msg {
	return predicate.Msg(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.Msg {
	return predicate.Msg(sql.FieldEQ(FieldUpdatedAt, v))
}

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

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

// Fromwxid applies equality check predicate on the "fromwxid" field. It's identical to FromwxidEQ.
func Fromwxid(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldFromwxid, v))
}

// Toid applies equality check predicate on the "toid" field. It's identical to ToidEQ.
func Toid(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldToid, v))
}

// Msgtype applies equality check predicate on the "msgtype" field. It's identical to MsgtypeEQ.
func Msgtype(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldMsgtype, v))
}

// Msg applies equality check predicate on the "msg" field. It's identical to MsgEQ.
func Msg(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldMsg, v))
}

// BatchNo applies equality check predicate on the "batch_no" field. It's identical to BatchNoEQ.
func BatchNo(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldBatchNo, v))
}

// Cc applies equality check predicate on the "cc" field. It's identical to CcEQ.
func Cc(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldCc, v))
}

// Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func Phone(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldPhone, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// FromwxidEQ applies the EQ predicate on the "fromwxid" field.
func FromwxidEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldFromwxid, v))
}

// FromwxidNEQ applies the NEQ predicate on the "fromwxid" field.
func FromwxidNEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldFromwxid, v))
}

// FromwxidIn applies the In predicate on the "fromwxid" field.
func FromwxidIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldFromwxid, vs...))
}

// FromwxidNotIn applies the NotIn predicate on the "fromwxid" field.
func FromwxidNotIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldFromwxid, vs...))
}

// FromwxidGT applies the GT predicate on the "fromwxid" field.
func FromwxidGT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldFromwxid, v))
}

// FromwxidGTE applies the GTE predicate on the "fromwxid" field.
func FromwxidGTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldFromwxid, v))
}

// FromwxidLT applies the LT predicate on the "fromwxid" field.
func FromwxidLT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldFromwxid, v))
}

// FromwxidLTE applies the LTE predicate on the "fromwxid" field.
func FromwxidLTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldFromwxid, v))
}

// FromwxidContains applies the Contains predicate on the "fromwxid" field.
func FromwxidContains(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContains(FieldFromwxid, v))
}

// FromwxidHasPrefix applies the HasPrefix predicate on the "fromwxid" field.
func FromwxidHasPrefix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasPrefix(FieldFromwxid, v))
}

// FromwxidHasSuffix applies the HasSuffix predicate on the "fromwxid" field.
func FromwxidHasSuffix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasSuffix(FieldFromwxid, v))
}

// FromwxidIsNil applies the IsNil predicate on the "fromwxid" field.
func FromwxidIsNil() predicate.Msg {
	return predicate.Msg(sql.FieldIsNull(FieldFromwxid))
}

// FromwxidNotNil applies the NotNil predicate on the "fromwxid" field.
func FromwxidNotNil() predicate.Msg {
	return predicate.Msg(sql.FieldNotNull(FieldFromwxid))
}

// FromwxidEqualFold applies the EqualFold predicate on the "fromwxid" field.
func FromwxidEqualFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEqualFold(FieldFromwxid, v))
}

// FromwxidContainsFold applies the ContainsFold predicate on the "fromwxid" field.
func FromwxidContainsFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContainsFold(FieldFromwxid, v))
}

// ToidEQ applies the EQ predicate on the "toid" field.
func ToidEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldToid, v))
}

// ToidNEQ applies the NEQ predicate on the "toid" field.
func ToidNEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldToid, v))
}

// ToidIn applies the In predicate on the "toid" field.
func ToidIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldToid, vs...))
}

// ToidNotIn applies the NotIn predicate on the "toid" field.
func ToidNotIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldToid, vs...))
}

// ToidGT applies the GT predicate on the "toid" field.
func ToidGT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldToid, v))
}

// ToidGTE applies the GTE predicate on the "toid" field.
func ToidGTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldToid, v))
}

// ToidLT applies the LT predicate on the "toid" field.
func ToidLT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldToid, v))
}

// ToidLTE applies the LTE predicate on the "toid" field.
func ToidLTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldToid, v))
}

// ToidContains applies the Contains predicate on the "toid" field.
func ToidContains(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContains(FieldToid, v))
}

// ToidHasPrefix applies the HasPrefix predicate on the "toid" field.
func ToidHasPrefix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasPrefix(FieldToid, v))
}

// ToidHasSuffix applies the HasSuffix predicate on the "toid" field.
func ToidHasSuffix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasSuffix(FieldToid, v))
}

// ToidIsNil applies the IsNil predicate on the "toid" field.
func ToidIsNil() predicate.Msg {
	return predicate.Msg(sql.FieldIsNull(FieldToid))
}

// ToidNotNil applies the NotNil predicate on the "toid" field.
func ToidNotNil() predicate.Msg {
	return predicate.Msg(sql.FieldNotNull(FieldToid))
}

// ToidEqualFold applies the EqualFold predicate on the "toid" field.
func ToidEqualFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEqualFold(FieldToid, v))
}

// ToidContainsFold applies the ContainsFold predicate on the "toid" field.
func ToidContainsFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContainsFold(FieldToid, v))
}

// MsgtypeEQ applies the EQ predicate on the "msgtype" field.
func MsgtypeEQ(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldMsgtype, v))
}

// MsgtypeNEQ applies the NEQ predicate on the "msgtype" field.
func MsgtypeNEQ(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldMsgtype, v))
}

// MsgtypeIn applies the In predicate on the "msgtype" field.
func MsgtypeIn(vs ...int32) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldMsgtype, vs...))
}

// MsgtypeNotIn applies the NotIn predicate on the "msgtype" field.
func MsgtypeNotIn(vs ...int32) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldMsgtype, vs...))
}

// MsgtypeGT applies the GT predicate on the "msgtype" field.
func MsgtypeGT(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldMsgtype, v))
}

// MsgtypeGTE applies the GTE predicate on the "msgtype" field.
func MsgtypeGTE(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldMsgtype, v))
}

// MsgtypeLT applies the LT predicate on the "msgtype" field.
func MsgtypeLT(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldMsgtype, v))
}

// MsgtypeLTE applies the LTE predicate on the "msgtype" field.
func MsgtypeLTE(v int32) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldMsgtype, v))
}

// MsgtypeIsNil applies the IsNil predicate on the "msgtype" field.
func MsgtypeIsNil() predicate.Msg {
	return predicate.Msg(sql.FieldIsNull(FieldMsgtype))
}

// MsgtypeNotNil applies the NotNil predicate on the "msgtype" field.
func MsgtypeNotNil() predicate.Msg {
	return predicate.Msg(sql.FieldNotNull(FieldMsgtype))
}

// MsgEQ applies the EQ predicate on the "msg" field.
func MsgEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldMsg, v))
}

// MsgNEQ applies the NEQ predicate on the "msg" field.
func MsgNEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldMsg, v))
}

// MsgIn applies the In predicate on the "msg" field.
func MsgIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldMsg, vs...))
}

// MsgNotIn applies the NotIn predicate on the "msg" field.
func MsgNotIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldMsg, vs...))
}

// MsgGT applies the GT predicate on the "msg" field.
func MsgGT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldMsg, v))
}

// MsgGTE applies the GTE predicate on the "msg" field.
func MsgGTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldMsg, v))
}

// MsgLT applies the LT predicate on the "msg" field.
func MsgLT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldMsg, v))
}

// MsgLTE applies the LTE predicate on the "msg" field.
func MsgLTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldMsg, v))
}

// MsgContains applies the Contains predicate on the "msg" field.
func MsgContains(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContains(FieldMsg, v))
}

// MsgHasPrefix applies the HasPrefix predicate on the "msg" field.
func MsgHasPrefix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasPrefix(FieldMsg, v))
}

// MsgHasSuffix applies the HasSuffix predicate on the "msg" field.
func MsgHasSuffix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasSuffix(FieldMsg, v))
}

// MsgIsNil applies the IsNil predicate on the "msg" field.
func MsgIsNil() predicate.Msg {
	return predicate.Msg(sql.FieldIsNull(FieldMsg))
}

// MsgNotNil applies the NotNil predicate on the "msg" field.
func MsgNotNil() predicate.Msg {
	return predicate.Msg(sql.FieldNotNull(FieldMsg))
}

// MsgEqualFold applies the EqualFold predicate on the "msg" field.
func MsgEqualFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEqualFold(FieldMsg, v))
}

// MsgContainsFold applies the ContainsFold predicate on the "msg" field.
func MsgContainsFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContainsFold(FieldMsg, v))
}

// BatchNoEQ applies the EQ predicate on the "batch_no" field.
func BatchNoEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldBatchNo, v))
}

// BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
func BatchNoNEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldBatchNo, v))
}

// BatchNoIn applies the In predicate on the "batch_no" field.
func BatchNoIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldBatchNo, vs...))
}

// BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
func BatchNoNotIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldBatchNo, vs...))
}

// BatchNoGT applies the GT predicate on the "batch_no" field.
func BatchNoGT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldBatchNo, v))
}

// BatchNoGTE applies the GTE predicate on the "batch_no" field.
func BatchNoGTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldBatchNo, v))
}

// BatchNoLT applies the LT predicate on the "batch_no" field.
func BatchNoLT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldBatchNo, v))
}

// BatchNoLTE applies the LTE predicate on the "batch_no" field.
func BatchNoLTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldBatchNo, v))
}

// BatchNoContains applies the Contains predicate on the "batch_no" field.
func BatchNoContains(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContains(FieldBatchNo, v))
}

// BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
func BatchNoHasPrefix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasPrefix(FieldBatchNo, v))
}

// BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
func BatchNoHasSuffix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasSuffix(FieldBatchNo, v))
}

// BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
func BatchNoIsNil() predicate.Msg {
	return predicate.Msg(sql.FieldIsNull(FieldBatchNo))
}

// BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
func BatchNoNotNil() predicate.Msg {
	return predicate.Msg(sql.FieldNotNull(FieldBatchNo))
}

// BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
func BatchNoEqualFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEqualFold(FieldBatchNo, v))
}

// BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
func BatchNoContainsFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContainsFold(FieldBatchNo, v))
}

// CcEQ applies the EQ predicate on the "cc" field.
func CcEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldCc, v))
}

// CcNEQ applies the NEQ predicate on the "cc" field.
func CcNEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldCc, v))
}

// CcIn applies the In predicate on the "cc" field.
func CcIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldCc, vs...))
}

// CcNotIn applies the NotIn predicate on the "cc" field.
func CcNotIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldCc, vs...))
}

// CcGT applies the GT predicate on the "cc" field.
func CcGT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldCc, v))
}

// CcGTE applies the GTE predicate on the "cc" field.
func CcGTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldCc, v))
}

// CcLT applies the LT predicate on the "cc" field.
func CcLT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldCc, v))
}

// CcLTE applies the LTE predicate on the "cc" field.
func CcLTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldCc, v))
}

// CcContains applies the Contains predicate on the "cc" field.
func CcContains(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContains(FieldCc, v))
}

// CcHasPrefix applies the HasPrefix predicate on the "cc" field.
func CcHasPrefix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasPrefix(FieldCc, v))
}

// CcHasSuffix applies the HasSuffix predicate on the "cc" field.
func CcHasSuffix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasSuffix(FieldCc, v))
}

// CcEqualFold applies the EqualFold predicate on the "cc" field.
func CcEqualFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEqualFold(FieldCc, v))
}

// CcContainsFold applies the ContainsFold predicate on the "cc" field.
func CcContainsFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContainsFold(FieldCc, v))
}

// PhoneEQ applies the EQ predicate on the "phone" field.
func PhoneEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEQ(FieldPhone, v))
}

// PhoneNEQ applies the NEQ predicate on the "phone" field.
func PhoneNEQ(v string) predicate.Msg {
	return predicate.Msg(sql.FieldNEQ(FieldPhone, v))
}

// PhoneIn applies the In predicate on the "phone" field.
func PhoneIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldIn(FieldPhone, vs...))
}

// PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotIn(vs ...string) predicate.Msg {
	return predicate.Msg(sql.FieldNotIn(FieldPhone, vs...))
}

// PhoneGT applies the GT predicate on the "phone" field.
func PhoneGT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGT(FieldPhone, v))
}

// PhoneGTE applies the GTE predicate on the "phone" field.
func PhoneGTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldGTE(FieldPhone, v))
}

// PhoneLT applies the LT predicate on the "phone" field.
func PhoneLT(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLT(FieldPhone, v))
}

// PhoneLTE applies the LTE predicate on the "phone" field.
func PhoneLTE(v string) predicate.Msg {
	return predicate.Msg(sql.FieldLTE(FieldPhone, v))
}

// PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContains(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContains(FieldPhone, v))
}

// PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasPrefix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasPrefix(FieldPhone, v))
}

// PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneHasSuffix(v string) predicate.Msg {
	return predicate.Msg(sql.FieldHasSuffix(FieldPhone, v))
}

// PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneEqualFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldEqualFold(FieldPhone, v))
}

// PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneContainsFold(v string) predicate.Msg {
	return predicate.Msg(sql.FieldContainsFold(FieldPhone, v))
}

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

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

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