go generate ent schema
This commit is contained in:
124
ent/account/account.go
Normal file
124
ent/account/account.go
Normal file
@ -0,0 +1,124 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package account
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the account type in the database.
|
||||
Label = "account"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// FieldNickname holds the string denoting the nickname field in the database.
|
||||
FieldNickname = "nickname"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldSecret holds the string denoting the secret field in the database.
|
||||
FieldSecret = "secret"
|
||||
// FieldAes holds the string denoting the aes field in the database.
|
||||
FieldAes = "aes"
|
||||
// FieldX509 holds the string denoting the x509 field in the database.
|
||||
FieldX509 = "x509"
|
||||
// EdgeEmails holds the string denoting the emails edge name in mutations.
|
||||
EdgeEmails = "emails"
|
||||
// Table holds the table name of the account in the database.
|
||||
Table = "accounts"
|
||||
// EmailsTable is the table that holds the emails relation/edge.
|
||||
EmailsTable = "emails"
|
||||
// EmailsInverseTable is the table name for the Email entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "email" package.
|
||||
EmailsInverseTable = "emails"
|
||||
// EmailsColumn is the table column denoting the emails relation/edge.
|
||||
EmailsColumn = "account_emails"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for account fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
FieldNickname,
|
||||
FieldName,
|
||||
FieldSecret,
|
||||
FieldAes,
|
||||
FieldX509,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
// AesValidator is a validator for the "aes" field. It is called by the builders before save.
|
||||
AesValidator func([]byte) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Account queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByNickname orders the results by the nickname field.
|
||||
func ByNickname(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldNickname, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByEmailsCount orders the results by emails count.
|
||||
func ByEmailsCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newEmailsStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByEmails orders the results by emails terms.
|
||||
func ByEmails(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newEmailsStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
func newEmailsStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(EmailsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, EmailsTable, EmailsColumn),
|
||||
)
|
||||
}
|
460
ent/account/where.go
Normal file
460
ent/account/where.go
Normal file
@ -0,0 +1,460 @@
|
||||
// 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))
|
||||
}
|
||||
|
||||
// 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))
|
||||
}
|
||||
|
||||
// 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))
|
||||
}
|
Reference in New Issue
Block a user