686 lines
24 KiB
Go
686 lines
24 KiB
Go
|
// Code generated by ent, DO NOT EDIT.
|
||
|
|
||
|
package user
|
||
|
|
||
|
import (
|
||
|
"online-order/ent/predicate"
|
||
|
"time"
|
||
|
|
||
|
"entgo.io/ent/dialect/sql"
|
||
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||
|
)
|
||
|
|
||
|
// ID filters vertices based on their ID field.
|
||
|
func ID(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDEQ applies the EQ predicate on the ID field.
|
||
|
func IDEQ(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDNEQ applies the NEQ predicate on the ID field.
|
||
|
func IDNEQ(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDIn applies the In predicate on the ID field.
|
||
|
func IDIn(ids ...int) predicate.User {
|
||
|
return predicate.User(sql.FieldIn(FieldID, ids...))
|
||
|
}
|
||
|
|
||
|
// IDNotIn applies the NotIn predicate on the ID field.
|
||
|
func IDNotIn(ids ...int) predicate.User {
|
||
|
return predicate.User(sql.FieldNotIn(FieldID, ids...))
|
||
|
}
|
||
|
|
||
|
// IDGT applies the GT predicate on the ID field.
|
||
|
func IDGT(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldGT(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDGTE applies the GTE predicate on the ID field.
|
||
|
func IDGTE(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldGTE(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDLT applies the LT predicate on the ID field.
|
||
|
func IDLT(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldLT(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDLTE applies the LTE predicate on the ID field.
|
||
|
func IDLTE(id int) predicate.User {
|
||
|
return predicate.User(sql.FieldLTE(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// 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))
|
||
|
}
|
||
|
|
||
|
// CellPhone applies equality check predicate on the "cell_phone" field. It's identical to CellPhoneEQ.
|
||
|
func CellPhone(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
|
||
|
func FirstName(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
|
||
|
func LastName(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldLastName, 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))
|
||
|
}
|
||
|
|
||
|
// IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
|
||
|
func IsActive(v bool) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldIsActive, v))
|
||
|
}
|
||
|
|
||
|
// IsAdmin applies equality check predicate on the "is_admin" field. It's identical to IsAdminEQ.
|
||
|
func IsAdmin(v bool) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldIsAdmin, 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))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAt applies equality check predicate on the "last_authentication_at" field. It's identical to LastAuthenticationAtEQ.
|
||
|
func LastAuthenticationAt(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldLastAuthenticationAt, 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))
|
||
|
}
|
||
|
|
||
|
// CellPhoneEQ applies the EQ predicate on the "cell_phone" field.
|
||
|
func CellPhoneEQ(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneNEQ applies the NEQ predicate on the "cell_phone" field.
|
||
|
func CellPhoneNEQ(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneIn applies the In predicate on the "cell_phone" field.
|
||
|
func CellPhoneIn(vs ...string) predicate.User {
|
||
|
return predicate.User(sql.FieldIn(FieldCellPhone, vs...))
|
||
|
}
|
||
|
|
||
|
// CellPhoneNotIn applies the NotIn predicate on the "cell_phone" field.
|
||
|
func CellPhoneNotIn(vs ...string) predicate.User {
|
||
|
return predicate.User(sql.FieldNotIn(FieldCellPhone, vs...))
|
||
|
}
|
||
|
|
||
|
// CellPhoneGT applies the GT predicate on the "cell_phone" field.
|
||
|
func CellPhoneGT(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldGT(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneGTE applies the GTE predicate on the "cell_phone" field.
|
||
|
func CellPhoneGTE(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldGTE(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneLT applies the LT predicate on the "cell_phone" field.
|
||
|
func CellPhoneLT(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldLT(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneLTE applies the LTE predicate on the "cell_phone" field.
|
||
|
func CellPhoneLTE(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldLTE(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneContains applies the Contains predicate on the "cell_phone" field.
|
||
|
func CellPhoneContains(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldContains(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneHasPrefix applies the HasPrefix predicate on the "cell_phone" field.
|
||
|
func CellPhoneHasPrefix(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldHasPrefix(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneHasSuffix applies the HasSuffix predicate on the "cell_phone" field.
|
||
|
func CellPhoneHasSuffix(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldHasSuffix(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneEqualFold applies the EqualFold predicate on the "cell_phone" field.
|
||
|
func CellPhoneEqualFold(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEqualFold(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// CellPhoneContainsFold applies the ContainsFold predicate on the "cell_phone" field.
|
||
|
func CellPhoneContainsFold(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldContainsFold(FieldCellPhone, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameEQ applies the EQ predicate on the "first_name" field.
|
||
|
func FirstNameEQ(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameNEQ applies the NEQ predicate on the "first_name" field.
|
||
|
func FirstNameNEQ(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameIn applies the In predicate on the "first_name" field.
|
||
|
func FirstNameIn(vs ...string) predicate.User {
|
||
|
return predicate.User(sql.FieldIn(FieldFirstName, vs...))
|
||
|
}
|
||
|
|
||
|
// FirstNameNotIn applies the NotIn predicate on the "first_name" field.
|
||
|
func FirstNameNotIn(vs ...string) predicate.User {
|
||
|
return predicate.User(sql.FieldNotIn(FieldFirstName, vs...))
|
||
|
}
|
||
|
|
||
|
// FirstNameGT applies the GT predicate on the "first_name" field.
|
||
|
func FirstNameGT(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldGT(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameGTE applies the GTE predicate on the "first_name" field.
|
||
|
func FirstNameGTE(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldGTE(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameLT applies the LT predicate on the "first_name" field.
|
||
|
func FirstNameLT(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldLT(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameLTE applies the LTE predicate on the "first_name" field.
|
||
|
func FirstNameLTE(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldLTE(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameContains applies the Contains predicate on the "first_name" field.
|
||
|
func FirstNameContains(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldContains(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
|
||
|
func FirstNameHasPrefix(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldHasPrefix(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
|
||
|
func FirstNameHasSuffix(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldHasSuffix(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
|
||
|
func FirstNameEqualFold(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEqualFold(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
|
||
|
func FirstNameContainsFold(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldContainsFold(FieldFirstName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameEQ applies the EQ predicate on the "last_name" field.
|
||
|
func LastNameEQ(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameNEQ applies the NEQ predicate on the "last_name" field.
|
||
|
func LastNameNEQ(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameIn applies the In predicate on the "last_name" field.
|
||
|
func LastNameIn(vs ...string) predicate.User {
|
||
|
return predicate.User(sql.FieldIn(FieldLastName, vs...))
|
||
|
}
|
||
|
|
||
|
// LastNameNotIn applies the NotIn predicate on the "last_name" field.
|
||
|
func LastNameNotIn(vs ...string) predicate.User {
|
||
|
return predicate.User(sql.FieldNotIn(FieldLastName, vs...))
|
||
|
}
|
||
|
|
||
|
// LastNameGT applies the GT predicate on the "last_name" field.
|
||
|
func LastNameGT(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldGT(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameGTE applies the GTE predicate on the "last_name" field.
|
||
|
func LastNameGTE(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldGTE(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameLT applies the LT predicate on the "last_name" field.
|
||
|
func LastNameLT(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldLT(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameLTE applies the LTE predicate on the "last_name" field.
|
||
|
func LastNameLTE(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldLTE(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameContains applies the Contains predicate on the "last_name" field.
|
||
|
func LastNameContains(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldContains(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
|
||
|
func LastNameHasPrefix(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldHasPrefix(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
|
||
|
func LastNameHasSuffix(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldHasSuffix(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
|
||
|
func LastNameEqualFold(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldEqualFold(FieldLastName, v))
|
||
|
}
|
||
|
|
||
|
// LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
|
||
|
func LastNameContainsFold(v string) predicate.User {
|
||
|
return predicate.User(sql.FieldContainsFold(FieldLastName, 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))
|
||
|
}
|
||
|
|
||
|
// IsActiveEQ applies the EQ predicate on the "is_active" field.
|
||
|
func IsActiveEQ(v bool) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldIsActive, v))
|
||
|
}
|
||
|
|
||
|
// IsActiveNEQ applies the NEQ predicate on the "is_active" field.
|
||
|
func IsActiveNEQ(v bool) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldIsActive, v))
|
||
|
}
|
||
|
|
||
|
// IsAdminEQ applies the EQ predicate on the "is_admin" field.
|
||
|
func IsAdminEQ(v bool) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldIsAdmin, v))
|
||
|
}
|
||
|
|
||
|
// IsAdminNEQ applies the NEQ predicate on the "is_admin" field.
|
||
|
func IsAdminNEQ(v bool) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldIsAdmin, v))
|
||
|
}
|
||
|
|
||
|
// 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))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtEQ applies the EQ predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtEQ(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldEQ(FieldLastAuthenticationAt, v))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtNEQ applies the NEQ predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtNEQ(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldNEQ(FieldLastAuthenticationAt, v))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtIn applies the In predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtIn(vs ...time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldIn(FieldLastAuthenticationAt, vs...))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtNotIn applies the NotIn predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtNotIn(vs ...time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldNotIn(FieldLastAuthenticationAt, vs...))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtGT applies the GT predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtGT(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldGT(FieldLastAuthenticationAt, v))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtGTE applies the GTE predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtGTE(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldGTE(FieldLastAuthenticationAt, v))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtLT applies the LT predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtLT(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldLT(FieldLastAuthenticationAt, v))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtLTE applies the LTE predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtLTE(v time.Time) predicate.User {
|
||
|
return predicate.User(sql.FieldLTE(FieldLastAuthenticationAt, v))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtIsNil applies the IsNil predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtIsNil() predicate.User {
|
||
|
return predicate.User(sql.FieldIsNull(FieldLastAuthenticationAt))
|
||
|
}
|
||
|
|
||
|
// LastAuthenticationAtNotNil applies the NotNil predicate on the "last_authentication_at" field.
|
||
|
func LastAuthenticationAtNotNil() predicate.User {
|
||
|
return predicate.User(sql.FieldNotNull(FieldLastAuthenticationAt))
|
||
|
}
|
||
|
|
||
|
// HasProducts applies the HasEdge predicate on the "products" edge.
|
||
|
func HasProducts() predicate.User {
|
||
|
return predicate.User(func(s *sql.Selector) {
|
||
|
step := sqlgraph.NewStep(
|
||
|
sqlgraph.From(Table, FieldID),
|
||
|
sqlgraph.Edge(sqlgraph.O2M, false, ProductsTable, ProductsColumn),
|
||
|
)
|
||
|
sqlgraph.HasNeighbors(s, step)
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// HasProductsWith applies the HasEdge predicate on the "products" edge with a given conditions (other predicates).
|
||
|
func HasProductsWith(preds ...predicate.Product) predicate.User {
|
||
|
return predicate.User(func(s *sql.Selector) {
|
||
|
step := newProductsStep()
|
||
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||
|
for _, p := range preds {
|
||
|
p(s)
|
||
|
}
|
||
|
})
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// HasDomains applies the HasEdge predicate on the "domains" edge.
|
||
|
func HasDomains() predicate.User {
|
||
|
return predicate.User(func(s *sql.Selector) {
|
||
|
step := sqlgraph.NewStep(
|
||
|
sqlgraph.From(Table, FieldID),
|
||
|
sqlgraph.Edge(sqlgraph.O2M, false, DomainsTable, DomainsColumn),
|
||
|
)
|
||
|
sqlgraph.HasNeighbors(s, step)
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// HasDomainsWith applies the HasEdge predicate on the "domains" edge with a given conditions (other predicates).
|
||
|
func HasDomainsWith(preds ...predicate.Domain) predicate.User {
|
||
|
return predicate.User(func(s *sql.Selector) {
|
||
|
step := newDomainsStep()
|
||
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||
|
for _, p := range preds {
|
||
|
p(s)
|
||
|
}
|
||
|
})
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// HasBusinesses applies the HasEdge predicate on the "businesses" edge.
|
||
|
func HasBusinesses() predicate.User {
|
||
|
return predicate.User(func(s *sql.Selector) {
|
||
|
step := sqlgraph.NewStep(
|
||
|
sqlgraph.From(Table, FieldID),
|
||
|
sqlgraph.Edge(sqlgraph.O2M, false, BusinessesTable, BusinessesColumn),
|
||
|
)
|
||
|
sqlgraph.HasNeighbors(s, step)
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// HasBusinessesWith applies the HasEdge predicate on the "businesses" edge with a given conditions (other predicates).
|
||
|
func HasBusinessesWith(preds ...predicate.Business) predicate.User {
|
||
|
return predicate.User(func(s *sql.Selector) {
|
||
|
step := newBusinessesStep()
|
||
|
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))
|
||
|
}
|