accountserver/ent/account/where.go

481 lines
16 KiB
Go
Raw Permalink Normal View History

2024-08-19 13:55:36 +02:00
// Code generated by ent, DO NOT EDIT.
package account
import (
"time"
"code.icod.de/auth/accountserver/ent/predicate"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/google/uuid"
)
// ID filters vertices based on their ID field.
func ID(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldID, id))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Account {
return predicate.Account(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.Account {
return predicate.Account(sql.FieldEQ(FieldUpdatedAt, v))
}
// Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func Nickname(v string) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldNickname, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldName, v))
}
// Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func Secret(v []byte) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldSecret, v))
}
// Aes applies equality check predicate on the "aes" field. It's identical to AesEQ.
func Aes(v []byte) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldAes, v))
}
// X509 applies equality check predicate on the "x509" field. It's identical to X509EQ.
func X509(v []byte) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldX509, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Account {
return predicate.Account(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Account {
return predicate.Account(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Account {
return predicate.Account(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Account {
return predicate.Account(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Account {
return predicate.Account(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Account {
return predicate.Account(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldUpdatedAt, v))
}
// NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEQ(v string) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldNickname, v))
}
// NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNEQ(v string) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldNickname, v))
}
// NicknameIn applies the In predicate on the "nickname" field.
func NicknameIn(vs ...string) predicate.Account {
return predicate.Account(sql.FieldIn(FieldNickname, vs...))
}
// NicknameNotIn applies the NotIn predicate on the "nickname" field.
func NicknameNotIn(vs ...string) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldNickname, vs...))
}
// NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGT(v string) predicate.Account {
return predicate.Account(sql.FieldGT(FieldNickname, v))
}
// NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameGTE(v string) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldNickname, v))
}
// NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLT(v string) predicate.Account {
return predicate.Account(sql.FieldLT(FieldNickname, v))
}
// NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameLTE(v string) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldNickname, v))
}
// NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContains(v string) predicate.Account {
return predicate.Account(sql.FieldContains(FieldNickname, v))
}
// NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasPrefix(v string) predicate.Account {
return predicate.Account(sql.FieldHasPrefix(FieldNickname, v))
}
// NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameHasSuffix(v string) predicate.Account {
return predicate.Account(sql.FieldHasSuffix(FieldNickname, v))
}
2024-09-03 15:56:34 +02:00
// NicknameIsNil applies the IsNil predicate on the "nickname" field.
func NicknameIsNil() predicate.Account {
return predicate.Account(sql.FieldIsNull(FieldNickname))
}
// NicknameNotNil applies the NotNil predicate on the "nickname" field.
func NicknameNotNil() predicate.Account {
return predicate.Account(sql.FieldNotNull(FieldNickname))
}
2024-08-19 13:55:36 +02:00
// NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameEqualFold(v string) predicate.Account {
return predicate.Account(sql.FieldEqualFold(FieldNickname, v))
}
// NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameContainsFold(v string) predicate.Account {
return predicate.Account(sql.FieldContainsFold(FieldNickname, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.Account {
return predicate.Account(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.Account {
return predicate.Account(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.Account {
return predicate.Account(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.Account {
return predicate.Account(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.Account {
return predicate.Account(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.Account {
return predicate.Account(sql.FieldHasSuffix(FieldName, v))
}
2024-09-03 15:56:34 +02:00
// NameIsNil applies the IsNil predicate on the "name" field.
func NameIsNil() predicate.Account {
return predicate.Account(sql.FieldIsNull(FieldName))
}
// NameNotNil applies the NotNil predicate on the "name" field.
func NameNotNil() predicate.Account {
return predicate.Account(sql.FieldNotNull(FieldName))
}
2024-08-19 13:55:36 +02:00
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.Account {
return predicate.Account(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.Account {
return predicate.Account(sql.FieldContainsFold(FieldName, v))
}
// SecretEQ applies the EQ predicate on the "secret" field.
func SecretEQ(v []byte) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldSecret, v))
}
// SecretNEQ applies the NEQ predicate on the "secret" field.
func SecretNEQ(v []byte) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldSecret, v))
}
// SecretIn applies the In predicate on the "secret" field.
func SecretIn(vs ...[]byte) predicate.Account {
return predicate.Account(sql.FieldIn(FieldSecret, vs...))
}
// SecretNotIn applies the NotIn predicate on the "secret" field.
func SecretNotIn(vs ...[]byte) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldSecret, vs...))
}
// SecretGT applies the GT predicate on the "secret" field.
func SecretGT(v []byte) predicate.Account {
return predicate.Account(sql.FieldGT(FieldSecret, v))
}
// SecretGTE applies the GTE predicate on the "secret" field.
func SecretGTE(v []byte) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldSecret, v))
}
// SecretLT applies the LT predicate on the "secret" field.
func SecretLT(v []byte) predicate.Account {
return predicate.Account(sql.FieldLT(FieldSecret, v))
}
// SecretLTE applies the LTE predicate on the "secret" field.
func SecretLTE(v []byte) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldSecret, v))
}
// AesEQ applies the EQ predicate on the "aes" field.
func AesEQ(v []byte) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldAes, v))
}
// AesNEQ applies the NEQ predicate on the "aes" field.
func AesNEQ(v []byte) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldAes, v))
}
// AesIn applies the In predicate on the "aes" field.
func AesIn(vs ...[]byte) predicate.Account {
return predicate.Account(sql.FieldIn(FieldAes, vs...))
}
// AesNotIn applies the NotIn predicate on the "aes" field.
func AesNotIn(vs ...[]byte) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldAes, vs...))
}
// AesGT applies the GT predicate on the "aes" field.
func AesGT(v []byte) predicate.Account {
return predicate.Account(sql.FieldGT(FieldAes, v))
}
// AesGTE applies the GTE predicate on the "aes" field.
func AesGTE(v []byte) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldAes, v))
}
// AesLT applies the LT predicate on the "aes" field.
func AesLT(v []byte) predicate.Account {
return predicate.Account(sql.FieldLT(FieldAes, v))
}
// AesLTE applies the LTE predicate on the "aes" field.
func AesLTE(v []byte) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldAes, v))
}
// X509EQ applies the EQ predicate on the "x509" field.
func X509EQ(v []byte) predicate.Account {
return predicate.Account(sql.FieldEQ(FieldX509, v))
}
// X509NEQ applies the NEQ predicate on the "x509" field.
func X509NEQ(v []byte) predicate.Account {
return predicate.Account(sql.FieldNEQ(FieldX509, v))
}
// X509In applies the In predicate on the "x509" field.
func X509In(vs ...[]byte) predicate.Account {
return predicate.Account(sql.FieldIn(FieldX509, vs...))
}
// X509NotIn applies the NotIn predicate on the "x509" field.
func X509NotIn(vs ...[]byte) predicate.Account {
return predicate.Account(sql.FieldNotIn(FieldX509, vs...))
}
// X509GT applies the GT predicate on the "x509" field.
func X509GT(v []byte) predicate.Account {
return predicate.Account(sql.FieldGT(FieldX509, v))
}
// X509GTE applies the GTE predicate on the "x509" field.
func X509GTE(v []byte) predicate.Account {
return predicate.Account(sql.FieldGTE(FieldX509, v))
}
// X509LT applies the LT predicate on the "x509" field.
func X509LT(v []byte) predicate.Account {
return predicate.Account(sql.FieldLT(FieldX509, v))
}
// X509LTE applies the LTE predicate on the "x509" field.
func X509LTE(v []byte) predicate.Account {
return predicate.Account(sql.FieldLTE(FieldX509, v))
}
// HasEmails applies the HasEdge predicate on the "emails" edge.
func HasEmails() predicate.Account {
return predicate.Account(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, EmailsTable, EmailsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasEmailsWith applies the HasEdge predicate on the "emails" edge with a given conditions (other predicates).
func HasEmailsWith(preds ...predicate.Email) predicate.Account {
return predicate.Account(func(s *sql.Selector) {
step := newEmailsStep()
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.Account) predicate.Account {
return predicate.Account(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Account) predicate.Account {
return predicate.Account(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Account) predicate.Account {
return predicate.Account(sql.NotPredicates(p))
}