// Code generated by ent, DO NOT EDIT.

package batchmsg

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

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

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

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

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

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

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

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

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

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

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

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

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

// TaskName applies equality check predicate on the "task_name" field. It's identical to TaskNameEQ.
func TaskName(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTaskName, v))
}

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

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

// Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.
func Tag(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
}

// Tagids applies equality check predicate on the "tagids" field. It's identical to TagidsEQ.
func Tagids(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTagids, v))
}

// Total applies equality check predicate on the "total" field. It's identical to TotalEQ.
func Total(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
}

// Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.
func Success(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
}

// Fail applies equality check predicate on the "fail" field. It's identical to FailEQ.
func Fail(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
}

// StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
func StartTime(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
}

// StopTime applies equality check predicate on the "stop_time" field. It's identical to StopTimeEQ.
func StopTime(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
}

// SendTime applies equality check predicate on the "send_time" field. It's identical to SendTimeEQ.
func SendTime(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldSendTime, v))
}

// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func Type(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldType, v))
}

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

// Ctype applies equality check predicate on the "ctype" field. It's identical to CtypeEQ.
func Ctype(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldCtype, v))
}

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

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

// TemplateName applies equality check predicate on the "template_name" field. It's identical to TemplateNameEQ.
func TemplateName(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTemplateName, v))
}

// TemplateCode applies equality check predicate on the "template_code" field. It's identical to TemplateCodeEQ.
func TemplateCode(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTemplateCode, v))
}

// Lang applies equality check predicate on the "lang" field. It's identical to LangEQ.
func Lang(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldLang, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// TaskNameEQ applies the EQ predicate on the "task_name" field.
func TaskNameEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTaskName, v))
}

// TaskNameNEQ applies the NEQ predicate on the "task_name" field.
func TaskNameNEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldTaskName, v))
}

// TaskNameIn applies the In predicate on the "task_name" field.
func TaskNameIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldTaskName, vs...))
}

// TaskNameNotIn applies the NotIn predicate on the "task_name" field.
func TaskNameNotIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldTaskName, vs...))
}

// TaskNameGT applies the GT predicate on the "task_name" field.
func TaskNameGT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldTaskName, v))
}

// TaskNameGTE applies the GTE predicate on the "task_name" field.
func TaskNameGTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldTaskName, v))
}

// TaskNameLT applies the LT predicate on the "task_name" field.
func TaskNameLT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldTaskName, v))
}

// TaskNameLTE applies the LTE predicate on the "task_name" field.
func TaskNameLTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldTaskName, v))
}

// TaskNameContains applies the Contains predicate on the "task_name" field.
func TaskNameContains(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContains(FieldTaskName, v))
}

// TaskNameHasPrefix applies the HasPrefix predicate on the "task_name" field.
func TaskNameHasPrefix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasPrefix(FieldTaskName, v))
}

// TaskNameHasSuffix applies the HasSuffix predicate on the "task_name" field.
func TaskNameHasSuffix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasSuffix(FieldTaskName, v))
}

// TaskNameIsNil applies the IsNil predicate on the "task_name" field.
func TaskNameIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldTaskName))
}

// TaskNameNotNil applies the NotNil predicate on the "task_name" field.
func TaskNameNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldTaskName))
}

// TaskNameEqualFold applies the EqualFold predicate on the "task_name" field.
func TaskNameEqualFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEqualFold(FieldTaskName, v))
}

// TaskNameContainsFold applies the ContainsFold predicate on the "task_name" field.
func TaskNameContainsFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContainsFold(FieldTaskName, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// TagEQ applies the EQ predicate on the "tag" field.
func TagEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
}

// TagNEQ applies the NEQ predicate on the "tag" field.
func TagNEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldTag, v))
}

// TagIn applies the In predicate on the "tag" field.
func TagIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldTag, vs...))
}

// TagNotIn applies the NotIn predicate on the "tag" field.
func TagNotIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldTag, vs...))
}

// TagGT applies the GT predicate on the "tag" field.
func TagGT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldTag, v))
}

// TagGTE applies the GTE predicate on the "tag" field.
func TagGTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldTag, v))
}

// TagLT applies the LT predicate on the "tag" field.
func TagLT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldTag, v))
}

// TagLTE applies the LTE predicate on the "tag" field.
func TagLTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldTag, v))
}

// TagContains applies the Contains predicate on the "tag" field.
func TagContains(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContains(FieldTag, v))
}

// TagHasPrefix applies the HasPrefix predicate on the "tag" field.
func TagHasPrefix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasPrefix(FieldTag, v))
}

