orgproduct

package
v1.11.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orgproduct type in the database.
	Label = "org_product"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldModule holds the string denoting the module field in the database.
	FieldModule = "module"
	// FieldStripeProductID holds the string denoting the stripe_product_id field in the database.
	FieldStripeProductID = "stripe_product_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldSubscriptionID holds the string denoting the subscription_id field in the database.
	FieldSubscriptionID = "subscription_id"
	// FieldPriceID holds the string denoting the price_id field in the database.
	FieldPriceID = "price_id"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeOrgSubscription holds the string denoting the org_subscription edge name in mutations.
	EdgeOrgSubscription = "org_subscription"
	// EdgeOrgPrices holds the string denoting the org_prices edge name in mutations.
	EdgeOrgPrices = "org_prices"
	// EdgeOrgModules holds the string denoting the org_modules edge name in mutations.
	EdgeOrgModules = "org_modules"
	// Table holds the table name of the orgproduct in the database.
	Table = "org_products"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "org_products"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// OrgSubscriptionTable is the table that holds the org_subscription relation/edge.
	OrgSubscriptionTable = "org_products"
	// OrgSubscriptionInverseTable is the table name for the OrgSubscription entity.
	// It exists in this package in order to avoid circular dependency with the "orgsubscription" package.
	OrgSubscriptionInverseTable = "org_subscriptions"
	// OrgSubscriptionColumn is the table column denoting the org_subscription relation/edge.
	OrgSubscriptionColumn = "subscription_id"
	// OrgPricesTable is the table that holds the org_prices relation/edge. The primary key declared below.
	OrgPricesTable = "org_product_org_prices"
	// OrgPricesInverseTable is the table name for the OrgPrice entity.
	// It exists in this package in order to avoid circular dependency with the "orgprice" package.
	OrgPricesInverseTable = "org_prices"
	// OrgModulesTable is the table that holds the org_modules relation/edge.
	OrgModulesTable = "org_modules"
	// OrgModulesInverseTable is the table name for the OrgModule entity.
	// It exists in this package in order to avoid circular dependency with the "orgmodule" package.
	OrgModulesInverseTable = "org_modules"
	// OrgModulesColumn is the table column denoting the org_modules relation/edge.
	OrgModulesColumn = "org_product_org_modules"
)

Variables

