358 lines
12 KiB
Go
358 lines
12 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package domain
|
|
|
|
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.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
|
|
func Domain(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldDomain, v))
|
|
}
|
|
|
|
// BusinessID applies equality check predicate on the "business_id" field. It's identical to BusinessIDEQ.
|
|
func BusinessID(v int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldBusinessID, v))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.Domain {
|
|
return predicate.Domain(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.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DomainEQ applies the EQ predicate on the "domain" field.
|
|
func DomainEQ(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldDomain, v))
|
|
}
|
|
|
|
// DomainNEQ applies the NEQ predicate on the "domain" field.
|
|
func DomainNEQ(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNEQ(FieldDomain, v))
|
|
}
|
|
|
|
// DomainIn applies the In predicate on the "domain" field.
|
|
func DomainIn(vs ...string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldIn(FieldDomain, vs...))
|
|
}
|
|
|
|
// DomainNotIn applies the NotIn predicate on the "domain" field.
|
|
func DomainNotIn(vs ...string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotIn(FieldDomain, vs...))
|
|
}
|
|
|
|
// DomainGT applies the GT predicate on the "domain" field.
|
|
func DomainGT(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGT(FieldDomain, v))
|
|
}
|
|
|
|
// DomainGTE applies the GTE predicate on the "domain" field.
|
|
func DomainGTE(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGTE(FieldDomain, v))
|
|
}
|
|
|
|
// DomainLT applies the LT predicate on the "domain" field.
|
|
func DomainLT(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLT(FieldDomain, v))
|
|
}
|
|
|
|
// DomainLTE applies the LTE predicate on the "domain" field.
|
|
func DomainLTE(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLTE(FieldDomain, v))
|
|
}
|
|
|
|
// DomainContains applies the Contains predicate on the "domain" field.
|
|
func DomainContains(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldContains(FieldDomain, v))
|
|
}
|
|
|
|
// DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
|
|
func DomainHasPrefix(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldHasPrefix(FieldDomain, v))
|
|
}
|
|
|
|
// DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
|
|
func DomainHasSuffix(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldHasSuffix(FieldDomain, v))
|
|
}
|
|
|
|
// DomainEqualFold applies the EqualFold predicate on the "domain" field.
|
|
func DomainEqualFold(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEqualFold(FieldDomain, v))
|
|
}
|
|
|
|
// DomainContainsFold applies the ContainsFold predicate on the "domain" field.
|
|
func DomainContainsFold(v string) predicate.Domain {
|
|
return predicate.Domain(sql.FieldContainsFold(FieldDomain, v))
|
|
}
|
|
|
|
// BusinessIDEQ applies the EQ predicate on the "business_id" field.
|
|
func BusinessIDEQ(v int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldBusinessID, v))
|
|
}
|
|
|
|
// BusinessIDNEQ applies the NEQ predicate on the "business_id" field.
|
|
func BusinessIDNEQ(v int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNEQ(FieldBusinessID, v))
|
|
}
|
|
|
|
// BusinessIDIn applies the In predicate on the "business_id" field.
|
|
func BusinessIDIn(vs ...int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldIn(FieldBusinessID, vs...))
|
|
}
|
|
|
|
// BusinessIDNotIn applies the NotIn predicate on the "business_id" field.
|
|
func BusinessIDNotIn(vs ...int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotIn(FieldBusinessID, vs...))
|
|
}
|
|
|
|
// BusinessIDIsNil applies the IsNil predicate on the "business_id" field.
|
|
func BusinessIDIsNil() predicate.Domain {
|
|
return predicate.Domain(sql.FieldIsNull(FieldBusinessID))
|
|
}
|
|
|
|
// BusinessIDNotNil applies the NotNil predicate on the "business_id" field.
|
|
func BusinessIDNotNil() predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotNull(FieldBusinessID))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...int) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDIsNil applies the IsNil predicate on the "user_id" field.
|
|
func UserIDIsNil() predicate.Domain {
|
|
return predicate.Domain(sql.FieldIsNull(FieldUserID))
|
|
}
|
|
|
|
// UserIDNotNil applies the NotNil predicate on the "user_id" field.
|
|
func UserIDNotNil() predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotNull(FieldUserID))
|
|
}
|
|
|
|
// ConfigIsNil applies the IsNil predicate on the "config" field.
|
|
func ConfigIsNil() predicate.Domain {
|
|
return predicate.Domain(sql.FieldIsNull(FieldConfig))
|
|
}
|
|
|
|
// ConfigNotNil applies the NotNil predicate on the "config" field.
|
|
func ConfigNotNil() predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotNull(FieldConfig))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.Domain {
|
|
return predicate.Domain(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// HasBusinesses applies the HasEdge predicate on the "businesses" edge.
|
|
func HasBusinesses() predicate.Domain {
|
|
return predicate.Domain(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, 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.Domain {
|
|
return predicate.Domain(func(s *sql.Selector) {
|
|
step := newBusinessesStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasUsers applies the HasEdge predicate on the "users" edge.
|
|
func HasUsers() predicate.Domain {
|
|
return predicate.Domain(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, UsersTable, UsersColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
|
|
func HasUsersWith(preds ...predicate.User) predicate.Domain {
|
|
return predicate.Domain(func(s *sql.Selector) {
|
|
step := newUsersStep()
|
|
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.Domain) predicate.Domain {
|
|
return predicate.Domain(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Domain) predicate.Domain {
|
|
return predicate.Domain(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Domain) predicate.Domain {
|
|
return predicate.Domain(sql.NotPredicates(p))
|
|
}
|