// TagHasSuffix applies the HasSuffix predicate on the "tag" field.
func TagHasSuffix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasSuffix(FieldTag, v))
}

// TagIsNil applies the IsNil predicate on the "tag" field.
func TagIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldTag))
}

// TagNotNil applies the NotNil predicate on the "tag" field.
func TagNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldTag))
}

// TagEqualFold applies the EqualFold predicate on the "tag" field.
func TagEqualFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEqualFold(FieldTag, v))
}

// TagContainsFold applies the ContainsFold predicate on the "tag" field.
func TagContainsFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContainsFold(FieldTag, v))
}

// TagidsEQ applies the EQ predicate on the "tagids" field.
func TagidsEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTagids, v))
}

// TagidsNEQ applies the NEQ predicate on the "tagids" field.
func TagidsNEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldTagids, v))
}

// TagidsIn applies the In predicate on the "tagids" field.
func TagidsIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldTagids, vs...))
}

// TagidsNotIn applies the NotIn predicate on the "tagids" field.
func TagidsNotIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldTagids, vs...))
}

// TagidsGT applies the GT predicate on the "tagids" field.
func TagidsGT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldTagids, v))
}

// TagidsGTE applies the GTE predicate on the "tagids" field.
func TagidsGTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldTagids, v))
}

// TagidsLT applies the LT predicate on the "tagids" field.
func TagidsLT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldTagids, v))
}

// TagidsLTE applies the LTE predicate on the "tagids" field.
func TagidsLTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldTagids, v))
}

// TagidsContains applies the Contains predicate on the "tagids" field.
func TagidsContains(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContains(FieldTagids, v))
}

// TagidsHasPrefix applies the HasPrefix predicate on the "tagids" field.
func TagidsHasPrefix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasPrefix(FieldTagids, v))
}

// TagidsHasSuffix applies the HasSuffix predicate on the "tagids" field.
func TagidsHasSuffix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasSuffix(FieldTagids, v))
}

// TagidsIsNil applies the IsNil predicate on the "tagids" field.
func TagidsIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldTagids))
}

// TagidsNotNil applies the NotNil predicate on the "tagids" field.
func TagidsNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldTagids))
}

// TagidsEqualFold applies the EqualFold predicate on the "tagids" field.
func TagidsEqualFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEqualFold(FieldTagids, v))
}

// TagidsContainsFold applies the ContainsFold predicate on the "tagids" field.
func TagidsContainsFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContainsFold(FieldTagids, v))
}

// TotalEQ applies the EQ predicate on the "total" field.
func TotalEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
}

// TotalNEQ applies the NEQ predicate on the "total" field.
func TotalNEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldTotal, v))
}

// TotalIn applies the In predicate on the "total" field.
func TotalIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldTotal, vs...))
}

// TotalNotIn applies the NotIn predicate on the "total" field.
func TotalNotIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldTotal, vs...))
}

// TotalGT applies the GT predicate on the "total" field.
func TotalGT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldTotal, v))
}

// TotalGTE applies the GTE predicate on the "total" field.
func TotalGTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldTotal, v))
}

// TotalLT applies the LT predicate on the "total" field.
func TotalLT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldTotal, v))
}

// TotalLTE applies the LTE predicate on the "total" field.
func TotalLTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldTotal, v))
}

// TotalIsNil applies the IsNil predicate on the "total" field.
func TotalIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldTotal))
}

// TotalNotNil applies the NotNil predicate on the "total" field.
func TotalNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldTotal))
}

// SuccessEQ applies the EQ predicate on the "success" field.
func SuccessEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
}

// SuccessNEQ applies the NEQ predicate on the "success" field.
func SuccessNEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldSuccess, v))
}

// SuccessIn applies the In predicate on the "success" field.
func SuccessIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldSuccess, vs...))
}

// SuccessNotIn applies the NotIn predicate on the "success" field.
func SuccessNotIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldSuccess, vs...))
}

// SuccessGT applies the GT predicate on the "success" field.
func SuccessGT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldSuccess, v))
}

// SuccessGTE applies the GTE predicate on the "success" field.
func SuccessGTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldSuccess, v))
}

// SuccessLT applies the LT predicate on the "success" field.
func SuccessLT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldSuccess, v))
}

// SuccessLTE applies the LTE predicate on the "success" field.
func SuccessLTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldSuccess, v))
}

// SuccessIsNil applies the IsNil predicate on the "success" field.
func SuccessIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldSuccess))
}

