Files
yokowu 34320f9ed5 feat(phase6): 添加 gitbot/gittask 实体 schema 和 migration
- 新增 git_bots, git_bot_users, git_bot_tasks, project_git_bots 表
- 添加 user, host, project 到 gitbot 的关联边
- 使用 soft delete 和 created_at 游标
2026-03-19 18:14:53 +08:00

918 lines
31 KiB
Go

// Code generated by ent, DO NOT EDIT.
package project
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.Project {
return predicate.Project(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.Project {
return predicate.Project(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.Project {
return predicate.Project(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.Project {
return predicate.Project(sql.FieldEQ(FieldUserID, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldName, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldDescription, v))
}
// Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ.
func Platform(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldEQ(FieldPlatform, vc))
}
// RepoURL applies equality check predicate on the "repo_url" field. It's identical to RepoURLEQ.
func RepoURL(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldRepoURL, v))
}
// Branch applies equality check predicate on the "branch" field. It's identical to BranchEQ.
func Branch(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldBranch, v))
}
// GitIdentityID applies equality check predicate on the "git_identity_id" field. It's identical to GitIdentityIDEQ.
func GitIdentityID(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldGitIdentityID, v))
}
// ImageID applies equality check predicate on the "image_id" field. It's identical to ImageIDEQ.
func ImageID(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldImageID, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Project {
return predicate.Project(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.Project {
return predicate.Project(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldDeletedAt))
}
// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldUserID, v))
}
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldUserID, v))
}
// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldIn(FieldUserID, vs...))
}
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldUserID, vs...))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldName, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldDescription, v))
}
// PlatformEQ applies the EQ predicate on the "platform" field.
func PlatformEQ(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldEQ(FieldPlatform, vc))
}
// PlatformNEQ applies the NEQ predicate on the "platform" field.
func PlatformNEQ(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldNEQ(FieldPlatform, vc))
}
// PlatformIn applies the In predicate on the "platform" field.
func PlatformIn(vs ...consts.GitPlatform) predicate.Project {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.Project(sql.FieldIn(FieldPlatform, v...))
}
// PlatformNotIn applies the NotIn predicate on the "platform" field.
func PlatformNotIn(vs ...consts.GitPlatform) predicate.Project {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.Project(sql.FieldNotIn(FieldPlatform, v...))
}
// PlatformGT applies the GT predicate on the "platform" field.
func PlatformGT(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldGT(FieldPlatform, vc))
}
// PlatformGTE applies the GTE predicate on the "platform" field.
func PlatformGTE(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldGTE(FieldPlatform, vc))
}
// PlatformLT applies the LT predicate on the "platform" field.
func PlatformLT(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldLT(FieldPlatform, vc))
}
// PlatformLTE applies the LTE predicate on the "platform" field.
func PlatformLTE(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldLTE(FieldPlatform, vc))
}
// PlatformContains applies the Contains predicate on the "platform" field.
func PlatformContains(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldContains(FieldPlatform, vc))
}
// PlatformHasPrefix applies the HasPrefix predicate on the "platform" field.
func PlatformHasPrefix(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldHasPrefix(FieldPlatform, vc))
}
// PlatformHasSuffix applies the HasSuffix predicate on the "platform" field.
func PlatformHasSuffix(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldHasSuffix(FieldPlatform, vc))
}
// PlatformIsNil applies the IsNil predicate on the "platform" field.
func PlatformIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldPlatform))
}
// PlatformNotNil applies the NotNil predicate on the "platform" field.
func PlatformNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldPlatform))
}
// PlatformEqualFold applies the EqualFold predicate on the "platform" field.
func PlatformEqualFold(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldEqualFold(FieldPlatform, vc))
}
// PlatformContainsFold applies the ContainsFold predicate on the "platform" field.
func PlatformContainsFold(v consts.GitPlatform) predicate.Project {
vc := string(v)
return predicate.Project(sql.FieldContainsFold(FieldPlatform, vc))
}
// RepoURLEQ applies the EQ predicate on the "repo_url" field.
func RepoURLEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldRepoURL, v))
}
// RepoURLNEQ applies the NEQ predicate on the "repo_url" field.
func RepoURLNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldRepoURL, v))
}
// RepoURLIn applies the In predicate on the "repo_url" field.
func RepoURLIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldRepoURL, vs...))
}
// RepoURLNotIn applies the NotIn predicate on the "repo_url" field.
func RepoURLNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldRepoURL, vs...))
}
// RepoURLGT applies the GT predicate on the "repo_url" field.
func RepoURLGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldRepoURL, v))
}
// RepoURLGTE applies the GTE predicate on the "repo_url" field.
func RepoURLGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldRepoURL, v))
}
// RepoURLLT applies the LT predicate on the "repo_url" field.
func RepoURLLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldRepoURL, v))
}
// RepoURLLTE applies the LTE predicate on the "repo_url" field.
func RepoURLLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldRepoURL, v))
}
// RepoURLContains applies the Contains predicate on the "repo_url" field.
func RepoURLContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldRepoURL, v))
}
// RepoURLHasPrefix applies the HasPrefix predicate on the "repo_url" field.
func RepoURLHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldRepoURL, v))
}
// RepoURLHasSuffix applies the HasSuffix predicate on the "repo_url" field.
func RepoURLHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldRepoURL, v))
}
// RepoURLIsNil applies the IsNil predicate on the "repo_url" field.
func RepoURLIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldRepoURL))
}
// RepoURLNotNil applies the NotNil predicate on the "repo_url" field.
func RepoURLNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldRepoURL))
}
// RepoURLEqualFold applies the EqualFold predicate on the "repo_url" field.
func RepoURLEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldRepoURL, v))
}
// RepoURLContainsFold applies the ContainsFold predicate on the "repo_url" field.
func RepoURLContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldRepoURL, v))
}
// BranchEQ applies the EQ predicate on the "branch" field.
func BranchEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldBranch, v))
}
// BranchNEQ applies the NEQ predicate on the "branch" field.
func BranchNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldBranch, v))
}
// BranchIn applies the In predicate on the "branch" field.
func BranchIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldBranch, vs...))
}
// BranchNotIn applies the NotIn predicate on the "branch" field.
func BranchNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldBranch, vs...))
}
// BranchGT applies the GT predicate on the "branch" field.
func BranchGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldBranch, v))
}
// BranchGTE applies the GTE predicate on the "branch" field.
func BranchGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldBranch, v))
}
// BranchLT applies the LT predicate on the "branch" field.
func BranchLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldBranch, v))
}
// BranchLTE applies the LTE predicate on the "branch" field.
func BranchLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldBranch, v))
}
// BranchContains applies the Contains predicate on the "branch" field.
func BranchContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldBranch, v))
}
// BranchHasPrefix applies the HasPrefix predicate on the "branch" field.
func BranchHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldBranch, v))
}
// BranchHasSuffix applies the HasSuffix predicate on the "branch" field.
func BranchHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldBranch, v))
}
// BranchIsNil applies the IsNil predicate on the "branch" field.
func BranchIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldBranch))
}
// BranchNotNil applies the NotNil predicate on the "branch" field.
func BranchNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldBranch))
}
// BranchEqualFold applies the EqualFold predicate on the "branch" field.
func BranchEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldBranch, v))
}
// BranchContainsFold applies the ContainsFold predicate on the "branch" field.
func BranchContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldBranch, v))
}
// GitIdentityIDEQ applies the EQ predicate on the "git_identity_id" field.
func GitIdentityIDEQ(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldGitIdentityID, v))
}
// GitIdentityIDNEQ applies the NEQ predicate on the "git_identity_id" field.
func GitIdentityIDNEQ(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldGitIdentityID, v))
}
// GitIdentityIDIn applies the In predicate on the "git_identity_id" field.
func GitIdentityIDIn(vs ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldIn(FieldGitIdentityID, vs...))
}
// GitIdentityIDNotIn applies the NotIn predicate on the "git_identity_id" field.
func GitIdentityIDNotIn(vs ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldGitIdentityID, vs...))
}
// GitIdentityIDIsNil applies the IsNil predicate on the "git_identity_id" field.
func GitIdentityIDIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldGitIdentityID))
}
// GitIdentityIDNotNil applies the NotNil predicate on the "git_identity_id" field.
func GitIdentityIDNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldGitIdentityID))
}
// ImageIDEQ applies the EQ predicate on the "image_id" field.
func ImageIDEQ(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldImageID, v))
}
// ImageIDNEQ applies the NEQ predicate on the "image_id" field.
func ImageIDNEQ(v uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldImageID, v))
}
// ImageIDIn applies the In predicate on the "image_id" field.
func ImageIDIn(vs ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldIn(FieldImageID, vs...))
}
// ImageIDNotIn applies the NotIn predicate on the "image_id" field.
func ImageIDNotIn(vs ...uuid.UUID) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldImageID, vs...))
}
// ImageIDIsNil applies the IsNil predicate on the "image_id" field.
func ImageIDIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldImageID))
}
// ImageIDNotNil applies the NotNil predicate on the "image_id" field.
func ImageIDNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldImageID))
}
// EnvVariablesIsNil applies the IsNil predicate on the "env_variables" field.
func EnvVariablesIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldEnvVariables))
}
// EnvVariablesNotNil applies the NotNil predicate on the "env_variables" field.
func EnvVariablesNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldEnvVariables))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldUpdatedAt, v))
}
// HasUser applies the HasEdge predicate on the "user" edge.
func HasUser() predicate.Project {
return predicate.Project(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.Project {
return predicate.Project(func(s *sql.Selector) {
step := newUserStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasGitIdentity applies the HasEdge predicate on the "git_identity" edge.
func HasGitIdentity() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, GitIdentityTable, GitIdentityColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasGitIdentityWith applies the HasEdge predicate on the "git_identity" edge with a given conditions (other predicates).
func HasGitIdentityWith(preds ...predicate.GitIdentity) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newGitIdentityStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasImage applies the HasEdge predicate on the "image" edge.
func HasImage() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, ImageTable, ImageColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasImageWith applies the HasEdge predicate on the "image" edge with a given conditions (other predicates).
func HasImageWith(preds ...predicate.Image) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newImageStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasIssues applies the HasEdge predicate on the "issues" edge.
func HasIssues() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, IssuesTable, IssuesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasIssuesWith applies the HasEdge predicate on the "issues" edge with a given conditions (other predicates).
func HasIssuesWith(preds ...predicate.ProjectIssue) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newIssuesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCollaborators applies the HasEdge predicate on the "collaborators" edge.
func HasCollaborators() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, CollaboratorsTable, CollaboratorsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasCollaboratorsWith applies the HasEdge predicate on the "collaborators" edge with a given conditions (other predicates).
func HasCollaboratorsWith(preds ...predicate.ProjectCollaborator) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newCollaboratorsStep()
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.Project {
return predicate.Project(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.Project {
return predicate.Project(func(s *sql.Selector) {
step := newProjectTasksStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasGitBots applies the HasEdge predicate on the "git_bots" edge.
func HasGitBots() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, false, GitBotsTable, GitBotsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasGitBotsWith applies the HasEdge predicate on the "git_bots" edge with a given conditions (other predicates).
func HasGitBotsWith(preds ...predicate.GitBot) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newGitBotsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasProjectGitBots applies the HasEdge predicate on the "project_git_bots" edge.
func HasProjectGitBots() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, true, ProjectGitBotsTable, ProjectGitBotsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasProjectGitBotsWith applies the HasEdge predicate on the "project_git_bots" edge with a given conditions (other predicates).
func HasProjectGitBotsWith(preds ...predicate.ProjectGitBot) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newProjectGitBotsStep()
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.Project) predicate.Project {
return predicate.Project(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Project) predicate.Project {
return predicate.Project(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Project) predicate.Project {
return predicate.Project(sql.NotPredicates(p))
}