View Source
var (
	Hooks        [4]ent.Hook
	Interceptors [2]ent.Interceptor
	// 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
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for orgproduct fields.

View Source
var ForeignKeys = []string{
	"org_module_org_products",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "org_products" table and are not defined as standalone fields in the schema.

View Source
var (
	// OrgPricesPrimaryKey and OrgPricesColumn2 are the table columns denoting the
	// primary key for the org_prices relation (M2M).
	OrgPricesPrimaryKey = []string{"org_product_id", "org_price_id"}
)

Functions

func Active

func Active(v bool) predicate.OrgProduct

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.OrgProduct

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.OrgProduct

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.OrgProduct) predicate.OrgProduct

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.OrgProduct

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OrgProduct

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OrgProduct

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OrgProduct

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.OrgProduct

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.OrgProduct

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OrgProduct

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OrgProduct

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OrgProduct

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.OrgProduct

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.OrgProduct

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.OrgProduct

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.OrgProduct

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.OrgProduct

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.OrgProduct

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.OrgProduct

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.OrgProduct

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.OrgProduct

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.OrgProduct

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.OrgProduct

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.OrgProduct

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.OrgProduct

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.OrgProduct

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.OrgProduct

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.OrgProduct

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.OrgProduct

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.OrgProduct

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.OrgProduct

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.OrgProduct

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.OrgProduct

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.OrgProduct

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.OrgProduct

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.OrgProduct

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.OrgProduct

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.OrgProduct

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.OrgProduct

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.OrgProduct

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.OrgProduct

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.OrgProduct

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.OrgProduct

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.OrgProduct

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.OrgProduct

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.OrgProduct

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.OrgProduct

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.OrgProduct

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.OrgProduct

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.OrgProduct

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.OrgProduct

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.OrgProduct

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.OrgProduct

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.OrgProduct

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.OrgProduct

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.OrgProduct

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.OrgProduct

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func HasOrgModules added in v0.19.0

func HasOrgModules() predicate.OrgProduct

HasOrgModules applies the HasEdge predicate on the "org_modules" edge.

func HasOrgModulesWith added in v0.19.0

func HasOrgModulesWith(preds ...predicate.OrgModule) predicate.OrgProduct

HasOrgModulesWith applies the HasEdge predicate on the "org_modules" edge with a given conditions (other predicates).

func HasOrgPrices added in v0.19.0

func HasOrgPrices() predicate.OrgProduct

HasOrgPrices applies the HasEdge predicate on the "org_prices" edge.

func HasOrgPricesWith added in v0.19.0

func HasOrgPricesWith(preds ...predicate.OrgPrice) predicate.OrgProduct

HasOrgPricesWith applies the HasEdge predicate on the "org_prices" edge with a given conditions (other predicates).

func HasOrgSubscription

func HasOrgSubscription() predicate.OrgProduct

HasOrgSubscription applies the HasEdge predicate on the "org_subscription" edge.

func HasOrgSubscriptionWith

func HasOrgSubscriptionWith(preds ...predicate.OrgSubscription) predicate.OrgProduct

HasOrgSubscriptionWith applies the HasEdge predicate on the "org_subscription" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.OrgProduct

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.OrgProduct

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.OrgProduct

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.OrgProduct

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.OrgProduct

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.OrgProduct

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.OrgProduct

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.OrgProduct

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.OrgProduct

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.OrgProduct

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.OrgProduct

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.OrgProduct

IDNotIn applies the NotIn predicate on the ID field.

func Module

func Module(v string) predicate.OrgProduct

Module applies equality check predicate on the "module" field. It's identical to ModuleEQ.

func ModuleContains

func ModuleContains(v string) predicate.OrgProduct

ModuleContains applies the Contains predicate on the "module" field.

func ModuleContainsFold

func ModuleContainsFold(v string) predicate.OrgProduct

ModuleContainsFold applies the ContainsFold predicate on the "module" field.

func ModuleEQ

func ModuleEQ(v string) predicate.OrgProduct

ModuleEQ applies the EQ predicate on the "module" field.

func ModuleEqualFold

func ModuleEqualFold(v string) predicate.OrgProduct

ModuleEqualFold applies the EqualFold predicate on the "module" field.

func ModuleGT

func ModuleGT(v string) predicate.OrgProduct

ModuleGT applies the GT predicate on the "module" field.

func ModuleGTE

func ModuleGTE(v string) predicate.OrgProduct

ModuleGTE applies the GTE predicate on the "module" field.

func ModuleHasPrefix

func ModuleHasPrefix(v string) predicate.OrgProduct

ModuleHasPrefix applies the HasPrefix predicate on the "module" field.

func ModuleHasSuffix

func ModuleHasSuffix(v string) predicate.OrgProduct

ModuleHasSuffix applies the HasSuffix predicate on the "module" field.

func ModuleIn

func ModuleIn(vs ...string) predicate.OrgProduct

ModuleIn applies the In predicate on the "module" field.

func ModuleLT

func ModuleLT(v string) predicate.OrgProduct

ModuleLT applies the LT predicate on the "module" field.

func ModuleLTE

func ModuleLTE(v string) predicate.OrgProduct

ModuleLTE applies the LTE predicate on the "module" field.

func ModuleNEQ

func ModuleNEQ(v string) predicate.OrgProduct

ModuleNEQ applies the NEQ predicate on the "module" field.

func ModuleNotIn

func ModuleNotIn(vs ...string) predicate.OrgProduct

ModuleNotIn applies the NotIn predicate on the "module" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OrgProduct) predicate.OrgProduct

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.OrgProduct

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.OrgProduct

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.OrgProduct

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.OrgProduct

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.OrgProduct

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.OrgProduct

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.OrgProduct

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.OrgProduct

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.OrgProduct

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.OrgProduct

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.OrgProduct

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.OrgProduct

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.OrgProduct

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.OrgProduct

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.OrgProduct

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.OrgProduct

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func PriceID added in v0.19.0

func PriceID(v string) predicate.OrgProduct

PriceID applies equality check predicate on the "price_id" field. It's identical to PriceIDEQ.

func PriceIDContains added in v0.19.0

func PriceIDContains(v string) predicate.OrgProduct

PriceIDContains applies the Contains predicate on the "price_id" field.

func PriceIDContainsFold added in v0.19.0

func PriceIDContainsFold(v string) predicate.OrgProduct

PriceIDContainsFold applies the ContainsFold predicate on the "price_id" field.

func PriceIDEQ added in v0.19.0

func PriceIDEQ(v string) predicate.OrgProduct

PriceIDEQ applies the EQ predicate on the "price_id" field.

func PriceIDEqualFold added in v0.19.0

func PriceIDEqualFold(v string) predicate.OrgProduct

PriceIDEqualFold applies the EqualFold predicate on the "price_id" field.

func PriceIDGT added in v0.19.0

func PriceIDGT(v string) predicate.OrgProduct

PriceIDGT applies the GT predicate on the "price_id" field.

func PriceIDGTE added in v0.19.0

func PriceIDGTE(v string) predicate.OrgProduct

PriceIDGTE applies the GTE predicate on the "price_id" field.

