// Code generated by ent, DO NOT EDIT. package business 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.Business { return predicate.Business(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int) predicate.Business { return predicate.Business(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Business { return predicate.Business(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id int) predicate.Business { return predicate.Business(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int) predicate.Business { return predicate.Business(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id int) predicate.Business { return predicate.Business(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int) predicate.Business { return predicate.Business(sql.FieldLTE(FieldID, id)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldName, v)) } // Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ. func Slug(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldSlug, v)) } // BotID applies equality check predicate on the "bot_id" field. It's identical to BotIDEQ. func BotID(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldBotID, v)) } // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. func Description(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldDescription, v)) } // AboutUs applies equality check predicate on the "about_us" field. It's identical to AboutUsEQ. func AboutUs(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldAboutUs, v)) } // BusinessCategoryID applies equality check predicate on the "business_category_id" field. It's identical to BusinessCategoryIDEQ. func BusinessCategoryID(v int) predicate.Business { return predicate.Business(sql.FieldEQ(FieldBusinessCategoryID, v)) } // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ. func UserID(v int) predicate.Business { return predicate.Business(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.Business { return predicate.Business(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.Business { return predicate.Business(sql.FieldEQ(FieldUpdatedAt, v)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.Business { return predicate.Business(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.Business { return predicate.Business(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.Business { return predicate.Business(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.Business { return predicate.Business(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Business { return predicate.Business(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.Business { return predicate.Business(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.Business { return predicate.Business(sql.FieldHasSuffix(FieldName, v)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.Business { return predicate.Business(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.Business { return predicate.Business(sql.FieldContainsFold(FieldName, v)) } // SlugEQ applies the EQ predicate on the "slug" field. func SlugEQ(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldSlug, v)) } // SlugNEQ applies the NEQ predicate on the "slug" field. func SlugNEQ(v string) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldSlug, v)) } // SlugIn applies the In predicate on the "slug" field. func SlugIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldIn(FieldSlug, vs...)) } // SlugNotIn applies the NotIn predicate on the "slug" field. func SlugNotIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldSlug, vs...)) } // SlugGT applies the GT predicate on the "slug" field. func SlugGT(v string) predicate.Business { return predicate.Business(sql.FieldGT(FieldSlug, v)) } // SlugGTE applies the GTE predicate on the "slug" field. func SlugGTE(v string) predicate.Business { return predicate.Business(sql.FieldGTE(FieldSlug, v)) } // SlugLT applies the LT predicate on the "slug" field. func SlugLT(v string) predicate.Business { return predicate.Business(sql.FieldLT(FieldSlug, v)) } // SlugLTE applies the LTE predicate on the "slug" field. func SlugLTE(v string) predicate.Business { return predicate.Business(sql.FieldLTE(FieldSlug, v)) } // SlugContains applies the Contains predicate on the "slug" field. func SlugContains(v string) predicate.Business { return predicate.Business(sql.FieldContains(FieldSlug, v)) } // SlugHasPrefix applies the HasPrefix predicate on the "slug" field. func SlugHasPrefix(v string) predicate.Business { return predicate.Business(sql.FieldHasPrefix(FieldSlug, v)) } // SlugHasSuffix applies the HasSuffix predicate on the "slug" field. func SlugHasSuffix(v string) predicate.Business { return predicate.Business(sql.FieldHasSuffix(FieldSlug, v)) } // SlugEqualFold applies the EqualFold predicate on the "slug" field. func SlugEqualFold(v string) predicate.Business { return predicate.Business(sql.FieldEqualFold(FieldSlug, v)) } // SlugContainsFold applies the ContainsFold predicate on the "slug" field. func SlugContainsFold(v string) predicate.Business { return predicate.Business(sql.FieldContainsFold(FieldSlug, v)) } // BotIDEQ applies the EQ predicate on the "bot_id" field. func BotIDEQ(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldBotID, v)) } // BotIDNEQ applies the NEQ predicate on the "bot_id" field. func BotIDNEQ(v string) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldBotID, v)) } // BotIDIn applies the In predicate on the "bot_id" field. func BotIDIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldIn(FieldBotID, vs...)) } // BotIDNotIn applies the NotIn predicate on the "bot_id" field. func BotIDNotIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldBotID, vs...)) } // BotIDGT applies the GT predicate on the "bot_id" field. func BotIDGT(v string) predicate.Business { return predicate.Business(sql.FieldGT(FieldBotID, v)) } // BotIDGTE applies the GTE predicate on the "bot_id" field. func BotIDGTE(v string) predicate.Business { return predicate.Business(sql.FieldGTE(FieldBotID, v)) } // BotIDLT applies the LT predicate on the "bot_id" field. func BotIDLT(v string) predicate.Business { return predicate.Business(sql.FieldLT(FieldBotID, v)) } // BotIDLTE applies the LTE predicate on the "bot_id" field. func BotIDLTE(v string) predicate.Business { return predicate.Business(sql.FieldLTE(FieldBotID, v)) } // BotIDContains applies the Contains predicate on the "bot_id" field. func BotIDContains(v string) predicate.Business { return predicate.Business(sql.FieldContains(FieldBotID, v)) } // BotIDHasPrefix applies the HasPrefix predicate on the "bot_id" field. func BotIDHasPrefix(v string) predicate.Business { return predicate.Business(sql.FieldHasPrefix(FieldBotID, v)) } // BotIDHasSuffix applies the HasSuffix predicate on the "bot_id" field. func BotIDHasSuffix(v string) predicate.Business { return predicate.Business(sql.FieldHasSuffix(FieldBotID, v)) } // BotIDEqualFold applies the EqualFold predicate on the "bot_id" field. func BotIDEqualFold(v string) predicate.Business { return predicate.Business(sql.FieldEqualFold(FieldBotID, v)) } // BotIDContainsFold applies the ContainsFold predicate on the "bot_id" field. func BotIDContainsFold(v string) predicate.Business { return predicate.Business(sql.FieldContainsFold(FieldBotID, v)) } // DescriptionEQ applies the EQ predicate on the "description" field. func DescriptionEQ(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldDescription, v)) } // DescriptionNEQ applies the NEQ predicate on the "description" field. func DescriptionNEQ(v string) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldDescription, v)) } // DescriptionIn applies the In predicate on the "description" field. func DescriptionIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldIn(FieldDescription, vs...)) } // DescriptionNotIn applies the NotIn predicate on the "description" field. func DescriptionNotIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldDescription, vs...)) } // DescriptionGT applies the GT predicate on the "description" field. func DescriptionGT(v string) predicate.Business { return predicate.Business(sql.FieldGT(FieldDescription, v)) } // DescriptionGTE applies the GTE predicate on the "description" field. func DescriptionGTE(v string) predicate.Business { return predicate.Business(sql.FieldGTE(FieldDescription, v)) } // DescriptionLT applies the LT predicate on the "description" field. func DescriptionLT(v string) predicate.Business { return predicate.Business(sql.FieldLT(FieldDescription, v)) } // DescriptionLTE applies the LTE predicate on the "description" field. func DescriptionLTE(v string) predicate.Business { return predicate.Business(sql.FieldLTE(FieldDescription, v)) } // DescriptionContains applies the Contains predicate on the "description" field. func DescriptionContains(v string) predicate.Business { return predicate.Business(sql.FieldContains(FieldDescription, v)) } // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. func DescriptionHasPrefix(v string) predicate.Business { return predicate.Business(sql.FieldHasPrefix(FieldDescription, v)) } // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. func DescriptionHasSuffix(v string) predicate.Business { return predicate.Business(sql.FieldHasSuffix(FieldDescription, v)) } // DescriptionIsNil applies the IsNil predicate on the "description" field. func DescriptionIsNil() predicate.Business { return predicate.Business(sql.FieldIsNull(FieldDescription)) } // DescriptionNotNil applies the NotNil predicate on the "description" field. func DescriptionNotNil() predicate.Business { return predicate.Business(sql.FieldNotNull(FieldDescription)) } // DescriptionEqualFold applies the EqualFold predicate on the "description" field. func DescriptionEqualFold(v string) predicate.Business { return predicate.Business(sql.FieldEqualFold(FieldDescription, v)) } // DescriptionContainsFold applies the ContainsFold predicate on the "description" field. func DescriptionContainsFold(v string) predicate.Business { return predicate.Business(sql.FieldContainsFold(FieldDescription, v)) } // AboutUsEQ applies the EQ predicate on the "about_us" field. func AboutUsEQ(v string) predicate.Business { return predicate.Business(sql.FieldEQ(FieldAboutUs, v)) } // AboutUsNEQ applies the NEQ predicate on the "about_us" field. func AboutUsNEQ(v string) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldAboutUs, v)) } // AboutUsIn applies the In predicate on the "about_us" field. func AboutUsIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldIn(FieldAboutUs, vs...)) } // AboutUsNotIn applies the NotIn predicate on the "about_us" field. func AboutUsNotIn(vs ...string) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldAboutUs, vs...)) } // AboutUsGT applies the GT predicate on the "about_us" field. func AboutUsGT(v string) predicate.Business { return predicate.Business(sql.FieldGT(FieldAboutUs, v)) } // AboutUsGTE applies the GTE predicate on the "about_us" field. func AboutUsGTE(v string) predicate.Business { return predicate.Business(sql.FieldGTE(FieldAboutUs, v)) } // AboutUsLT applies the LT predicate on the "about_us" field. func AboutUsLT(v string) predicate.Business { return predicate.Business(sql.FieldLT(FieldAboutUs, v)) } // AboutUsLTE applies the LTE predicate on the "about_us" field. func AboutUsLTE(v string) predicate.Business { return predicate.Business(sql.FieldLTE(FieldAboutUs, v)) } // AboutUsContains applies the Contains predicate on the "about_us" field. func AboutUsContains(v string) predicate.Business { return predicate.Business(sql.FieldContains(FieldAboutUs, v)) } // AboutUsHasPrefix applies the HasPrefix predicate on the "about_us" field. func AboutUsHasPrefix(v string) predicate.Business { return predicate.Business(sql.FieldHasPrefix(FieldAboutUs, v)) } // AboutUsHasSuffix applies the HasSuffix predicate on the "about_us" field. func AboutUsHasSuffix(v string) predicate.Business { return predicate.Business(sql.FieldHasSuffix(FieldAboutUs, v)) } // AboutUsIsNil applies the IsNil predicate on the "about_us" field. func AboutUsIsNil() predicate.Business { return predicate.Business(sql.FieldIsNull(FieldAboutUs)) } // AboutUsNotNil applies the NotNil predicate on the "about_us" field. func AboutUsNotNil() predicate.Business { return predicate.Business(sql.FieldNotNull(FieldAboutUs)) } // AboutUsEqualFold applies the EqualFold predicate on the "about_us" field. func AboutUsEqualFold(v string) predicate.Business { return predicate.Business(sql.FieldEqualFold(FieldAboutUs, v)) } // AboutUsContainsFold applies the ContainsFold predicate on the "about_us" field. func AboutUsContainsFold(v string) predicate.Business { return predicate.Business(sql.FieldContainsFold(FieldAboutUs, v)) } // BusinessCategoryIDEQ applies the EQ predicate on the "business_category_id" field. func BusinessCategoryIDEQ(v int) predicate.Business { return predicate.Business(sql.FieldEQ(FieldBusinessCategoryID, v)) } // BusinessCategoryIDNEQ applies the NEQ predicate on the "business_category_id" field. func BusinessCategoryIDNEQ(v int) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldBusinessCategoryID, v)) } // BusinessCategoryIDIn applies the In predicate on the "business_category_id" field. func BusinessCategoryIDIn(vs ...int) predicate.Business { return predicate.Business(sql.FieldIn(FieldBusinessCategoryID, vs...)) } // BusinessCategoryIDNotIn applies the NotIn predicate on the "business_category_id" field. func BusinessCategoryIDNotIn(vs ...int) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldBusinessCategoryID, vs...)) } // BusinessCategoryIDIsNil applies the IsNil predicate on the "business_category_id" field. func BusinessCategoryIDIsNil() predicate.Business { return predicate.Business(sql.FieldIsNull(FieldBusinessCategoryID)) } // BusinessCategoryIDNotNil applies the NotNil predicate on the "business_category_id" field. func BusinessCategoryIDNotNil() predicate.Business { return predicate.Business(sql.FieldNotNull(FieldBusinessCategoryID)) } // UserIDEQ applies the EQ predicate on the "user_id" field. func UserIDEQ(v int) predicate.Business { return predicate.Business(sql.FieldEQ(FieldUserID, v)) } // UserIDNEQ applies the NEQ predicate on the "user_id" field. func UserIDNEQ(v int) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldUserID, v)) } // UserIDIn applies the In predicate on the "user_id" field. func UserIDIn(vs ...int) predicate.Business { return predicate.Business(sql.FieldIn(FieldUserID, vs...)) } // UserIDNotIn applies the NotIn predicate on the "user_id" field. func UserIDNotIn(vs ...int) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldUserID, vs...)) } // UserIDIsNil applies the IsNil predicate on the "user_id" field. func UserIDIsNil() predicate.Business { return predicate.Business(sql.FieldIsNull(FieldUserID)) } // UserIDNotNil applies the NotNil predicate on the "user_id" field. func UserIDNotNil() predicate.Business { return predicate.Business(sql.FieldNotNull(FieldUserID)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.Business { return predicate.Business(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.Business { return predicate.Business(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.Business { return predicate.Business(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.Business { return predicate.Business(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.Business { return predicate.Business(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.Business { return predicate.Business(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.Business { return predicate.Business(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.Business { return predicate.Business(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.Business { return predicate.Business(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.Business { return predicate.Business(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.Business { return predicate.Business(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.Business { return predicate.Business(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.Business { return predicate.Business(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.Business { return predicate.Business(sql.FieldLTE(FieldUpdatedAt, v)) } // HasBusinessCategories applies the HasEdge predicate on the "business_categories" edge. func HasBusinessCategories() predicate.Business { return predicate.Business(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, BusinessCategoriesTable, BusinessCategoriesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasBusinessCategoriesWith applies the HasEdge predicate on the "business_categories" edge with a given conditions (other predicates). func HasBusinessCategoriesWith(preds ...predicate.BusinessCategory) predicate.Business { return predicate.Business(func(s *sql.Selector) { step := newBusinessCategoriesStep() 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.Business { return predicate.Business(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.Business { return predicate.Business(func(s *sql.Selector) { step := newUsersStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasProducts applies the HasEdge predicate on the "products" edge. func HasProducts() predicate.Business { return predicate.Business(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.Business { return predicate.Business(func(s *sql.Selector) { step := newProductsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasProductCategories applies the HasEdge predicate on the "product_categories" edge. func HasProductCategories() predicate.Business { return predicate.Business(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, ProductCategoriesTable, ProductCategoriesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasProductCategoriesWith applies the HasEdge predicate on the "product_categories" edge with a given conditions (other predicates). func HasProductCategoriesWith(preds ...predicate.ProductCategory) predicate.Business { return predicate.Business(func(s *sql.Selector) { step := newProductCategoriesStep() 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.Business { return predicate.Business(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.Business { return predicate.Business(func(s *sql.Selector) { step := newDomainsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasBusinessConfigs applies the HasEdge predicate on the "business_configs" edge. func HasBusinessConfigs() predicate.Business { return predicate.Business(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, BusinessConfigsTable, BusinessConfigsColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasBusinessConfigsWith applies the HasEdge predicate on the "business_configs" edge with a given conditions (other predicates). func HasBusinessConfigsWith(preds ...predicate.BusinessConfig) predicate.Business { return predicate.Business(func(s *sql.Selector) { step := newBusinessConfigsStep() 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.Business) predicate.Business { return predicate.Business(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Business) predicate.Business { return predicate.Business(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Business) predicate.Business { return predicate.Business(sql.NotPredicates(p)) }