// Code generated by ent, DO NOT EDIT. package messagerecords 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.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id uint64) predicate.MessageRecords { return predicate.MessageRecords(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.MessageRecords { return predicate.MessageRecords(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.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldUpdatedAt, v)) } // Status applies equality check predicate on the "status" field. It's identical to StatusEQ. func Status(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldStatus, v)) } // BotWxid applies equality check predicate on the "bot_wxid" field. It's identical to BotWxidEQ. func BotWxid(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldBotWxid, v)) } // ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ. func ContactID(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContactID, v)) } // ContactType applies equality check predicate on the "contact_type" field. It's identical to ContactTypeEQ. func ContactType(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContactType, v)) } // ContactWxid applies equality check predicate on the "contact_wxid" field. It's identical to ContactWxidEQ. func ContactWxid(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContactWxid, v)) } // ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ. func ContentType(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContentType, v)) } // Content applies equality check predicate on the "content" field. It's identical to ContentEQ. func Content(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContent, v)) } // ErrorDetail applies equality check predicate on the "error_detail" field. It's identical to ErrorDetailEQ. func ErrorDetail(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldErrorDetail, v)) } // SendTime applies equality check predicate on the "send_time" field. It's identical to SendTimeEQ. func SendTime(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSendTime, v)) } // SourceType applies equality check predicate on the "source_type" field. It's identical to SourceTypeEQ. func SourceType(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSourceType, v)) } // SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ. func SourceID(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSourceID, v)) } // SubSourceID applies equality check predicate on the "sub_source_id" field. It's identical to SubSourceIDEQ. func SubSourceID(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSubSourceID, v)) } // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ. func OrganizationID(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldOrganizationID, v)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldUpdatedAt, v)) } // StatusEQ applies the EQ predicate on the "status" field. func StatusEQ(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldStatus, v)) } // StatusNEQ applies the NEQ predicate on the "status" field. func StatusNEQ(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldStatus, v)) } // StatusIn applies the In predicate on the "status" field. func StatusIn(vs ...uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldStatus, vs...)) } // StatusNotIn applies the NotIn predicate on the "status" field. func StatusNotIn(vs ...uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldStatus, vs...)) } // StatusGT applies the GT predicate on the "status" field. func StatusGT(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldStatus, v)) } // StatusGTE applies the GTE predicate on the "status" field. func StatusGTE(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldStatus, v)) } // StatusLT applies the LT predicate on the "status" field. func StatusLT(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldStatus, v)) } // StatusLTE applies the LTE predicate on the "status" field. func StatusLTE(v uint8) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldStatus, v)) } // StatusIsNil applies the IsNil predicate on the "status" field. func StatusIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldStatus)) } // StatusNotNil applies the NotNil predicate on the "status" field. func StatusNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldStatus)) } // BotWxidEQ applies the EQ predicate on the "bot_wxid" field. func BotWxidEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldBotWxid, v)) } // BotWxidNEQ applies the NEQ predicate on the "bot_wxid" field. func BotWxidNEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldBotWxid, v)) } // BotWxidIn applies the In predicate on the "bot_wxid" field. func BotWxidIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldBotWxid, vs...)) } // BotWxidNotIn applies the NotIn predicate on the "bot_wxid" field. func BotWxidNotIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldBotWxid, vs...)) } // BotWxidGT applies the GT predicate on the "bot_wxid" field. func BotWxidGT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldBotWxid, v)) } // BotWxidGTE applies the GTE predicate on the "bot_wxid" field. func BotWxidGTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldBotWxid, v)) } // BotWxidLT applies the LT predicate on the "bot_wxid" field. func BotWxidLT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldBotWxid, v)) } // BotWxidLTE applies the LTE predicate on the "bot_wxid" field. func BotWxidLTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldBotWxid, v)) } // BotWxidContains applies the Contains predicate on the "bot_wxid" field. func BotWxidContains(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContains(FieldBotWxid, v)) } // BotWxidHasPrefix applies the HasPrefix predicate on the "bot_wxid" field. func BotWxidHasPrefix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasPrefix(FieldBotWxid, v)) } // BotWxidHasSuffix applies the HasSuffix predicate on the "bot_wxid" field. func BotWxidHasSuffix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasSuffix(FieldBotWxid, v)) } // BotWxidEqualFold applies the EqualFold predicate on the "bot_wxid" field. func BotWxidEqualFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEqualFold(FieldBotWxid, v)) } // BotWxidContainsFold applies the ContainsFold predicate on the "bot_wxid" field. func BotWxidContainsFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContainsFold(FieldBotWxid, v)) } // ContactIDEQ applies the EQ predicate on the "contact_id" field. func ContactIDEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContactID, v)) } // ContactIDNEQ applies the NEQ predicate on the "contact_id" field. func ContactIDNEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldContactID, v)) } // ContactIDIn applies the In predicate on the "contact_id" field. func ContactIDIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldContactID, vs...)) } // ContactIDNotIn applies the NotIn predicate on the "contact_id" field. func ContactIDNotIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldContactID, vs...)) } // ContactIDIsNil applies the IsNil predicate on the "contact_id" field. func ContactIDIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldContactID)) } // ContactIDNotNil applies the NotNil predicate on the "contact_id" field. func ContactIDNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldContactID)) } // ContactTypeEQ applies the EQ predicate on the "contact_type" field. func ContactTypeEQ(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContactType, v)) } // ContactTypeNEQ applies the NEQ predicate on the "contact_type" field. func ContactTypeNEQ(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldContactType, v)) } // ContactTypeIn applies the In predicate on the "contact_type" field. func ContactTypeIn(vs ...int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldContactType, vs...)) } // ContactTypeNotIn applies the NotIn predicate on the "contact_type" field. func ContactTypeNotIn(vs ...int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldContactType, vs...)) } // ContactTypeGT applies the GT predicate on the "contact_type" field. func ContactTypeGT(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldContactType, v)) } // ContactTypeGTE applies the GTE predicate on the "contact_type" field. func ContactTypeGTE(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldContactType, v)) } // ContactTypeLT applies the LT predicate on the "contact_type" field. func ContactTypeLT(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldContactType, v)) } // ContactTypeLTE applies the LTE predicate on the "contact_type" field. func ContactTypeLTE(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldContactType, v)) } // ContactWxidEQ applies the EQ predicate on the "contact_wxid" field. func ContactWxidEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContactWxid, v)) } // ContactWxidNEQ applies the NEQ predicate on the "contact_wxid" field. func ContactWxidNEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldContactWxid, v)) } // ContactWxidIn applies the In predicate on the "contact_wxid" field. func ContactWxidIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldContactWxid, vs...)) } // ContactWxidNotIn applies the NotIn predicate on the "contact_wxid" field. func ContactWxidNotIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldContactWxid, vs...)) } // ContactWxidGT applies the GT predicate on the "contact_wxid" field. func ContactWxidGT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldContactWxid, v)) } // ContactWxidGTE applies the GTE predicate on the "contact_wxid" field. func ContactWxidGTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldContactWxid, v)) } // ContactWxidLT applies the LT predicate on the "contact_wxid" field. func ContactWxidLT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldContactWxid, v)) } // ContactWxidLTE applies the LTE predicate on the "contact_wxid" field. func ContactWxidLTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldContactWxid, v)) } // ContactWxidContains applies the Contains predicate on the "contact_wxid" field. func ContactWxidContains(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContains(FieldContactWxid, v)) } // ContactWxidHasPrefix applies the HasPrefix predicate on the "contact_wxid" field. func ContactWxidHasPrefix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasPrefix(FieldContactWxid, v)) } // ContactWxidHasSuffix applies the HasSuffix predicate on the "contact_wxid" field. func ContactWxidHasSuffix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasSuffix(FieldContactWxid, v)) } // ContactWxidEqualFold applies the EqualFold predicate on the "contact_wxid" field. func ContactWxidEqualFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEqualFold(FieldContactWxid, v)) } // ContactWxidContainsFold applies the ContainsFold predicate on the "contact_wxid" field. func ContactWxidContainsFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContainsFold(FieldContactWxid, v)) } // ContentTypeEQ applies the EQ predicate on the "content_type" field. func ContentTypeEQ(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContentType, v)) } // ContentTypeNEQ applies the NEQ predicate on the "content_type" field. func ContentTypeNEQ(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldContentType, v)) } // ContentTypeIn applies the In predicate on the "content_type" field. func ContentTypeIn(vs ...int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldContentType, vs...)) } // ContentTypeNotIn applies the NotIn predicate on the "content_type" field. func ContentTypeNotIn(vs ...int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldContentType, vs...)) } // ContentTypeGT applies the GT predicate on the "content_type" field. func ContentTypeGT(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldContentType, v)) } // ContentTypeGTE applies the GTE predicate on the "content_type" field. func ContentTypeGTE(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldContentType, v)) } // ContentTypeLT applies the LT predicate on the "content_type" field. func ContentTypeLT(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldContentType, v)) } // ContentTypeLTE applies the LTE predicate on the "content_type" field. func ContentTypeLTE(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldContentType, v)) } // ContentEQ applies the EQ predicate on the "content" field. func ContentEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldContent, v)) } // ContentNEQ applies the NEQ predicate on the "content" field. func ContentNEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldContent, v)) } // ContentIn applies the In predicate on the "content" field. func ContentIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldContent, vs...)) } // ContentNotIn applies the NotIn predicate on the "content" field. func ContentNotIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldContent, vs...)) } // ContentGT applies the GT predicate on the "content" field. func ContentGT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldContent, v)) } // ContentGTE applies the GTE predicate on the "content" field. func ContentGTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldContent, v)) } // ContentLT applies the LT predicate on the "content" field. func ContentLT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldContent, v)) } // ContentLTE applies the LTE predicate on the "content" field. func ContentLTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldContent, v)) } // ContentContains applies the Contains predicate on the "content" field. func ContentContains(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContains(FieldContent, v)) } // ContentHasPrefix applies the HasPrefix predicate on the "content" field. func ContentHasPrefix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasPrefix(FieldContent, v)) } // ContentHasSuffix applies the HasSuffix predicate on the "content" field. func ContentHasSuffix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasSuffix(FieldContent, v)) } // ContentEqualFold applies the EqualFold predicate on the "content" field. func ContentEqualFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEqualFold(FieldContent, v)) } // ContentContainsFold applies the ContainsFold predicate on the "content" field. func ContentContainsFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContainsFold(FieldContent, v)) } // MetaIsNil applies the IsNil predicate on the "meta" field. func MetaIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldMeta)) } // MetaNotNil applies the NotNil predicate on the "meta" field. func MetaNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldMeta)) } // ErrorDetailEQ applies the EQ predicate on the "error_detail" field. func ErrorDetailEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldErrorDetail, v)) } // ErrorDetailNEQ applies the NEQ predicate on the "error_detail" field. func ErrorDetailNEQ(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldErrorDetail, v)) } // ErrorDetailIn applies the In predicate on the "error_detail" field. func ErrorDetailIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldErrorDetail, vs...)) } // ErrorDetailNotIn applies the NotIn predicate on the "error_detail" field. func ErrorDetailNotIn(vs ...string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldErrorDetail, vs...)) } // ErrorDetailGT applies the GT predicate on the "error_detail" field. func ErrorDetailGT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldErrorDetail, v)) } // ErrorDetailGTE applies the GTE predicate on the "error_detail" field. func ErrorDetailGTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldErrorDetail, v)) } // ErrorDetailLT applies the LT predicate on the "error_detail" field. func ErrorDetailLT(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldErrorDetail, v)) } // ErrorDetailLTE applies the LTE predicate on the "error_detail" field. func ErrorDetailLTE(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldErrorDetail, v)) } // ErrorDetailContains applies the Contains predicate on the "error_detail" field. func ErrorDetailContains(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContains(FieldErrorDetail, v)) } // ErrorDetailHasPrefix applies the HasPrefix predicate on the "error_detail" field. func ErrorDetailHasPrefix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasPrefix(FieldErrorDetail, v)) } // ErrorDetailHasSuffix applies the HasSuffix predicate on the "error_detail" field. func ErrorDetailHasSuffix(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldHasSuffix(FieldErrorDetail, v)) } // ErrorDetailEqualFold applies the EqualFold predicate on the "error_detail" field. func ErrorDetailEqualFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEqualFold(FieldErrorDetail, v)) } // ErrorDetailContainsFold applies the ContainsFold predicate on the "error_detail" field. func ErrorDetailContainsFold(v string) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldContainsFold(FieldErrorDetail, v)) } // SendTimeEQ applies the EQ predicate on the "send_time" field. func SendTimeEQ(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSendTime, v)) } // SendTimeNEQ applies the NEQ predicate on the "send_time" field. func SendTimeNEQ(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldSendTime, v)) } // SendTimeIn applies the In predicate on the "send_time" field. func SendTimeIn(vs ...time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldSendTime, vs...)) } // SendTimeNotIn applies the NotIn predicate on the "send_time" field. func SendTimeNotIn(vs ...time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldSendTime, vs...)) } // SendTimeGT applies the GT predicate on the "send_time" field. func SendTimeGT(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldSendTime, v)) } // SendTimeGTE applies the GTE predicate on the "send_time" field. func SendTimeGTE(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldSendTime, v)) } // SendTimeLT applies the LT predicate on the "send_time" field. func SendTimeLT(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldSendTime, v)) } // SendTimeLTE applies the LTE predicate on the "send_time" field. func SendTimeLTE(v time.Time) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldSendTime, v)) } // SendTimeIsNil applies the IsNil predicate on the "send_time" field. func SendTimeIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldSendTime)) } // SendTimeNotNil applies the NotNil predicate on the "send_time" field. func SendTimeNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldSendTime)) } // SourceTypeEQ applies the EQ predicate on the "source_type" field. func SourceTypeEQ(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSourceType, v)) } // SourceTypeNEQ applies the NEQ predicate on the "source_type" field. func SourceTypeNEQ(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldSourceType, v)) } // SourceTypeIn applies the In predicate on the "source_type" field. func SourceTypeIn(vs ...int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldSourceType, vs...)) } // SourceTypeNotIn applies the NotIn predicate on the "source_type" field. func SourceTypeNotIn(vs ...int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldSourceType, vs...)) } // SourceTypeGT applies the GT predicate on the "source_type" field. func SourceTypeGT(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldSourceType, v)) } // SourceTypeGTE applies the GTE predicate on the "source_type" field. func SourceTypeGTE(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldSourceType, v)) } // SourceTypeLT applies the LT predicate on the "source_type" field. func SourceTypeLT(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldSourceType, v)) } // SourceTypeLTE applies the LTE predicate on the "source_type" field. func SourceTypeLTE(v int) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldSourceType, v)) } // SourceIDEQ applies the EQ predicate on the "source_id" field. func SourceIDEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSourceID, v)) } // SourceIDNEQ applies the NEQ predicate on the "source_id" field. func SourceIDNEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldSourceID, v)) } // SourceIDIn applies the In predicate on the "source_id" field. func SourceIDIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldSourceID, vs...)) } // SourceIDNotIn applies the NotIn predicate on the "source_id" field. func SourceIDNotIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldSourceID, vs...)) } // SourceIDIsNil applies the IsNil predicate on the "source_id" field. func SourceIDIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldSourceID)) } // SourceIDNotNil applies the NotNil predicate on the "source_id" field. func SourceIDNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldSourceID)) } // SubSourceIDEQ applies the EQ predicate on the "sub_source_id" field. func SubSourceIDEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldSubSourceID, v)) } // SubSourceIDNEQ applies the NEQ predicate on the "sub_source_id" field. func SubSourceIDNEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldSubSourceID, v)) } // SubSourceIDIn applies the In predicate on the "sub_source_id" field. func SubSourceIDIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldSubSourceID, vs...)) } // SubSourceIDNotIn applies the NotIn predicate on the "sub_source_id" field. func SubSourceIDNotIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldSubSourceID, vs...)) } // SubSourceIDIsNil applies the IsNil predicate on the "sub_source_id" field. func SubSourceIDIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldSubSourceID)) } // SubSourceIDNotNil applies the NotNil predicate on the "sub_source_id" field. func SubSourceIDNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldSubSourceID)) } // OrganizationIDEQ applies the EQ predicate on the "organization_id" field. func OrganizationIDEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldEQ(FieldOrganizationID, v)) } // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field. func OrganizationIDNEQ(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNEQ(FieldOrganizationID, v)) } // OrganizationIDIn applies the In predicate on the "organization_id" field. func OrganizationIDIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIn(FieldOrganizationID, vs...)) } // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field. func OrganizationIDNotIn(vs ...uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotIn(FieldOrganizationID, vs...)) } // OrganizationIDGT applies the GT predicate on the "organization_id" field. func OrganizationIDGT(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGT(FieldOrganizationID, v)) } // OrganizationIDGTE applies the GTE predicate on the "organization_id" field. func OrganizationIDGTE(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldGTE(FieldOrganizationID, v)) } // OrganizationIDLT applies the LT predicate on the "organization_id" field. func OrganizationIDLT(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLT(FieldOrganizationID, v)) } // OrganizationIDLTE applies the LTE predicate on the "organization_id" field. func OrganizationIDLTE(v uint64) predicate.MessageRecords { return predicate.MessageRecords(sql.FieldLTE(FieldOrganizationID, v)) } // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field. func OrganizationIDIsNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldIsNull(FieldOrganizationID)) } // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field. func OrganizationIDNotNil() predicate.MessageRecords { return predicate.MessageRecords(sql.FieldNotNull(FieldOrganizationID)) } // HasSopStage applies the HasEdge predicate on the "sop_stage" edge. func HasSopStage() predicate.MessageRecords { return predicate.MessageRecords(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, SopStageTable, SopStageColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasSopStageWith applies the HasEdge predicate on the "sop_stage" edge with a given conditions (other predicates). func HasSopStageWith(preds ...predicate.SopStage) predicate.MessageRecords { return predicate.MessageRecords(func(s *sql.Selector) { step := newSopStageStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasSopNode applies the HasEdge predicate on the "sop_node" edge. func HasSopNode() predicate.MessageRecords { return predicate.MessageRecords(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, SopNodeTable, SopNodeColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasSopNodeWith applies the HasEdge predicate on the "sop_node" edge with a given conditions (other predicates). func HasSopNodeWith(preds ...predicate.SopNode) predicate.MessageRecords { return predicate.MessageRecords(func(s *sql.Selector) { step := newSopNodeStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasMessageContact applies the HasEdge predicate on the "message_contact" edge. func HasMessageContact() predicate.MessageRecords { return predicate.MessageRecords(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, MessageContactTable, MessageContactColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasMessageContactWith applies the HasEdge predicate on the "message_contact" edge with a given conditions (other predicates). func HasMessageContactWith(preds ...predicate.Contact) predicate.MessageRecords { return predicate.MessageRecords(func(s *sql.Selector) { step := newMessageContactStep() 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.MessageRecords) predicate.MessageRecords { return predicate.MessageRecords(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.MessageRecords) predicate.MessageRecords { return predicate.MessageRecords(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.MessageRecords) predicate.MessageRecords { return predicate.MessageRecords(sql.NotPredicates(p)) }