// SuccessNotNil applies the NotNil predicate on the "success" field.
func SuccessNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldSuccess))
}

// FailEQ applies the EQ predicate on the "fail" field.
func FailEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
}

// FailNEQ applies the NEQ predicate on the "fail" field.
func FailNEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldFail, v))
}

// FailIn applies the In predicate on the "fail" field.
func FailIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldFail, vs...))
}

// FailNotIn applies the NotIn predicate on the "fail" field.
func FailNotIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldFail, vs...))
}

// FailGT applies the GT predicate on the "fail" field.
func FailGT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldFail, v))
}

// FailGTE applies the GTE predicate on the "fail" field.
func FailGTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldFail, v))
}

// FailLT applies the LT predicate on the "fail" field.
func FailLT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldFail, v))
}

// FailLTE applies the LTE predicate on the "fail" field.
func FailLTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldFail, v))
}

// FailIsNil applies the IsNil predicate on the "fail" field.
func FailIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldFail))
}

// FailNotNil applies the NotNil predicate on the "fail" field.
func FailNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldFail))
}

// StartTimeEQ applies the EQ predicate on the "start_time" field.
func StartTimeEQ(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
}

// StartTimeNEQ applies the NEQ predicate on the "start_time" field.
func StartTimeNEQ(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldStartTime, v))
}

// StartTimeIn applies the In predicate on the "start_time" field.
func StartTimeIn(vs ...time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldStartTime, vs...))
}

// StartTimeNotIn applies the NotIn predicate on the "start_time" field.
func StartTimeNotIn(vs ...time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldStartTime, vs...))
}

// StartTimeGT applies the GT predicate on the "start_time" field.
func StartTimeGT(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldStartTime, v))
}

// StartTimeGTE applies the GTE predicate on the "start_time" field.
func StartTimeGTE(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldStartTime, v))
}

// StartTimeLT applies the LT predicate on the "start_time" field.
func StartTimeLT(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldStartTime, v))
}

// StartTimeLTE applies the LTE predicate on the "start_time" field.
func StartTimeLTE(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldStartTime, v))
}

// StartTimeIsNil applies the IsNil predicate on the "start_time" field.
func StartTimeIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldStartTime))
}

// StartTimeNotNil applies the NotNil predicate on the "start_time" field.
func StartTimeNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldStartTime))
}

// StopTimeEQ applies the EQ predicate on the "stop_time" field.
func StopTimeEQ(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
}

// StopTimeNEQ applies the NEQ predicate on the "stop_time" field.
func StopTimeNEQ(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldStopTime, v))
}

// StopTimeIn applies the In predicate on the "stop_time" field.
func StopTimeIn(vs ...time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldStopTime, vs...))
}

// StopTimeNotIn applies the NotIn predicate on the "stop_time" field.
func StopTimeNotIn(vs ...time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldStopTime, vs...))
}

// StopTimeGT applies the GT predicate on the "stop_time" field.
func StopTimeGT(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldStopTime, v))
}

// StopTimeGTE applies the GTE predicate on the "stop_time" field.
func StopTimeGTE(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldStopTime, v))
}

// StopTimeLT applies the LT predicate on the "stop_time" field.
func StopTimeLT(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldStopTime, v))
}

// StopTimeLTE applies the LTE predicate on the "stop_time" field.
func StopTimeLTE(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldStopTime, v))
}

// StopTimeIsNil applies the IsNil predicate on the "stop_time" field.
func StopTimeIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldStopTime))
}

// StopTimeNotNil applies the NotNil predicate on the "stop_time" field.
func StopTimeNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldStopTime))
}

// SendTimeEQ applies the EQ predicate on the "send_time" field.
func SendTimeEQ(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldSendTime, v))
}

// SendTimeNEQ applies the NEQ predicate on the "send_time" field.
func SendTimeNEQ(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldSendTime, v))
}

// SendTimeIn applies the In predicate on the "send_time" field.
func SendTimeIn(vs ...time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldSendTime, vs...))
}

// SendTimeNotIn applies the NotIn predicate on the "send_time" field.
func SendTimeNotIn(vs ...time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldSendTime, vs...))
}

// SendTimeGT applies the GT predicate on the "send_time" field.
func SendTimeGT(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldSendTime, v))
}

// SendTimeGTE applies the GTE predicate on the "send_time" field.
func SendTimeGTE(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldSendTime, v))
}

// SendTimeLT applies the LT predicate on the "send_time" field.
func SendTimeLT(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldSendTime, v))
}