func PriceIDHasPrefix added in v0.19.0

func PriceIDHasPrefix(v string) predicate.OrgProduct

PriceIDHasPrefix applies the HasPrefix predicate on the "price_id" field.

func PriceIDHasSuffix added in v0.19.0

func PriceIDHasSuffix(v string) predicate.OrgProduct

PriceIDHasSuffix applies the HasSuffix predicate on the "price_id" field.

func PriceIDIn added in v0.19.0

func PriceIDIn(vs ...string) predicate.OrgProduct

PriceIDIn applies the In predicate on the "price_id" field.

func PriceIDIsNil added in v0.19.0

func PriceIDIsNil() predicate.OrgProduct

PriceIDIsNil applies the IsNil predicate on the "price_id" field.

func PriceIDLT added in v0.19.0

func PriceIDLT(v string) predicate.OrgProduct

PriceIDLT applies the LT predicate on the "price_id" field.

func PriceIDLTE added in v0.19.0

func PriceIDLTE(v string) predicate.OrgProduct

PriceIDLTE applies the LTE predicate on the "price_id" field.

func PriceIDNEQ added in v0.19.0

func PriceIDNEQ(v string) predicate.OrgProduct

PriceIDNEQ applies the NEQ predicate on the "price_id" field.

func PriceIDNotIn added in v0.19.0

func PriceIDNotIn(vs ...string) predicate.OrgProduct

PriceIDNotIn applies the NotIn predicate on the "price_id" field.

func PriceIDNotNil added in v0.19.0

func PriceIDNotNil() predicate.OrgProduct

PriceIDNotNil applies the NotNil predicate on the "price_id" field.

func Status

func Status(v string) predicate.OrgProduct

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.OrgProduct

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.OrgProduct

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.OrgProduct

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.OrgProduct

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.OrgProduct

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.OrgProduct

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.OrgProduct

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.OrgProduct

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.OrgProduct

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.OrgProduct

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.OrgProduct

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.OrgProduct

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.OrgProduct

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.OrgProduct

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.OrgProduct

StatusNotNil applies the NotNil predicate on the "status" field.

func StripeProductID

func StripeProductID(v string) predicate.OrgProduct

StripeProductID applies equality check predicate on the "stripe_product_id" field. It's identical to StripeProductIDEQ.

func StripeProductIDContains

func StripeProductIDContains(v string) predicate.OrgProduct

StripeProductIDContains applies the Contains predicate on the "stripe_product_id" field.

func StripeProductIDContainsFold

func StripeProductIDContainsFold(v string) predicate.OrgProduct

StripeProductIDContainsFold applies the ContainsFold predicate on the "stripe_product_id" field.

func StripeProductIDEQ

func StripeProductIDEQ(v string) predicate.OrgProduct

StripeProductIDEQ applies the EQ predicate on the "stripe_product_id" field.

func StripeProductIDEqualFold

func StripeProductIDEqualFold(v string) predicate.OrgProduct

StripeProductIDEqualFold applies the EqualFold predicate on the "stripe_product_id" field.

func StripeProductIDGT

func StripeProductIDGT(v string) predicate.OrgProduct

StripeProductIDGT applies the GT predicate on the "stripe_product_id" field.

func StripeProductIDGTE

func StripeProductIDGTE(v string) predicate.OrgProduct

StripeProductIDGTE applies the GTE predicate on the "stripe_product_id" field.

func StripeProductIDHasPrefix

func StripeProductIDHasPrefix(v string) predicate.OrgProduct

StripeProductIDHasPrefix applies the HasPrefix predicate on the "stripe_product_id" field.

func StripeProductIDHasSuffix

func StripeProductIDHasSuffix(v string) predicate.OrgProduct

StripeProductIDHasSuffix applies the HasSuffix predicate on the "stripe_product_id" field.

func StripeProductIDIn

func StripeProductIDIn(vs ...string) predicate.OrgProduct

StripeProductIDIn applies the In predicate on the "stripe_product_id" field.

func StripeProductIDIsNil

func StripeProductIDIsNil() predicate.OrgProduct

StripeProductIDIsNil applies the IsNil predicate on the "stripe_product_id" field.

func StripeProductIDLT

func StripeProductIDLT(v string) predicate.OrgProduct

StripeProductIDLT applies the LT predicate on the "stripe_product_id" field.

func StripeProductIDLTE

func StripeProductIDLTE(v string) predicate.OrgProduct

StripeProductIDLTE applies the LTE predicate on the "stripe_product_id" field.

func StripeProductIDNEQ

func StripeProductIDNEQ(v string) predicate.OrgProduct

StripeProductIDNEQ applies the NEQ predicate on the "stripe_product_id" field.

func StripeProductIDNotIn

