mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-22 19:39:31 +08:00
879 lines
33 KiB
Go
879 lines
33 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package projectissue
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
"github.com/chaitin/MonkeyCode/backend/consts"
|
|
"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.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(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.ProjectIssue {
|
|
return predicate.ProjectIssue(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.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
|
|
func ProjectID(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldProjectID, v))
|
|
}
|
|
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
|
func Status(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldStatus, vc))
|
|
}
|
|
|
|
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
|
|
func Title(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldTitle, v))
|
|
}
|
|
|
|
// RequirementDocument applies equality check predicate on the "requirement_document" field. It's identical to RequirementDocumentEQ.
|
|
func RequirementDocument(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// DesignDocument applies equality check predicate on the "design_document" field. It's identical to DesignDocumentEQ.
|
|
func DesignDocument(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldDesignDocument, v))
|
|
}
|
|
|
|
// Summary applies equality check predicate on the "summary" field. It's identical to SummaryEQ.
|
|
func Summary(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldSummary, v))
|
|
}
|
|
|
|
// AssigneeID applies equality check predicate on the "assignee_id" field. It's identical to AssigneeIDEQ.
|
|
func AssigneeID(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldAssigneeID, v))
|
|
}
|
|
|
|
// Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
|
|
func Priority(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldPriority, vc))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(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.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// ProjectIDEQ applies the EQ predicate on the "project_id" field.
|
|
func ProjectIDEQ(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldProjectID, v))
|
|
}
|
|
|
|
// ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
|
|
func ProjectIDNEQ(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldProjectID, v))
|
|
}
|
|
|
|
// ProjectIDIn applies the In predicate on the "project_id" field.
|
|
func ProjectIDIn(vs ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldProjectID, vs...))
|
|
}
|
|
|
|
// ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
|
|
func ProjectIDNotIn(vs ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldProjectID, vs...))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
v := make([]any, len(vs))
|
|
for i := range v {
|
|
v[i] = string(vs[i])
|
|
}
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldStatus, v...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
v := make([]any, len(vs))
|
|
for i := range v {
|
|
v[i] = string(vs[i])
|
|
}
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldStatus, v...))
|
|
}
|
|
|
|
// StatusGT applies the GT predicate on the "status" field.
|
|
func StatusGT(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
|
func StatusGTE(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusLT applies the LT predicate on the "status" field.
|
|
func StatusLT(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
|
func StatusLTE(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusContains applies the Contains predicate on the "status" field.
|
|
func StatusContains(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldContains(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
|
func StatusHasPrefix(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldHasPrefix(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
|
func StatusHasSuffix(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldHasSuffix(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
|
func StatusEqualFold(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldEqualFold(FieldStatus, vc))
|
|
}
|
|
|
|
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
|
func StatusContainsFold(v consts.ProjectIssueStatus) predicate.ProjectIssue {
|
|
vc := string(v)
|
|
return predicate.ProjectIssue(sql.FieldContainsFold(FieldStatus, vc))
|
|
}
|
|
|
|
// TitleEQ applies the EQ predicate on the "title" field.
|
|
func TitleEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldTitle, v))
|
|
}
|
|
|
|
// TitleNEQ applies the NEQ predicate on the "title" field.
|
|
func TitleNEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldTitle, v))
|
|
}
|
|
|
|
// TitleIn applies the In predicate on the "title" field.
|
|
func TitleIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldTitle, vs...))
|
|
}
|
|
|
|
// TitleNotIn applies the NotIn predicate on the "title" field.
|
|
func TitleNotIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldTitle, vs...))
|
|
}
|
|
|
|
// TitleGT applies the GT predicate on the "title" field.
|
|
func TitleGT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldTitle, v))
|
|
}
|
|
|
|
// TitleGTE applies the GTE predicate on the "title" field.
|
|
func TitleGTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldTitle, v))
|
|
}
|
|
|
|
// TitleLT applies the LT predicate on the "title" field.
|
|
func TitleLT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldTitle, v))
|
|
}
|
|
|
|
// TitleLTE applies the LTE predicate on the "title" field.
|
|
func TitleLTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldTitle, v))
|
|
}
|
|
|
|
// TitleContains applies the Contains predicate on the "title" field.
|
|
func TitleContains(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContains(FieldTitle, v))
|
|
}
|
|
|
|
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
|
|
func TitleHasPrefix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasPrefix(FieldTitle, v))
|
|
}
|
|
|
|
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
|
|
func TitleHasSuffix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasSuffix(FieldTitle, v))
|
|
}
|
|
|
|
// TitleEqualFold applies the EqualFold predicate on the "title" field.
|
|
func TitleEqualFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEqualFold(FieldTitle, v))
|
|
}
|
|
|
|
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
|
|
func TitleContainsFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContainsFold(FieldTitle, v))
|
|
}
|
|
|
|
// RequirementDocumentEQ applies the EQ predicate on the "requirement_document" field.
|
|
func RequirementDocumentEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentNEQ applies the NEQ predicate on the "requirement_document" field.
|
|
func RequirementDocumentNEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentIn applies the In predicate on the "requirement_document" field.
|
|
func RequirementDocumentIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldRequirementDocument, vs...))
|
|
}
|
|
|
|
// RequirementDocumentNotIn applies the NotIn predicate on the "requirement_document" field.
|
|
func RequirementDocumentNotIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldRequirementDocument, vs...))
|
|
}
|
|
|
|
// RequirementDocumentGT applies the GT predicate on the "requirement_document" field.
|
|
func RequirementDocumentGT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentGTE applies the GTE predicate on the "requirement_document" field.
|
|
func RequirementDocumentGTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentLT applies the LT predicate on the "requirement_document" field.
|
|
func RequirementDocumentLT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentLTE applies the LTE predicate on the "requirement_document" field.
|
|
func RequirementDocumentLTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentContains applies the Contains predicate on the "requirement_document" field.
|
|
func RequirementDocumentContains(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContains(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentHasPrefix applies the HasPrefix predicate on the "requirement_document" field.
|
|
func RequirementDocumentHasPrefix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasPrefix(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentHasSuffix applies the HasSuffix predicate on the "requirement_document" field.
|
|
func RequirementDocumentHasSuffix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasSuffix(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentIsNil applies the IsNil predicate on the "requirement_document" field.
|
|
func RequirementDocumentIsNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIsNull(FieldRequirementDocument))
|
|
}
|
|
|
|
// RequirementDocumentNotNil applies the NotNil predicate on the "requirement_document" field.
|
|
func RequirementDocumentNotNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotNull(FieldRequirementDocument))
|
|
}
|
|
|
|
// RequirementDocumentEqualFold applies the EqualFold predicate on the "requirement_document" field.
|
|
func RequirementDocumentEqualFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEqualFold(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// RequirementDocumentContainsFold applies the ContainsFold predicate on the "requirement_document" field.
|
|
func RequirementDocumentContainsFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContainsFold(FieldRequirementDocument, v))
|
|
}
|
|
|
|
// DesignDocumentEQ applies the EQ predicate on the "design_document" field.
|
|
func DesignDocumentEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentNEQ applies the NEQ predicate on the "design_document" field.
|
|
func DesignDocumentNEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentIn applies the In predicate on the "design_document" field.
|
|
func DesignDocumentIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldDesignDocument, vs...))
|
|
}
|
|
|
|
// DesignDocumentNotIn applies the NotIn predicate on the "design_document" field.
|
|
func DesignDocumentNotIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldDesignDocument, vs...))
|
|
}
|
|
|
|
// DesignDocumentGT applies the GT predicate on the "design_document" field.
|
|
func DesignDocumentGT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentGTE applies the GTE predicate on the "design_document" field.
|
|
func DesignDocumentGTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentLT applies the LT predicate on the "design_document" field.
|
|
func DesignDocumentLT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentLTE applies the LTE predicate on the "design_document" field.
|
|
func DesignDocumentLTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentContains applies the Contains predicate on the "design_document" field.
|
|
func DesignDocumentContains(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContains(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentHasPrefix applies the HasPrefix predicate on the "design_document" field.
|
|
func DesignDocumentHasPrefix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasPrefix(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentHasSuffix applies the HasSuffix predicate on the "design_document" field.
|
|
func DesignDocumentHasSuffix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasSuffix(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentIsNil applies the IsNil predicate on the "design_document" field.
|
|
func DesignDocumentIsNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIsNull(FieldDesignDocument))
|
|
}
|
|
|
|
// DesignDocumentNotNil applies the NotNil predicate on the "design_document" field.
|
|
func DesignDocumentNotNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotNull(FieldDesignDocument))
|
|
}
|
|
|
|
// DesignDocumentEqualFold applies the EqualFold predicate on the "design_document" field.
|
|
func DesignDocumentEqualFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEqualFold(FieldDesignDocument, v))
|
|
}
|
|
|
|
// DesignDocumentContainsFold applies the ContainsFold predicate on the "design_document" field.
|
|
func DesignDocumentContainsFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContainsFold(FieldDesignDocument, v))
|
|
}
|
|
|
|
// SummaryEQ applies the EQ predicate on the "summary" field.
|
|
func SummaryEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryNEQ applies the NEQ predicate on the "summary" field.
|
|
func SummaryNEQ(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryIn applies the In predicate on the "summary" field.
|
|
func SummaryIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldSummary, vs...))
|
|
}
|
|
|
|
// SummaryNotIn applies the NotIn predicate on the "summary" field.
|
|
func SummaryNotIn(vs ...string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldSummary, vs...))
|
|
}
|
|
|
|
// SummaryGT applies the GT predicate on the "summary" field.
|
|
func SummaryGT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryGTE applies the GTE predicate on the "summary" field.
|
|
func SummaryGTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryLT applies the LT predicate on the "summary" field.
|
|
func SummaryLT(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryLTE applies the LTE predicate on the "summary" field.
|
|
func SummaryLTE(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryContains applies the Contains predicate on the "summary" field.
|
|
func SummaryContains(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContains(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryHasPrefix applies the HasPrefix predicate on the "summary" field.
|
|
func SummaryHasPrefix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasPrefix(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryHasSuffix applies the HasSuffix predicate on the "summary" field.
|
|
func SummaryHasSuffix(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldHasSuffix(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryIsNil applies the IsNil predicate on the "summary" field.
|
|
func SummaryIsNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIsNull(FieldSummary))
|
|
}
|
|
|
|
// SummaryNotNil applies the NotNil predicate on the "summary" field.
|
|
func SummaryNotNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotNull(FieldSummary))
|
|
}
|
|
|
|
// SummaryEqualFold applies the EqualFold predicate on the "summary" field.
|
|
func SummaryEqualFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEqualFold(FieldSummary, v))
|
|
}
|
|
|
|
// SummaryContainsFold applies the ContainsFold predicate on the "summary" field.
|
|
func SummaryContainsFold(v string) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldContainsFold(FieldSummary, v))
|
|
}
|
|
|
|
// AssigneeIDEQ applies the EQ predicate on the "assignee_id" field.
|
|
func AssigneeIDEQ(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldAssigneeID, v))
|
|
}
|
|
|
|
// AssigneeIDNEQ applies the NEQ predicate on the "assignee_id" field.
|
|
func AssigneeIDNEQ(v uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldAssigneeID, v))
|
|
}
|
|
|
|
// AssigneeIDIn applies the In predicate on the "assignee_id" field.
|
|
func AssigneeIDIn(vs ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldAssigneeID, vs...))
|
|
}
|
|
|
|
// AssigneeIDNotIn applies the NotIn predicate on the "assignee_id" field.
|
|
func AssigneeIDNotIn(vs ...uuid.UUID) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldAssigneeID, vs...))
|
|
}
|
|
|
|
// AssigneeIDIsNil applies the IsNil predicate on the "assignee_id" field.
|
|
func AssigneeIDIsNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIsNull(FieldAssigneeID))
|
|
}
|
|
|
|
// AssigneeIDNotNil applies the NotNil predicate on the "assignee_id" field.
|
|
func AssigneeIDNotNil() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotNull(FieldAssigneeID))
|
|
}
|
|
|
|
// PriorityEQ applies the EQ predicate on the "priority" field.
|
|
func PriorityEQ(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldPriority, vc))
|
|
}
|
|
|
|
// PriorityNEQ applies the NEQ predicate on the "priority" field.
|
|
func PriorityNEQ(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldPriority, vc))
|
|
}
|
|
|
|
// PriorityIn applies the In predicate on the "priority" field.
|
|
func PriorityIn(vs ...consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
v := make([]any, len(vs))
|
|
for i := range v {
|
|
v[i] = int(vs[i])
|
|
}
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldPriority, v...))
|
|
}
|
|
|
|
// PriorityNotIn applies the NotIn predicate on the "priority" field.
|
|
func PriorityNotIn(vs ...consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
v := make([]any, len(vs))
|
|
for i := range v {
|
|
v[i] = int(vs[i])
|
|
}
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldPriority, v...))
|
|
}
|
|
|
|
// PriorityGT applies the GT predicate on the "priority" field.
|
|
func PriorityGT(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldPriority, vc))
|
|
}
|
|
|
|
// PriorityGTE applies the GTE predicate on the "priority" field.
|
|
func PriorityGTE(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldPriority, vc))
|
|
}
|
|
|
|
// PriorityLT applies the LT predicate on the "priority" field.
|
|
func PriorityLT(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldPriority, vc))
|
|
}
|
|
|
|
// PriorityLTE applies the LTE predicate on the "priority" field.
|
|
func PriorityLTE(v consts.ProjectIssuePriority) predicate.ProjectIssue {
|
|
vc := int(v)
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldPriority, vc))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// HasUser applies the HasEdge predicate on the "user" edge.
|
|
func HasUser() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(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.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := newUserStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasAssignee applies the HasEdge predicate on the "assignee" edge.
|
|
func HasAssignee() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, AssigneeTable, AssigneeColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasAssigneeWith applies the HasEdge predicate on the "assignee" edge with a given conditions (other predicates).
|
|
func HasAssigneeWith(preds ...predicate.User) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := newAssigneeStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasProject applies the HasEdge predicate on the "project" edge.
|
|
func HasProject() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, ProjectTable, ProjectColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
|
|
func HasProjectWith(preds ...predicate.Project) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := newProjectStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasComments applies the HasEdge predicate on the "comments" edge.
|
|
func HasComments() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, CommentsTable, CommentsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
|
|
func HasCommentsWith(preds ...predicate.ProjectIssueComment) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := newCommentsStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasProjectTasks applies the HasEdge predicate on the "project_tasks" edge.
|
|
func HasProjectTasks() predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, ProjectTasksTable, ProjectTasksColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasProjectTasksWith applies the HasEdge predicate on the "project_tasks" edge with a given conditions (other predicates).
|
|
func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(func(s *sql.Selector) {
|
|
step := newProjectTasksStep()
|
|
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.ProjectIssue) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.ProjectIssue) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.ProjectIssue) predicate.ProjectIssue {
|
|
return predicate.ProjectIssue(sql.NotPredicates(p))
|
|
}
|