// SendTimeLTE applies the LTE predicate on the "send_time" field.
func SendTimeLTE(v time.Time) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldSendTime, v))
}

// SendTimeIsNil applies the IsNil predicate on the "send_time" field.
func SendTimeIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldSendTime))
}

// SendTimeNotNil applies the NotNil predicate on the "send_time" field.
func SendTimeNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldSendTime))
}

// TypeEQ applies the EQ predicate on the "type" field.
func TypeEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldType, v))
}

// TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNEQ(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldType, v))
}

// TypeIn applies the In predicate on the "type" field.
func TypeIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldType, vs...))
}

// TypeNotIn applies the NotIn predicate on the "type" field.
func TypeNotIn(vs ...int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldType, vs...))
}

// TypeGT applies the GT predicate on the "type" field.
func TypeGT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldType, v))
}

// TypeGTE applies the GTE predicate on the "type" field.
func TypeGTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldType, v))
}

// TypeLT applies the LT predicate on the "type" field.
func TypeLT(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldType, v))
}

// TypeLTE applies the LTE predicate on the "type" field.
func TypeLTE(v int32) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldType, v))
}

// TypeIsNil applies the IsNil predicate on the "type" field.
func TypeIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldType))
}

// TypeNotNil applies the NotNil predicate on the "type" field.
func TypeNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldType))
}

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

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

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

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

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

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

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

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

// CtypeEQ applies the EQ predicate on the "ctype" field.
func CtypeEQ(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldCtype, v))
}

// CtypeNEQ applies the NEQ predicate on the "ctype" field.
func CtypeNEQ(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldCtype, v))
}

// CtypeIn applies the In predicate on the "ctype" field.
func CtypeIn(vs ...uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldCtype, vs...))
}

// CtypeNotIn applies the NotIn predicate on the "ctype" field.
func CtypeNotIn(vs ...uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldCtype, vs...))
}

// CtypeGT applies the GT predicate on the "ctype" field.
func CtypeGT(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldCtype, v))
}

// CtypeGTE applies the GTE predicate on the "ctype" field.
func CtypeGTE(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldCtype, v))
}

// CtypeLT applies the LT predicate on the "ctype" field.
func CtypeLT(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldCtype, v))
}

// CtypeLTE applies the LTE predicate on the "ctype" field.
func CtypeLTE(v uint64) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldCtype, v))
}

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

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

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

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

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

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

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

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

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

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

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

// CcIsNil applies the IsNil predicate on the "cc" field.
func CcIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldCc))
}

// CcNotNil applies the NotNil predicate on the "cc" field.
func CcNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldCc))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

// PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldPhone))
}

// PhoneNotNil applies the NotNil predicate on the "phone" field.
func PhoneNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldPhone))
}

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

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

// TemplateNameEQ applies the EQ predicate on the "template_name" field.
func TemplateNameEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTemplateName, v))
}

// TemplateNameNEQ applies the NEQ predicate on the "template_name" field.
func TemplateNameNEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldTemplateName, v))
}

// TemplateNameIn applies the In predicate on the "template_name" field.
func TemplateNameIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldTemplateName, vs...))
}

// TemplateNameNotIn applies the NotIn predicate on the "template_name" field.
func TemplateNameNotIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldTemplateName, vs...))
}

// TemplateNameGT applies the GT predicate on the "template_name" field.
func TemplateNameGT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldTemplateName, v))
}

// TemplateNameGTE applies the GTE predicate on the "template_name" field.
func TemplateNameGTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldTemplateName, v))
}

// TemplateNameLT applies the LT predicate on the "template_name" field.
func TemplateNameLT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldTemplateName, v))
}

// TemplateNameLTE applies the LTE predicate on the "template_name" field.
func TemplateNameLTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldTemplateName, v))
}

// TemplateNameContains applies the Contains predicate on the "template_name" field.
func TemplateNameContains(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContains(FieldTemplateName, v))
}

// TemplateNameHasPrefix applies the HasPrefix predicate on the "template_name" field.
func TemplateNameHasPrefix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasPrefix(FieldTemplateName, v))
}

// TemplateNameHasSuffix applies the HasSuffix predicate on the "template_name" field.
func TemplateNameHasSuffix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasSuffix(FieldTemplateName, v))
}

// TemplateNameIsNil applies the IsNil predicate on the "template_name" field.
func TemplateNameIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldTemplateName))
}

// TemplateNameNotNil applies the NotNil predicate on the "template_name" field.
func TemplateNameNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldTemplateName))
}

