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

1171 lines
37 KiB
Go

// Code generated by ent, DO NOT EDIT.
package user
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.User {
return predicate.User(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.User {
return predicate.User(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.User {
return predicate.User(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.User {
return predicate.User(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.User {
return predicate.User(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.User {
return predicate.User(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.User {
return predicate.User(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.User {
return predicate.User(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.User {
return predicate.User(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.User {
return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldName, v))
}
// Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func Email(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldEmail, v))
}
// AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURL(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldAvatarURL, v))
}
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func Password(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldPassword, v))
}
// Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func Role(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldEQ(FieldRole, vc))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldEQ(FieldStatus, vc))
}
// IsBlocked applies equality check predicate on the "is_blocked" field. It's identical to IsBlockedEQ.
func IsBlocked(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldIsBlocked, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.User {
return predicate.User(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.User {
return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldDeletedAt))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldName, v))
}
// EmailEQ applies the EQ predicate on the "email" field.
func EmailEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldEmail, v))
}
// EmailNEQ applies the NEQ predicate on the "email" field.
func EmailNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldEmail, v))
}
// EmailIn applies the In predicate on the "email" field.
func EmailIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldEmail, vs...))
}
// EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldEmail, vs...))
}
// EmailGT applies the GT predicate on the "email" field.
func EmailGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldEmail, v))
}
// EmailGTE applies the GTE predicate on the "email" field.
func EmailGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldEmail, v))
}
// EmailLT applies the LT predicate on the "email" field.
func EmailLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldEmail, v))
}
// EmailLTE applies the LTE predicate on the "email" field.
func EmailLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldEmail, v))
}
// EmailContains applies the Contains predicate on the "email" field.
func EmailContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldEmail, v))
}
// EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldEmail, v))
}
// EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldEmail, v))
}
// EmailIsNil applies the IsNil predicate on the "email" field.
func EmailIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldEmail))
}
// EmailNotNil applies the NotNil predicate on the "email" field.
func EmailNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldEmail))
}
// EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldEmail, v))
}
// EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldEmail, v))
}
// AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldAvatarURL, v))
}
// AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldAvatarURL, v))
}
// AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldAvatarURL, vs...))
}
// AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldAvatarURL, vs...))
}
// AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldAvatarURL, v))
}
// AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldAvatarURL, v))
}
// AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldAvatarURL, v))
}
// AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldAvatarURL, v))
}
// AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldAvatarURL, v))
}
// AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldAvatarURL, v))
}
// AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldAvatarURL, v))
}
// AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldAvatarURL))
}
// AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.
func AvatarURLNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldAvatarURL))
}
// AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldAvatarURL, v))
}
// AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldAvatarURL, v))
}
// PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldPassword, v))
}
// PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldPassword, v))
}
// PasswordIn applies the In predicate on the "password" field.
func PasswordIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldPassword, vs...))
}
// PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldPassword, vs...))
}
// PasswordGT applies the GT predicate on the "password" field.
func PasswordGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldPassword, v))
}
// PasswordGTE applies the GTE predicate on the "password" field.
func PasswordGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldPassword, v))
}
// PasswordLT applies the LT predicate on the "password" field.
func PasswordLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldPassword, v))
}
// PasswordLTE applies the LTE predicate on the "password" field.
func PasswordLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldPassword, v))
}
// PasswordContains applies the Contains predicate on the "password" field.
func PasswordContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldPassword, v))
}
// PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldPassword, v))
}
// PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldPassword, v))
}
// PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldPassword))
}
// PasswordNotNil applies the NotNil predicate on the "password" field.
func PasswordNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldPassword))
}
// PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldPassword, v))
}
// PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldPassword, v))
}
// RoleEQ applies the EQ predicate on the "role" field.
func RoleEQ(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldEQ(FieldRole, vc))
}
// RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNEQ(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldNEQ(FieldRole, vc))
}
// RoleIn applies the In predicate on the "role" field.
func RoleIn(vs ...consts.UserRole) predicate.User {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.User(sql.FieldIn(FieldRole, v...))
}
// RoleNotIn applies the NotIn predicate on the "role" field.
func RoleNotIn(vs ...consts.UserRole) predicate.User {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.User(sql.FieldNotIn(FieldRole, v...))
}
// RoleGT applies the GT predicate on the "role" field.
func RoleGT(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldGT(FieldRole, vc))
}
// RoleGTE applies the GTE predicate on the "role" field.
func RoleGTE(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldGTE(FieldRole, vc))
}
// RoleLT applies the LT predicate on the "role" field.
func RoleLT(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldLT(FieldRole, vc))
}
// RoleLTE applies the LTE predicate on the "role" field.
func RoleLTE(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldLTE(FieldRole, vc))
}
// RoleContains applies the Contains predicate on the "role" field.
func RoleContains(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldContains(FieldRole, vc))
}
// RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasPrefix(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldHasPrefix(FieldRole, vc))
}
// RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleHasSuffix(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldHasSuffix(FieldRole, vc))
}
// RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleEqualFold(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldEqualFold(FieldRole, vc))
}
// RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleContainsFold(v consts.UserRole) predicate.User {
vc := string(v)
return predicate.User(sql.FieldContainsFold(FieldRole, vc))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldEQ(FieldStatus, vc))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldNEQ(FieldStatus, vc))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...consts.UserStatus) predicate.User {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.User(sql.FieldIn(FieldStatus, v...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...consts.UserStatus) predicate.User {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.User(sql.FieldNotIn(FieldStatus, v...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldGT(FieldStatus, vc))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldGTE(FieldStatus, vc))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldLT(FieldStatus, vc))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldLTE(FieldStatus, vc))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldContains(FieldStatus, vc))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldHasPrefix(FieldStatus, vc))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldHasSuffix(FieldStatus, vc))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldEqualFold(FieldStatus, vc))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v consts.UserStatus) predicate.User {
vc := string(v)
return predicate.User(sql.FieldContainsFold(FieldStatus, vc))
}
// IsBlockedEQ applies the EQ predicate on the "is_blocked" field.
func IsBlockedEQ(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldIsBlocked, v))
}
// IsBlockedNEQ applies the NEQ predicate on the "is_blocked" field.
func IsBlockedNEQ(v bool) predicate.User {
return predicate.User(sql.FieldNEQ(FieldIsBlocked, v))
}
// DefaultConfigsIsNil applies the IsNil predicate on the "default_configs" field.
func DefaultConfigsIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldDefaultConfigs))
}
// DefaultConfigsNotNil applies the NotNil predicate on the "default_configs" field.
func DefaultConfigsNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldDefaultConfigs))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldUpdatedAt, v))
}
// HasIdentities applies the HasEdge predicate on the "identities" edge.
func HasIdentities() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, IdentitiesTable, IdentitiesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasIdentitiesWith applies the HasEdge predicate on the "identities" edge with a given conditions (other predicates).
func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newIdentitiesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasAudits applies the HasEdge predicate on the "audits" edge.
func HasAudits() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, AuditsTable, AuditsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasAuditsWith applies the HasEdge predicate on the "audits" edge with a given conditions (other predicates).
func HasAuditsWith(preds ...predicate.Audit) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newAuditsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTeams applies the HasEdge predicate on the "teams" edge.
func HasTeams() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, false, TeamsTable, TeamsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func HasTeamsWith(preds ...predicate.Team) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newTeamsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasGroups applies the HasEdge predicate on the "groups" edge.
func HasGroups() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, false, GroupsTable, GroupsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasGroupsWith(preds ...predicate.TeamGroup) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newGroupsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasModels applies the HasEdge predicate on the "models" edge.
func HasModels() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ModelsTable, ModelsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).
func HasModelsWith(preds ...predicate.Model) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newModelsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasImages applies the HasEdge predicate on the "images" edge.
func HasImages() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ImagesTable, ImagesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasImagesWith applies the HasEdge predicate on the "images" edge with a given conditions (other predicates).
func HasImagesWith(preds ...predicate.Image) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newImagesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasHosts applies the HasEdge predicate on the "hosts" edge.
func HasHosts() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, HostsTable, HostsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasHostsWith applies the HasEdge predicate on the "hosts" edge with a given conditions (other predicates).
func HasHostsWith(preds ...predicate.Host) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newHostsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasVms applies the HasEdge predicate on the "vms" edge.
func HasVms() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, VmsTable, VmsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).
func HasVmsWith(preds ...predicate.VirtualMachine) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newVmsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTasks applies the HasEdge predicate on the "tasks" edge.
func HasTasks() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, TasksTable, TasksColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func HasTasksWith(preds ...predicate.Task) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newTasksStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasGitIdentities applies the HasEdge predicate on the "git_identities" edge.
func HasGitIdentities() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, GitIdentitiesTable, GitIdentitiesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasGitIdentitiesWith applies the HasEdge predicate on the "git_identities" edge with a given conditions (other predicates).
func HasGitIdentitiesWith(preds ...predicate.GitIdentity) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newGitIdentitiesStep()
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.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ProjectsTable, ProjectsColumn),
)
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.User {
return predicate.User(func(s *sql.Selector) {
step := newProjectsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasProjectIssues applies the HasEdge predicate on the "project_issues" edge.
func HasProjectIssues() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ProjectIssuesTable, ProjectIssuesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasProjectIssuesWith applies the HasEdge predicate on the "project_issues" edge with a given conditions (other predicates).
func HasProjectIssuesWith(preds ...predicate.ProjectIssue) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newProjectIssuesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasAssignedIssues applies the HasEdge predicate on the "assigned_issues" edge.
func HasAssignedIssues() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, AssignedIssuesTable, AssignedIssuesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasAssignedIssuesWith applies the HasEdge predicate on the "assigned_issues" edge with a given conditions (other predicates).
func HasAssignedIssuesWith(preds ...predicate.ProjectIssue) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newAssignedIssuesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasProjectCollaborators applies the HasEdge predicate on the "project_collaborators" edge.
func HasProjectCollaborators() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ProjectCollaboratorsTable, ProjectCollaboratorsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasProjectCollaboratorsWith applies the HasEdge predicate on the "project_collaborators" edge with a given conditions (other predicates).
func HasProjectCollaboratorsWith(preds ...predicate.ProjectCollaborator) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newProjectCollaboratorsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasProjectIssueComments applies the HasEdge predicate on the "project_issue_comments" edge.
func HasProjectIssueComments() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, ProjectIssueCommentsTable, ProjectIssueCommentsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasProjectIssueCommentsWith applies the HasEdge predicate on the "project_issue_comments" edge with a given conditions (other predicates).
func HasProjectIssueCommentsWith(preds ...predicate.ProjectIssueComment) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newProjectIssueCommentsStep()
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.User {
return predicate.User(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.User {
return predicate.User(func(s *sql.Selector) {
step := newGitBotsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTeamMembers applies the HasEdge predicate on the "team_members" edge.
func HasTeamMembers() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, true, TeamMembersTable, TeamMembersColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTeamMembersWith applies the HasEdge predicate on the "team_members" edge with a given conditions (other predicates).
func HasTeamMembersWith(preds ...predicate.TeamMember) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newTeamMembersStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTeamGroupMembers applies the HasEdge predicate on the "team_group_members" edge.
func HasTeamGroupMembers() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, true, TeamGroupMembersTable, TeamGroupMembersColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTeamGroupMembersWith applies the HasEdge predicate on the "team_group_members" edge with a given conditions (other predicates).
func HasTeamGroupMembersWith(preds ...predicate.TeamGroupMember) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newTeamGroupMembersStep()
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.User {
return predicate.User(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.User {
return predicate.User(func(s *sql.Selector) {
step := newGitBotUsersStep()
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.User) predicate.User {
return predicate.User(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.User) predicate.User {
return predicate.User(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.User) predicate.User {
return predicate.User(sql.NotPredicates(p))
}