Files

465 lines
17 KiB
Go

// Code generated by ent, DO NOT EDIT.
package projectissuecomment
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.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLTE(FieldID, id))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldDeletedAt, v))
}
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldUserID, v))
}
// IssueID applies equality check predicate on the "issue_id" field. It's identical to IssueIDEQ.
func IssueID(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldIssueID, v))
}
// ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentID(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldParentID, v))
}
// Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func Comment(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldComment, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(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.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotNull(FieldDeletedAt))
}
// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldUserID, v))
}
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldUserID, v))
}
// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldUserID, vs...))
}
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldUserID, vs...))
}
// IssueIDEQ applies the EQ predicate on the "issue_id" field.
func IssueIDEQ(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldIssueID, v))
}
// IssueIDNEQ applies the NEQ predicate on the "issue_id" field.
func IssueIDNEQ(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldIssueID, v))
}
// IssueIDIn applies the In predicate on the "issue_id" field.
func IssueIDIn(vs ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldIssueID, vs...))
}
// IssueIDNotIn applies the NotIn predicate on the "issue_id" field.
func IssueIDNotIn(vs ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldIssueID, vs...))
}
// ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDEQ(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldParentID, v))
}
// ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNEQ(v uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldParentID, v))
}
// ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIn(vs ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldParentID, vs...))
}
// ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotIn(vs ...uuid.UUID) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldParentID, vs...))
}
// ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDIsNil() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIsNull(FieldParentID))
}
// ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func ParentIDNotNil() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotNull(FieldParentID))
}
// CommentEQ applies the EQ predicate on the "comment" field.
func CommentEQ(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldComment, v))
}
// CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNEQ(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldComment, v))
}
// CommentIn applies the In predicate on the "comment" field.
func CommentIn(vs ...string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldComment, vs...))
}
// CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotIn(vs ...string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldComment, vs...))
}
// CommentGT applies the GT predicate on the "comment" field.
func CommentGT(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGT(FieldComment, v))
}
// CommentGTE applies the GTE predicate on the "comment" field.
func CommentGTE(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGTE(FieldComment, v))
}
// CommentLT applies the LT predicate on the "comment" field.
func CommentLT(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLT(FieldComment, v))
}
// CommentLTE applies the LTE predicate on the "comment" field.
func CommentLTE(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLTE(FieldComment, v))
}
// CommentContains applies the Contains predicate on the "comment" field.
func CommentContains(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldContains(FieldComment, v))
}
// CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasPrefix(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldHasPrefix(FieldComment, v))
}
// CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentHasSuffix(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldHasSuffix(FieldComment, v))
}
// CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentEqualFold(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEqualFold(FieldComment, v))
}
// CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentContainsFold(v string) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldContainsFold(FieldComment, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.FieldLTE(FieldUpdatedAt, v))
}
// HasUser applies the HasEdge predicate on the "user" edge.
func HasUser() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasUserWith(preds ...predicate.User) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := newUserStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasIssue applies the HasEdge predicate on the "issue" edge.
func HasIssue() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, IssueTable, IssueColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasIssueWith applies the HasEdge predicate on the "issue" edge with a given conditions (other predicates).
func HasIssueWith(preds ...predicate.ProjectIssue) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := newIssueStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasParent applies the HasEdge predicate on the "parent" edge.
func HasParent() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, ParentTable, ParentColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasParentWith(preds ...predicate.ProjectIssueComment) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := newParentStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasReplies applies the HasEdge predicate on the "replies" edge.
func HasReplies() predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, RepliesTable, RepliesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasRepliesWith applies the HasEdge predicate on the "replies" edge with a given conditions (other predicates).
func HasRepliesWith(preds ...predicate.ProjectIssueComment) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(func(s *sql.Selector) {
step := newRepliesStep()
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.ProjectIssueComment) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.ProjectIssueComment) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.ProjectIssueComment) predicate.ProjectIssueComment {
return predicate.ProjectIssueComment(sql.NotPredicates(p))
}