// Code generated by ent, DO NOT EDIT.

package sopstage

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.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldID, id))
}

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

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

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

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

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

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

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

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

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

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

// TaskID applies equality check predicate on the "task_id" field. It's identical to TaskIDEQ.
func TaskID(v uint64) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldTaskID, v))
}

// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldName, v))
}

// ConditionType applies equality check predicate on the "condition_type" field. It's identical to ConditionTypeEQ.
func ConditionType(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldConditionType, v))
}

// ConditionOperator applies equality check predicate on the "condition_operator" field. It's identical to ConditionOperatorEQ.
func ConditionOperator(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldConditionOperator, v))
}

// IndexSort applies equality check predicate on the "index_sort" field. It's identical to IndexSortEQ.
func IndexSort(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldIndexSort, v))
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// TaskIDEQ applies the EQ predicate on the "task_id" field.
func TaskIDEQ(v uint64) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldTaskID, v))
}

// TaskIDNEQ applies the NEQ predicate on the "task_id" field.
func TaskIDNEQ(v uint64) predicate.SopStage {
	return predicate.SopStage(sql.FieldNEQ(FieldTaskID, v))
}

// TaskIDIn applies the In predicate on the "task_id" field.
func TaskIDIn(vs ...uint64) predicate.SopStage {
	return predicate.SopStage(sql.FieldIn(FieldTaskID, vs...))
}

// TaskIDNotIn applies the NotIn predicate on the "task_id" field.
func TaskIDNotIn(vs ...uint64) predicate.SopStage {
	return predicate.SopStage(sql.FieldNotIn(FieldTaskID, vs...))
}

// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldName, v))
}

// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldNEQ(FieldName, v))
}

// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.SopStage {
	return predicate.SopStage(sql.FieldIn(FieldName, vs...))
}

// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.SopStage {
	return predicate.SopStage(sql.FieldNotIn(FieldName, vs...))
}

// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldGT(FieldName, v))
}

// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldGTE(FieldName, v))
}

// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldLT(FieldName, v))
}

// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldLTE(FieldName, v))
}

// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldContains(FieldName, v))
}

// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldHasPrefix(FieldName, v))
}

// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldHasSuffix(FieldName, v))
}

// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldEqualFold(FieldName, v))
}

// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.SopStage {
	return predicate.SopStage(sql.FieldContainsFold(FieldName, v))
}

// ConditionTypeEQ applies the EQ predicate on the "condition_type" field.
func ConditionTypeEQ(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldConditionType, v))
}

// ConditionTypeNEQ applies the NEQ predicate on the "condition_type" field.
func ConditionTypeNEQ(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldNEQ(FieldConditionType, v))
}

// ConditionTypeIn applies the In predicate on the "condition_type" field.
func ConditionTypeIn(vs ...int) predicate.SopStage {
	return predicate.SopStage(sql.FieldIn(FieldConditionType, vs...))
}

// ConditionTypeNotIn applies the NotIn predicate on the "condition_type" field.
func ConditionTypeNotIn(vs ...int) predicate.SopStage {
	return predicate.SopStage(sql.FieldNotIn(FieldConditionType, vs...))
}

// ConditionTypeGT applies the GT predicate on the "condition_type" field.
func ConditionTypeGT(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldGT(FieldConditionType, v))
}

// ConditionTypeGTE applies the GTE predicate on the "condition_type" field.
func ConditionTypeGTE(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldGTE(FieldConditionType, v))
}

// ConditionTypeLT applies the LT predicate on the "condition_type" field.
func ConditionTypeLT(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldLT(FieldConditionType, v))
}

// ConditionTypeLTE applies the LTE predicate on the "condition_type" field.
func ConditionTypeLTE(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldLTE(FieldConditionType, v))
}

// ConditionOperatorEQ applies the EQ predicate on the "condition_operator" field.
func ConditionOperatorEQ(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldConditionOperator, v))
}

// ConditionOperatorNEQ applies the NEQ predicate on the "condition_operator" field.
func ConditionOperatorNEQ(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldNEQ(FieldConditionOperator, v))
}

// ConditionOperatorIn applies the In predicate on the "condition_operator" field.
func ConditionOperatorIn(vs ...int) predicate.SopStage {
	return predicate.SopStage(sql.FieldIn(FieldConditionOperator, vs...))
}

// ConditionOperatorNotIn applies the NotIn predicate on the "condition_operator" field.
func ConditionOperatorNotIn(vs ...int) predicate.SopStage {
	return predicate.SopStage(sql.FieldNotIn(FieldConditionOperator, vs...))
}

// ConditionOperatorGT applies the GT predicate on the "condition_operator" field.
func ConditionOperatorGT(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldGT(FieldConditionOperator, v))
}

// ConditionOperatorGTE applies the GTE predicate on the "condition_operator" field.
func ConditionOperatorGTE(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldGTE(FieldConditionOperator, v))
}

