436 lines
14 KiB
Go
436 lines
14 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package profile
|
|
|
|
import (
|
|
"time"
|
|
|
|
"code.icod.de/dalu/ka/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.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uuid.UUID) predicate.Profile {
|
|
return predicate.Profile(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.Profile {
|
|
return predicate.Profile(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.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
|
|
func Address(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldAddress, v))
|
|
}
|
|
|
|
// Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
|
|
func Phone(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldPhone, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
|
|
func UpdatedAtIsNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldIsNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
|
|
func UpdatedAtNotNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameIsNil applies the IsNil predicate on the "name" field.
|
|
func NameIsNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldIsNull(FieldName))
|
|
}
|
|
|
|
// NameNotNil applies the NotNil predicate on the "name" field.
|
|
func NameNotNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotNull(FieldName))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// AddressEQ applies the EQ predicate on the "address" field.
|
|
func AddressEQ(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldAddress, v))
|
|
}
|
|
|
|
// AddressNEQ applies the NEQ predicate on the "address" field.
|
|
func AddressNEQ(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNEQ(FieldAddress, v))
|
|
}
|
|
|
|
// AddressIn applies the In predicate on the "address" field.
|
|
func AddressIn(vs ...string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldIn(FieldAddress, vs...))
|
|
}
|
|
|
|
// AddressNotIn applies the NotIn predicate on the "address" field.
|
|
func AddressNotIn(vs ...string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotIn(FieldAddress, vs...))
|
|
}
|
|
|
|
// AddressGT applies the GT predicate on the "address" field.
|
|
func AddressGT(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGT(FieldAddress, v))
|
|
}
|
|
|
|
// AddressGTE applies the GTE predicate on the "address" field.
|
|
func AddressGTE(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGTE(FieldAddress, v))
|
|
}
|
|
|
|
// AddressLT applies the LT predicate on the "address" field.
|
|
func AddressLT(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLT(FieldAddress, v))
|
|
}
|
|
|
|
// AddressLTE applies the LTE predicate on the "address" field.
|
|
func AddressLTE(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLTE(FieldAddress, v))
|
|
}
|
|
|
|
// AddressContains applies the Contains predicate on the "address" field.
|
|
func AddressContains(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldContains(FieldAddress, v))
|
|
}
|
|
|
|
// AddressHasPrefix applies the HasPrefix predicate on the "address" field.
|
|
func AddressHasPrefix(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldHasPrefix(FieldAddress, v))
|
|
}
|
|
|
|
// AddressHasSuffix applies the HasSuffix predicate on the "address" field.
|
|
func AddressHasSuffix(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldHasSuffix(FieldAddress, v))
|
|
}
|
|
|
|
// AddressIsNil applies the IsNil predicate on the "address" field.
|
|
func AddressIsNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldIsNull(FieldAddress))
|
|
}
|
|
|
|
// AddressNotNil applies the NotNil predicate on the "address" field.
|
|
func AddressNotNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotNull(FieldAddress))
|
|
}
|
|
|
|
// AddressEqualFold applies the EqualFold predicate on the "address" field.
|
|
func AddressEqualFold(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEqualFold(FieldAddress, v))
|
|
}
|
|
|
|
// AddressContainsFold applies the ContainsFold predicate on the "address" field.
|
|
func AddressContainsFold(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldContainsFold(FieldAddress, v))
|
|
}
|
|
|
|
// PhoneEQ applies the EQ predicate on the "phone" field.
|
|
func PhoneEQ(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEQ(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneNEQ applies the NEQ predicate on the "phone" field.
|
|
func PhoneNEQ(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNEQ(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneIn applies the In predicate on the "phone" field.
|
|
func PhoneIn(vs ...string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldIn(FieldPhone, vs...))
|
|
}
|
|
|
|
// PhoneNotIn applies the NotIn predicate on the "phone" field.
|
|
func PhoneNotIn(vs ...string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotIn(FieldPhone, vs...))
|
|
}
|
|
|
|
// PhoneGT applies the GT predicate on the "phone" field.
|
|
func PhoneGT(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGT(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneGTE applies the GTE predicate on the "phone" field.
|
|
func PhoneGTE(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldGTE(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneLT applies the LT predicate on the "phone" field.
|
|
func PhoneLT(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLT(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneLTE applies the LTE predicate on the "phone" field.
|
|
func PhoneLTE(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldLTE(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneContains applies the Contains predicate on the "phone" field.
|
|
func PhoneContains(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldContains(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
|
|
func PhoneHasPrefix(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldHasPrefix(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
|
|
func PhoneHasSuffix(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldHasSuffix(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneIsNil applies the IsNil predicate on the "phone" field.
|
|
func PhoneIsNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldIsNull(FieldPhone))
|
|
}
|
|
|
|
// PhoneNotNil applies the NotNil predicate on the "phone" field.
|
|
func PhoneNotNil() predicate.Profile {
|
|
return predicate.Profile(sql.FieldNotNull(FieldPhone))
|
|
}
|
|
|
|
// PhoneEqualFold applies the EqualFold predicate on the "phone" field.
|
|
func PhoneEqualFold(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldEqualFold(FieldPhone, v))
|
|
}
|
|
|
|
// PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
|
|
func PhoneContainsFold(v string) predicate.Profile {
|
|
return predicate.Profile(sql.FieldContainsFold(FieldPhone, v))
|
|
}
|
|
|
|
// HasPosts applies the HasEdge predicate on the "posts" edge.
|
|
func HasPosts() predicate.Profile {
|
|
return predicate.Profile(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, PostsTable, PostsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
|
|
func HasPostsWith(preds ...predicate.Post) predicate.Profile {
|
|
return predicate.Profile(func(s *sql.Selector) {
|
|
step := newPostsStep()
|
|
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.Profile) predicate.Profile {
|
|
return predicate.Profile(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Profile) predicate.Profile {
|
|
return predicate.Profile(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Profile) predicate.Profile {
|
|
return predicate.Profile(sql.NotPredicates(p))
|
|
}
|