Files

214 lines
7.9 KiB
Go

// Code generated by ent, DO NOT EDIT.
package agentskillgroupbinding
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/chaitin/MonkeyCode/backend/db/predicate"
"github.com/google/uuid"
)
// ID filters vertices based on their ID field.
func ID(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldLTE(FieldID, id))
}
// SkillID applies equality check predicate on the "skill_id" field. It's identical to SkillIDEQ.
func SkillID(v uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldSkillID, v))
}
// GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupID(v uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldGroupID, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldCreatedAt, v))
}
// SkillIDEQ applies the EQ predicate on the "skill_id" field.
func SkillIDEQ(v uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldSkillID, v))
}
// SkillIDNEQ applies the NEQ predicate on the "skill_id" field.
func SkillIDNEQ(v uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNEQ(FieldSkillID, v))
}
// SkillIDIn applies the In predicate on the "skill_id" field.
func SkillIDIn(vs ...uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldIn(FieldSkillID, vs...))
}
// SkillIDNotIn applies the NotIn predicate on the "skill_id" field.
func SkillIDNotIn(vs ...uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNotIn(FieldSkillID, vs...))
}
// GroupIDEQ applies the EQ predicate on the "group_id" field.
func GroupIDEQ(v uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldGroupID, v))
}
// GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNEQ(v uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNEQ(FieldGroupID, v))
}
// GroupIDIn applies the In predicate on the "group_id" field.
func GroupIDIn(vs ...uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldIn(FieldGroupID, vs...))
}
// GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func GroupIDNotIn(vs ...uuid.UUID) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNotIn(FieldGroupID, vs...))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.FieldLTE(FieldCreatedAt, v))
}
// HasSkill applies the HasEdge predicate on the "skill" edge.
func HasSkill() predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, false, SkillTable, SkillColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasSkillWith applies the HasEdge predicate on the "skill" edge with a given conditions (other predicates).
func HasSkillWith(preds ...predicate.AgentSkill) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(func(s *sql.Selector) {
step := newSkillStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasGroup applies the HasEdge predicate on the "group" edge.
func HasGroup() predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, false, GroupTable, GroupColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasGroupWith(preds ...predicate.TeamGroup) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(func(s *sql.Selector) {
step := newGroupStep()
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.AgentSkillGroupBinding) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.AgentSkillGroupBinding) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.AgentSkillGroupBinding) predicate.AgentSkillGroupBinding {
return predicate.AgentSkillGroupBinding(sql.NotPredicates(p))
}