// ConditionOperatorLT applies the LT predicate on the "condition_operator" field.
func ConditionOperatorLT(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldLT(FieldConditionOperator, v))
}

// ConditionOperatorLTE applies the LTE predicate on the "condition_operator" field.
func ConditionOperatorLTE(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldLTE(FieldConditionOperator, v))
}

// ActionMessageIsNil applies the IsNil predicate on the "action_message" field.
func ActionMessageIsNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldIsNull(FieldActionMessage))
}

// ActionMessageNotNil applies the NotNil predicate on the "action_message" field.
func ActionMessageNotNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldNotNull(FieldActionMessage))
}

// ActionLabelAddIsNil applies the IsNil predicate on the "action_label_add" field.
func ActionLabelAddIsNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldIsNull(FieldActionLabelAdd))
}

// ActionLabelAddNotNil applies the NotNil predicate on the "action_label_add" field.
func ActionLabelAddNotNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldNotNull(FieldActionLabelAdd))
}

// ActionLabelDelIsNil applies the IsNil predicate on the "action_label_del" field.
func ActionLabelDelIsNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldIsNull(FieldActionLabelDel))
}

// ActionLabelDelNotNil applies the NotNil predicate on the "action_label_del" field.
func ActionLabelDelNotNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldNotNull(FieldActionLabelDel))
}

// ActionForwardIsNil applies the IsNil predicate on the "action_forward" field.
func ActionForwardIsNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldIsNull(FieldActionForward))
}

// ActionForwardNotNil applies the NotNil predicate on the "action_forward" field.
func ActionForwardNotNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldNotNull(FieldActionForward))
}

// IndexSortEQ applies the EQ predicate on the "index_sort" field.
func IndexSortEQ(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldEQ(FieldIndexSort, v))
}

// IndexSortNEQ applies the NEQ predicate on the "index_sort" field.
func IndexSortNEQ(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldNEQ(FieldIndexSort, v))
}

// IndexSortIn applies the In predicate on the "index_sort" field.
func IndexSortIn(vs ...int) predicate.SopStage {
	return predicate.SopStage(sql.FieldIn(FieldIndexSort, vs...))
}

// IndexSortNotIn applies the NotIn predicate on the "index_sort" field.
func IndexSortNotIn(vs ...int) predicate.SopStage {
	return predicate.SopStage(sql.FieldNotIn(FieldIndexSort, vs...))
}

// IndexSortGT applies the GT predicate on the "index_sort" field.
func IndexSortGT(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldGT(FieldIndexSort, v))
}

// IndexSortGTE applies the GTE predicate on the "index_sort" field.
func IndexSortGTE(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldGTE(FieldIndexSort, v))
}

// IndexSortLT applies the LT predicate on the "index_sort" field.
func IndexSortLT(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldLT(FieldIndexSort, v))
}

// IndexSortLTE applies the LTE predicate on the "index_sort" field.
func IndexSortLTE(v int) predicate.SopStage {
	return predicate.SopStage(sql.FieldLTE(FieldIndexSort, v))
}

// IndexSortIsNil applies the IsNil predicate on the "index_sort" field.
func IndexSortIsNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldIsNull(FieldIndexSort))
}

// IndexSortNotNil applies the NotNil predicate on the "index_sort" field.
func IndexSortNotNil() predicate.SopStage {
	return predicate.SopStage(sql.FieldNotNull(FieldIndexSort))
}

// HasSopTask applies the HasEdge predicate on the "sop_task" edge.
func HasSopTask() predicate.SopStage {
	return predicate.SopStage(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, true, SopTaskTable, SopTaskColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasSopTaskWith applies the HasEdge predicate on the "sop_task" edge with a given conditions (other predicates).
func HasSopTaskWith(preds ...predicate.SopTask) predicate.SopStage {
	return predicate.SopStage(func(s *sql.Selector) {
		step := newSopTaskStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// HasStageNodes applies the HasEdge predicate on the "stage_nodes" edge.
func HasStageNodes() predicate.SopStage {
	return predicate.SopStage(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, StageNodesTable, StageNodesColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasStageNodesWith applies the HasEdge predicate on the "stage_nodes" edge with a given conditions (other predicates).
func HasStageNodesWith(preds ...predicate.SopNode) predicate.SopStage {
	return predicate.SopStage(func(s *sql.Selector) {
		step := newStageNodesStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// HasStageMessages applies the HasEdge predicate on the "stage_messages" edge.
func HasStageMessages() predicate.SopStage {
	return predicate.SopStage(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, StageMessagesTable, StageMessagesColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasStageMessagesWith applies the HasEdge predicate on the "stage_messages" edge with a given conditions (other predicates).
func HasStageMessagesWith(preds ...predicate.MessageRecords) predicate.SopStage {
	return predicate.SopStage(func(s *sql.Selector) {
		step := newStageMessagesStep()
		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.SopStage) predicate.SopStage {
	return predicate.SopStage(sql.AndPredicates(predicates...))
}

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

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