func StripeProductIDNotIn(vs ...string) predicate.OrgProduct

StripeProductIDNotIn applies the NotIn predicate on the "stripe_product_id" field.

func StripeProductIDNotNil

func StripeProductIDNotNil() predicate.OrgProduct

StripeProductIDNotNil applies the NotNil predicate on the "stripe_product_id" field.

func SubscriptionID

func SubscriptionID(v string) predicate.OrgProduct

SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.

func SubscriptionIDContains

func SubscriptionIDContains(v string) predicate.OrgProduct

SubscriptionIDContains applies the Contains predicate on the "subscription_id" field.

func SubscriptionIDContainsFold

func SubscriptionIDContainsFold(v string) predicate.OrgProduct

SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field.

func SubscriptionIDEQ

func SubscriptionIDEQ(v string) predicate.OrgProduct

SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.

func SubscriptionIDEqualFold

func SubscriptionIDEqualFold(v string) predicate.OrgProduct

SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field.

func SubscriptionIDGT

func SubscriptionIDGT(v string) predicate.OrgProduct

SubscriptionIDGT applies the GT predicate on the "subscription_id" field.

func SubscriptionIDGTE

func SubscriptionIDGTE(v string) predicate.OrgProduct

SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field.

func SubscriptionIDHasPrefix

func SubscriptionIDHasPrefix(v string) predicate.OrgProduct

SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field.

func SubscriptionIDHasSuffix

func SubscriptionIDHasSuffix(v string) predicate.OrgProduct

SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field.

func SubscriptionIDIn

func SubscriptionIDIn(vs ...string) predicate.OrgProduct

SubscriptionIDIn applies the In predicate on the "subscription_id" field.

func SubscriptionIDIsNil

func SubscriptionIDIsNil() predicate.OrgProduct

SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field.

func SubscriptionIDLT

func SubscriptionIDLT(v string) predicate.OrgProduct

SubscriptionIDLT applies the LT predicate on the "subscription_id" field.

func SubscriptionIDLTE

func SubscriptionIDLTE(v string) predicate.OrgProduct

SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field.

func SubscriptionIDNEQ

func SubscriptionIDNEQ(v string) predicate.OrgProduct

SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.

func SubscriptionIDNotIn

func SubscriptionIDNotIn(vs ...string) predicate.OrgProduct

SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.

func SubscriptionIDNotNil

func SubscriptionIDNotNil() predicate.OrgProduct

SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field.

func TagsIsNil

func TagsIsNil() predicate.OrgProduct

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.OrgProduct

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OrgProduct

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OrgProduct

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OrgProduct

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OrgProduct

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.OrgProduct

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.OrgProduct

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OrgProduct

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OrgProduct

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OrgProduct

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.OrgProduct

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.OrgProduct

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.OrgProduct

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.OrgProduct

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.OrgProduct

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.OrgProduct

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.OrgProduct

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.OrgProduct

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.OrgProduct

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.OrgProduct

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.OrgProduct

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.OrgProduct

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.OrgProduct

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.OrgProduct

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.OrgProduct

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.OrgProduct

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.OrgProduct

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.OrgProduct

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OrgProduct queries.

func ByActive

func ByActive(opts ...sql.OrderTermOption) OrderOption

ByActive orders the results by the active field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption

ByDeletedBy orders the results by the deleted_by field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByModule

func ByModule(opts ...sql.OrderTermOption) OrderOption

ByModule orders the results by the module field.

func ByOrgModules added in v0.19.0

func ByOrgModules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgModules orders the results by org_modules terms.

func ByOrgModulesCount added in v0.19.0

func ByOrgModulesCount(opts ...sql.OrderTermOption) OrderOption

ByOrgModulesCount orders the results by org_modules count.

func ByOrgPrices added in v0.19.0

func ByOrgPrices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgPrices orders the results by org_prices terms.

func ByOrgPricesCount added in v0.19.0

func ByOrgPricesCount(opts ...sql.OrderTermOption) OrderOption

ByOrgPricesCount orders the results by org_prices count.

func ByOrgSubscriptionField

func ByOrgSubscriptionField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrgSubscriptionField orders the results by org_subscription field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByOwnerID

func ByOwnerID(opts ...sql.OrderTermOption) OrderOption

ByOwnerID orders the results by the owner_id field.

func ByPriceID added in v0.19.0

func ByPriceID(opts ...sql.OrderTermOption) OrderOption

ByPriceID orders the results by the price_id field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByStripeProductID

func ByStripeProductID(opts ...sql.OrderTermOption) OrderOption

ByStripeProductID orders the results by the stripe_product_id field.

func BySubscriptionID

func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption

BySubscriptionID orders the results by the subscription_id field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL