// Code generated by ent, DO NOT EDIT. package gitbot 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.GitBot { return predicate.GitBot(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id uuid.UUID) predicate.GitBot { return predicate.GitBot(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.GitBot { return predicate.GitBot(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.GitBot { return predicate.GitBot(sql.FieldEQ(FieldUserID, v)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldName, v)) } // HostID applies equality check predicate on the "host_id" field. It's identical to HostIDEQ. func HostID(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldHostID, v)) } // Token applies equality check predicate on the "token" field. It's identical to TokenEQ. func Token(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldToken, v)) } // SecretToken applies equality check predicate on the "secret_token" field. It's identical to SecretTokenEQ. func SecretToken(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldSecretToken, v)) } // Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ. func Platform(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldEQ(FieldPlatform, vc)) } // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldCreatedAt, v)) } // DeletedAtEQ applies the EQ predicate on the "deleted_at" field. func DeletedAtEQ(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldDeletedAt, v)) } // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. func DeletedAtNEQ(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldDeletedAt, v)) } // DeletedAtIn applies the In predicate on the "deleted_at" field. func DeletedAtIn(vs ...time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldDeletedAt, vs...)) } // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. func DeletedAtNotIn(vs ...time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldDeletedAt, vs...)) } // DeletedAtGT applies the GT predicate on the "deleted_at" field. func DeletedAtGT(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldDeletedAt, v)) } // DeletedAtGTE applies the GTE predicate on the "deleted_at" field. func DeletedAtGTE(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldDeletedAt, v)) } // DeletedAtLT applies the LT predicate on the "deleted_at" field. func DeletedAtLT(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldDeletedAt, v)) } // DeletedAtLTE applies the LTE predicate on the "deleted_at" field. func DeletedAtLTE(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldDeletedAt, v)) } // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. func DeletedAtIsNil() predicate.GitBot { return predicate.GitBot(sql.FieldIsNull(FieldDeletedAt)) } // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. func DeletedAtNotNil() predicate.GitBot { return predicate.GitBot(sql.FieldNotNull(FieldDeletedAt)) } // UserIDEQ applies the EQ predicate on the "user_id" field. func UserIDEQ(v uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldUserID, v)) } // UserIDNEQ applies the NEQ predicate on the "user_id" field. func UserIDNEQ(v uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldUserID, v)) } // UserIDIn applies the In predicate on the "user_id" field. func UserIDIn(vs ...uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldUserID, vs...)) } // UserIDNotIn applies the NotIn predicate on the "user_id" field. func UserIDNotIn(vs ...uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldUserID, vs...)) } // UserIDGT applies the GT predicate on the "user_id" field. func UserIDGT(v uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldUserID, v)) } // UserIDGTE applies the GTE predicate on the "user_id" field. func UserIDGTE(v uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldUserID, v)) } // UserIDLT applies the LT predicate on the "user_id" field. func UserIDLT(v uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldUserID, v)) } // UserIDLTE applies the LTE predicate on the "user_id" field. func UserIDLTE(v uuid.UUID) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldUserID, v)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasSuffix(FieldName, v)) } // NameIsNil applies the IsNil predicate on the "name" field. func NameIsNil() predicate.GitBot { return predicate.GitBot(sql.FieldIsNull(FieldName)) } // NameNotNil applies the NotNil predicate on the "name" field. func NameNotNil() predicate.GitBot { return predicate.GitBot(sql.FieldNotNull(FieldName)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContainsFold(FieldName, v)) } // HostIDEQ applies the EQ predicate on the "host_id" field. func HostIDEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldHostID, v)) } // HostIDNEQ applies the NEQ predicate on the "host_id" field. func HostIDNEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldHostID, v)) } // HostIDIn applies the In predicate on the "host_id" field. func HostIDIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldHostID, vs...)) } // HostIDNotIn applies the NotIn predicate on the "host_id" field. func HostIDNotIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldHostID, vs...)) } // HostIDGT applies the GT predicate on the "host_id" field. func HostIDGT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldHostID, v)) } // HostIDGTE applies the GTE predicate on the "host_id" field. func HostIDGTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldHostID, v)) } // HostIDLT applies the LT predicate on the "host_id" field. func HostIDLT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldHostID, v)) } // HostIDLTE applies the LTE predicate on the "host_id" field. func HostIDLTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldHostID, v)) } // HostIDContains applies the Contains predicate on the "host_id" field. func HostIDContains(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContains(FieldHostID, v)) } // HostIDHasPrefix applies the HasPrefix predicate on the "host_id" field. func HostIDHasPrefix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasPrefix(FieldHostID, v)) } // HostIDHasSuffix applies the HasSuffix predicate on the "host_id" field. func HostIDHasSuffix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasSuffix(FieldHostID, v)) } // HostIDEqualFold applies the EqualFold predicate on the "host_id" field. func HostIDEqualFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEqualFold(FieldHostID, v)) } // HostIDContainsFold applies the ContainsFold predicate on the "host_id" field. func HostIDContainsFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContainsFold(FieldHostID, v)) } // TokenEQ applies the EQ predicate on the "token" field. func TokenEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldToken, v)) } // TokenNEQ applies the NEQ predicate on the "token" field. func TokenNEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldToken, v)) } // TokenIn applies the In predicate on the "token" field. func TokenIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldToken, vs...)) } // TokenNotIn applies the NotIn predicate on the "token" field. func TokenNotIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldToken, vs...)) } // TokenGT applies the GT predicate on the "token" field. func TokenGT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldToken, v)) } // TokenGTE applies the GTE predicate on the "token" field. func TokenGTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldToken, v)) } // TokenLT applies the LT predicate on the "token" field. func TokenLT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldToken, v)) } // TokenLTE applies the LTE predicate on the "token" field. func TokenLTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldToken, v)) } // TokenContains applies the Contains predicate on the "token" field. func TokenContains(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContains(FieldToken, v)) } // TokenHasPrefix applies the HasPrefix predicate on the "token" field. func TokenHasPrefix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasPrefix(FieldToken, v)) } // TokenHasSuffix applies the HasSuffix predicate on the "token" field. func TokenHasSuffix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasSuffix(FieldToken, v)) } // TokenIsNil applies the IsNil predicate on the "token" field. func TokenIsNil() predicate.GitBot { return predicate.GitBot(sql.FieldIsNull(FieldToken)) } // TokenNotNil applies the NotNil predicate on the "token" field. func TokenNotNil() predicate.GitBot { return predicate.GitBot(sql.FieldNotNull(FieldToken)) } // TokenEqualFold applies the EqualFold predicate on the "token" field. func TokenEqualFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEqualFold(FieldToken, v)) } // TokenContainsFold applies the ContainsFold predicate on the "token" field. func TokenContainsFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContainsFold(FieldToken, v)) } // SecretTokenEQ applies the EQ predicate on the "secret_token" field. func SecretTokenEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldSecretToken, v)) } // SecretTokenNEQ applies the NEQ predicate on the "secret_token" field. func SecretTokenNEQ(v string) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldSecretToken, v)) } // SecretTokenIn applies the In predicate on the "secret_token" field. func SecretTokenIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldSecretToken, vs...)) } // SecretTokenNotIn applies the NotIn predicate on the "secret_token" field. func SecretTokenNotIn(vs ...string) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldSecretToken, vs...)) } // SecretTokenGT applies the GT predicate on the "secret_token" field. func SecretTokenGT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldSecretToken, v)) } // SecretTokenGTE applies the GTE predicate on the "secret_token" field. func SecretTokenGTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldSecretToken, v)) } // SecretTokenLT applies the LT predicate on the "secret_token" field. func SecretTokenLT(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldSecretToken, v)) } // SecretTokenLTE applies the LTE predicate on the "secret_token" field. func SecretTokenLTE(v string) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldSecretToken, v)) } // SecretTokenContains applies the Contains predicate on the "secret_token" field. func SecretTokenContains(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContains(FieldSecretToken, v)) } // SecretTokenHasPrefix applies the HasPrefix predicate on the "secret_token" field. func SecretTokenHasPrefix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasPrefix(FieldSecretToken, v)) } // SecretTokenHasSuffix applies the HasSuffix predicate on the "secret_token" field. func SecretTokenHasSuffix(v string) predicate.GitBot { return predicate.GitBot(sql.FieldHasSuffix(FieldSecretToken, v)) } // SecretTokenIsNil applies the IsNil predicate on the "secret_token" field. func SecretTokenIsNil() predicate.GitBot { return predicate.GitBot(sql.FieldIsNull(FieldSecretToken)) } // SecretTokenNotNil applies the NotNil predicate on the "secret_token" field. func SecretTokenNotNil() predicate.GitBot { return predicate.GitBot(sql.FieldNotNull(FieldSecretToken)) } // SecretTokenEqualFold applies the EqualFold predicate on the "secret_token" field. func SecretTokenEqualFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldEqualFold(FieldSecretToken, v)) } // SecretTokenContainsFold applies the ContainsFold predicate on the "secret_token" field. func SecretTokenContainsFold(v string) predicate.GitBot { return predicate.GitBot(sql.FieldContainsFold(FieldSecretToken, v)) } // PlatformEQ applies the EQ predicate on the "platform" field. func PlatformEQ(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldEQ(FieldPlatform, vc)) } // PlatformNEQ applies the NEQ predicate on the "platform" field. func PlatformNEQ(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldNEQ(FieldPlatform, vc)) } // PlatformIn applies the In predicate on the "platform" field. func PlatformIn(vs ...consts.GitPlatform) predicate.GitBot { v := make([]any, len(vs)) for i := range v { v[i] = string(vs[i]) } return predicate.GitBot(sql.FieldIn(FieldPlatform, v...)) } // PlatformNotIn applies the NotIn predicate on the "platform" field. func PlatformNotIn(vs ...consts.GitPlatform) predicate.GitBot { v := make([]any, len(vs)) for i := range v { v[i] = string(vs[i]) } return predicate.GitBot(sql.FieldNotIn(FieldPlatform, v...)) } // PlatformGT applies the GT predicate on the "platform" field. func PlatformGT(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldGT(FieldPlatform, vc)) } // PlatformGTE applies the GTE predicate on the "platform" field. func PlatformGTE(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldGTE(FieldPlatform, vc)) } // PlatformLT applies the LT predicate on the "platform" field. func PlatformLT(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldLT(FieldPlatform, vc)) } // PlatformLTE applies the LTE predicate on the "platform" field. func PlatformLTE(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldLTE(FieldPlatform, vc)) } // PlatformContains applies the Contains predicate on the "platform" field. func PlatformContains(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldContains(FieldPlatform, vc)) } // PlatformHasPrefix applies the HasPrefix predicate on the "platform" field. func PlatformHasPrefix(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldHasPrefix(FieldPlatform, vc)) } // PlatformHasSuffix applies the HasSuffix predicate on the "platform" field. func PlatformHasSuffix(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldHasSuffix(FieldPlatform, vc)) } // PlatformEqualFold applies the EqualFold predicate on the "platform" field. func PlatformEqualFold(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldEqualFold(FieldPlatform, vc)) } // PlatformContainsFold applies the ContainsFold predicate on the "platform" field. func PlatformContainsFold(v consts.GitPlatform) predicate.GitBot { vc := string(v) return predicate.GitBot(sql.FieldContainsFold(FieldPlatform, vc)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.GitBot { return predicate.GitBot(sql.FieldLTE(FieldCreatedAt, v)) } // HasGitBotTasks applies the HasEdge predicate on the "git_bot_tasks" edge. func HasGitBotTasks() predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, GitBotTasksTable, GitBotTasksColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasGitBotTasksWith applies the HasEdge predicate on the "git_bot_tasks" edge with a given conditions (other predicates). func HasGitBotTasksWith(preds ...predicate.GitBotTask) predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := newGitBotTasksStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasHost applies the HasEdge predicate on the "host" edge. func HasHost() predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, HostTable, HostColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasHostWith applies the HasEdge predicate on the "host" edge with a given conditions (other predicates). func HasHostWith(preds ...predicate.Host) predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := newHostStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasUsers applies the HasEdge predicate on the "users" edge. func HasUsers() predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2M, true, UsersTable, UsersPrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates). func HasUsersWith(preds ...predicate.User) predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := newUsersStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasProjects applies the HasEdge predicate on the "projects" edge. func HasProjects() predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2M, true, ProjectsTable, ProjectsPrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates). func HasProjectsWith(preds ...predicate.Project) predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := newProjectsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasGitBotUsers applies the HasEdge predicate on the "git_bot_users" edge. func HasGitBotUsers() predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, true, GitBotUsersTable, GitBotUsersColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasGitBotUsersWith applies the HasEdge predicate on the "git_bot_users" edge with a given conditions (other predicates). func HasGitBotUsersWith(preds ...predicate.GitBotUser) predicate.GitBot { return predicate.GitBot(func(s *sql.Selector) { step := newGitBotUsersStep() 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.GitBot { return predicate.GitBot(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.GitBot { return predicate.GitBot(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.GitBot) predicate.GitBot { return predicate.GitBot(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.GitBot) predicate.GitBot { return predicate.GitBot(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.GitBot) predicate.GitBot { return predicate.GitBot(sql.NotPredicates(p)) }