// TemplateNameEqualFold applies the EqualFold predicate on the "template_name" field.
func TemplateNameEqualFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEqualFold(FieldTemplateName, v))
}

// TemplateNameContainsFold applies the ContainsFold predicate on the "template_name" field.
func TemplateNameContainsFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContainsFold(FieldTemplateName, v))
}

// TemplateCodeEQ applies the EQ predicate on the "template_code" field.
func TemplateCodeEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldTemplateCode, v))
}

// TemplateCodeNEQ applies the NEQ predicate on the "template_code" field.
func TemplateCodeNEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldTemplateCode, v))
}

// TemplateCodeIn applies the In predicate on the "template_code" field.
func TemplateCodeIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldTemplateCode, vs...))
}

// TemplateCodeNotIn applies the NotIn predicate on the "template_code" field.
func TemplateCodeNotIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldTemplateCode, vs...))
}

// TemplateCodeGT applies the GT predicate on the "template_code" field.
func TemplateCodeGT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldTemplateCode, v))
}

// TemplateCodeGTE applies the GTE predicate on the "template_code" field.
func TemplateCodeGTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldTemplateCode, v))
}

// TemplateCodeLT applies the LT predicate on the "template_code" field.
func TemplateCodeLT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldTemplateCode, v))
}

// TemplateCodeLTE applies the LTE predicate on the "template_code" field.
func TemplateCodeLTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldTemplateCode, v))
}

// TemplateCodeContains applies the Contains predicate on the "template_code" field.
func TemplateCodeContains(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContains(FieldTemplateCode, v))
}

// TemplateCodeHasPrefix applies the HasPrefix predicate on the "template_code" field.
func TemplateCodeHasPrefix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasPrefix(FieldTemplateCode, v))
}

// TemplateCodeHasSuffix applies the HasSuffix predicate on the "template_code" field.
func TemplateCodeHasSuffix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasSuffix(FieldTemplateCode, v))
}

// TemplateCodeIsNil applies the IsNil predicate on the "template_code" field.
func TemplateCodeIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldTemplateCode))
}

// TemplateCodeNotNil applies the NotNil predicate on the "template_code" field.
func TemplateCodeNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldTemplateCode))
}

// TemplateCodeEqualFold applies the EqualFold predicate on the "template_code" field.
func TemplateCodeEqualFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEqualFold(FieldTemplateCode, v))
}

// TemplateCodeContainsFold applies the ContainsFold predicate on the "template_code" field.
func TemplateCodeContainsFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContainsFold(FieldTemplateCode, v))
}

// LangEQ applies the EQ predicate on the "lang" field.
func LangEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEQ(FieldLang, v))
}

// LangNEQ applies the NEQ predicate on the "lang" field.
func LangNEQ(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNEQ(FieldLang, v))
}

// LangIn applies the In predicate on the "lang" field.
func LangIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIn(FieldLang, vs...))
}

// LangNotIn applies the NotIn predicate on the "lang" field.
func LangNotIn(vs ...string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotIn(FieldLang, vs...))
}

// LangGT applies the GT predicate on the "lang" field.
func LangGT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGT(FieldLang, v))
}

// LangGTE applies the GTE predicate on the "lang" field.
func LangGTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldGTE(FieldLang, v))
}

// LangLT applies the LT predicate on the "lang" field.
func LangLT(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLT(FieldLang, v))
}

// LangLTE applies the LTE predicate on the "lang" field.
func LangLTE(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldLTE(FieldLang, v))
}

// LangContains applies the Contains predicate on the "lang" field.
func LangContains(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContains(FieldLang, v))
}

// LangHasPrefix applies the HasPrefix predicate on the "lang" field.
func LangHasPrefix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasPrefix(FieldLang, v))
}

// LangHasSuffix applies the HasSuffix predicate on the "lang" field.
func LangHasSuffix(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldHasSuffix(FieldLang, v))
}

// LangIsNil applies the IsNil predicate on the "lang" field.
func LangIsNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldIsNull(FieldLang))
}

// LangNotNil applies the NotNil predicate on the "lang" field.
func LangNotNil() predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldNotNull(FieldLang))
}

// LangEqualFold applies the EqualFold predicate on the "lang" field.
func LangEqualFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldEqualFold(FieldLang, v))
}

// LangContainsFold applies the ContainsFold predicate on the "lang" field.
func LangContainsFold(v string) predicate.BatchMsg {
	return predicate.BatchMsg(sql.FieldContainsFold(FieldLang, v))
}

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

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

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