orgsubscription

package
v0.45.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orgsubscription type in the database.
	Label = "org_subscription"
	// 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"
	// FieldStripeSubscriptionID holds the string denoting the stripe_subscription_id field in the database.
	FieldStripeSubscriptionID = "stripe_subscription_id"
	// FieldStripeSubscriptionStatus holds the string denoting the stripe_subscription_status field in the database.
	FieldStripeSubscriptionStatus = "stripe_subscription_status"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldTrialExpiresAt holds the string denoting the trial_expires_at field in the database.
	FieldTrialExpiresAt = "trial_expires_at"
	// FieldDaysUntilDue holds the string denoting the days_until_due field in the database.
	FieldDaysUntilDue = "days_until_due"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// EdgeModules holds the string denoting the modules edge name in mutations.
	EdgeModules = "modules"
	// EdgeProducts holds the string denoting the products edge name in mutations.
	EdgeProducts = "products"
	// EdgePrices holds the string denoting the prices edge name in mutations.
	EdgePrices = "prices"
	// Table holds the table name of the orgsubscription in the database.
	Table = "org_subscriptions"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "org_subscriptions"
	// 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"
	// EventsTable is the table that holds the events relation/edge. The primary key declared below.
	EventsTable = "org_subscription_events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// ModulesTable is the table that holds the modules relation/edge.
	ModulesTable = "org_modules"
	// ModulesInverseTable is the table name for the OrgModule entity.
	// It exists in this package in order to avoid circular dependency with the "orgmodule" package.
	ModulesInverseTable = "org_modules"
	// ModulesColumn is the table column denoting the modules relation/edge.
	ModulesColumn = "subscription_id"
	// ProductsTable is the table that holds the products relation/edge.
	ProductsTable = "org_products"
	// ProductsInverseTable is the table name for the OrgProduct entity.
	// It exists in this package in order to avoid circular dependency with the "orgproduct" package.
	ProductsInverseTable = "org_products"
	// ProductsColumn is the table column denoting the products relation/edge.
	ProductsColumn = "subscription_id"
	// PricesTable is the table that holds the prices relation/edge.
	PricesTable = "org_prices"
	// PricesInverseTable is the table name for the OrgPrice entity.
	// It exists in this package in order to avoid circular dependency with the "orgprice" package.
	PricesInverseTable = "org_prices"
	// PricesColumn is the table column denoting the prices relation/edge.
	PricesColumn = "subscription_id"
)

Variables

View Source
var (
	Hooks        [4]ent.Hook
	Interceptors [4]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 orgsubscription fields.

View Source
var (
	// EventsPrimaryKey and EventsColumn2 are the table columns denoting the
	// primary key for the events relation (M2M).
	EventsPrimaryKey = []string{"org_subscription_id", "event_id"}
)

Functions

func Active

func Active(v bool) predicate.OrgSubscription

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

func ActiveEQ

func ActiveEQ(v bool) predicate.OrgSubscription

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

func ActiveNEQ

func ActiveNEQ(v bool) predicate.OrgSubscription

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

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.OrgSubscription

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OrgSubscription

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OrgSubscription

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OrgSubscription

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.OrgSubscription

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OrgSubscription

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OrgSubscription

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OrgSubscription

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.OrgSubscription

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

func CreatedBy

func CreatedBy(v string) predicate.OrgSubscription

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

func CreatedByContains

func CreatedByContains(v string) predicate.OrgSubscription

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.OrgSubscription

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.OrgSubscription

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.OrgSubscription

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

func CreatedByGT

func CreatedByGT(v string) predicate.OrgSubscription

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.OrgSubscription

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.OrgSubscription

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.OrgSubscription

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.OrgSubscription

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

func CreatedByLT

func CreatedByLT(v string) predicate.OrgSubscription

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.OrgSubscription

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.OrgSubscription

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.OrgSubscription

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

func DaysUntilDue added in v0.7.3

func DaysUntilDue(v string) predicate.OrgSubscription

DaysUntilDue applies equality check predicate on the "days_until_due" field. It's identical to DaysUntilDueEQ.

func DaysUntilDueContains added in v0.7.3

func DaysUntilDueContains(v string) predicate.OrgSubscription

DaysUntilDueContains applies the Contains predicate on the "days_until_due" field.

func DaysUntilDueContainsFold added in v0.7.3

func DaysUntilDueContainsFold(v string) predicate.OrgSubscription

DaysUntilDueContainsFold applies the ContainsFold predicate on the "days_until_due" field.

func DaysUntilDueEQ added in v0.7.3

func DaysUntilDueEQ(v string) predicate.OrgSubscription

DaysUntilDueEQ applies the EQ predicate on the "days_until_due" field.

func DaysUntilDueEqualFold added in v0.7.3

func DaysUntilDueEqualFold(v string) predicate.OrgSubscription

DaysUntilDueEqualFold applies the EqualFold predicate on the "days_until_due" field.

func DaysUntilDueGT added in v0.7.3

func DaysUntilDueGT(v string) predicate.OrgSubscription

DaysUntilDueGT applies the GT predicate on the "days_until_due" field.

func DaysUntilDueGTE added in v0.7.3

func DaysUntilDueGTE(v string) predicate.OrgSubscription

DaysUntilDueGTE applies the GTE predicate on the "days_until_due" field.

func DaysUntilDueHasPrefix added in v0.7.3

func DaysUntilDueHasPrefix(v string) predicate.OrgSubscription

DaysUntilDueHasPrefix applies the HasPrefix predicate on the "days_until_due" field.

func DaysUntilDueHasSuffix added in v0.7.3

func DaysUntilDueHasSuffix(v string) predicate.OrgSubscription

DaysUntilDueHasSuffix applies the HasSuffix predicate on the "days_until_due" field.

func DaysUntilDueIn added in v0.7.3

func DaysUntilDueIn(vs ...string) predicate.OrgSubscription

DaysUntilDueIn applies the In predicate on the "days_until_due" field.

func DaysUntilDueIsNil added in v0.7.3

func DaysUntilDueIsNil() predicate.OrgSubscription

DaysUntilDueIsNil applies the IsNil predicate on the "days_until_due" field.

func DaysUntilDueLT added in v0.7.3

func DaysUntilDueLT(v string) predicate.OrgSubscription

DaysUntilDueLT applies the LT predicate on the "days_until_due" field.

func DaysUntilDueLTE added in v0.7.3

func DaysUntilDueLTE(v string) predicate.OrgSubscription

DaysUntilDueLTE applies the LTE predicate on the "days_until_due" field.

func DaysUntilDueNEQ added in v0.7.3

func DaysUntilDueNEQ(v string) predicate.OrgSubscription

DaysUntilDueNEQ applies the NEQ predicate on the "days_until_due" field.

func DaysUntilDueNotIn added in v0.7.3

func DaysUntilDueNotIn(vs ...string) predicate.OrgSubscription

DaysUntilDueNotIn applies the NotIn predicate on the "days_until_due" field.

func DaysUntilDueNotNil added in v0.7.3

func DaysUntilDueNotNil() predicate.OrgSubscription

DaysUntilDueNotNil applies the NotNil predicate on the "days_until_due" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.OrgSubscription

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.OrgSubscription

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.OrgSubscription

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.OrgSubscription

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.OrgSubscription

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.OrgSubscription

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.OrgSubscription

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.OrgSubscription

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.OrgSubscription

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

func DeletedBy

func DeletedBy(v string) predicate.OrgSubscription

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

func DeletedByContains

func DeletedByContains(v string) predicate.OrgSubscription

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

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.OrgSubscription

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

func DeletedByEQ

func DeletedByEQ(v string) predicate.OrgSubscription

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

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.OrgSubscription

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

func DeletedByGT

func DeletedByGT(v string) predicate.OrgSubscription

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

func DeletedByGTE

func DeletedByGTE(v string) predicate.OrgSubscription

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

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.OrgSubscription

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

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.OrgSubscription

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

func DeletedByIn

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

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

func DeletedByIsNil

func DeletedByIsNil() predicate.OrgSubscription

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

func DeletedByLT

func DeletedByLT(v string) predicate.OrgSubscription

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

func DeletedByLTE

func DeletedByLTE(v string) predicate.OrgSubscription

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

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.OrgSubscription

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

func DeletedByNotIn

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

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

func DeletedByNotNil

func DeletedByNotNil() predicate.OrgSubscription

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.OrgSubscription

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.OrgSubscription

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.OrgSubscription

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.OrgSubscription

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.OrgSubscription

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.OrgSubscription

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.OrgSubscription

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.OrgSubscription

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.OrgSubscription

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.OrgSubscription

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.OrgSubscription

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasEvents added in v0.7.3

func HasEvents() predicate.OrgSubscription

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith added in v0.7.3

func HasEventsWith(preds ...predicate.Event) predicate.OrgSubscription

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

func HasModules added in v0.18.4

func HasModules() predicate.OrgSubscription

HasModules applies the HasEdge predicate on the "modules" edge.

func HasModulesWith added in v0.18.4

func HasModulesWith(preds ...predicate.OrgModule) predicate.OrgSubscription

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

func HasOwner

func HasOwner() predicate.OrgSubscription

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

func HasOwnerWith

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

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

func HasPrices added in v0.19.0

func HasPrices() predicate.OrgSubscription

HasPrices applies the HasEdge predicate on the "prices" edge.

func HasPricesWith added in v0.19.0

func HasPricesWith(preds ...predicate.OrgPrice) predicate.OrgSubscription

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

func HasProducts added in v0.18.4

func HasProducts() predicate.OrgSubscription

HasProducts applies the HasEdge predicate on the "products" edge.

func HasProductsWith added in v0.18.4

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

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.OrgSubscription

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.OrgSubscription

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.OrgSubscription

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

func OwnerIDContains

func OwnerIDContains(v string) predicate.OrgSubscription

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

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.OrgSubscription

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

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.OrgSubscription

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

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.OrgSubscription

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

func OwnerIDGT

func OwnerIDGT(v string) predicate.OrgSubscription

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

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.OrgSubscription

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

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.OrgSubscription

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

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.OrgSubscription

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

func OwnerIDIn

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

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

func OwnerIDIsNil

func OwnerIDIsNil() predicate.OrgSubscription

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

func OwnerIDLT

func OwnerIDLT(v string) predicate.OrgSubscription

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

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.OrgSubscription

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

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.OrgSubscription

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

func OwnerIDNotIn

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

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

func OwnerIDNotNil

func OwnerIDNotNil() predicate.OrgSubscription

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

func StripeSubscriptionID

func StripeSubscriptionID(v string) predicate.OrgSubscription

StripeSubscriptionID applies equality check predicate on the "stripe_subscription_id" field. It's identical to StripeSubscriptionIDEQ.

func StripeSubscriptionIDContains

func StripeSubscriptionIDContains(v string) predicate.OrgSubscription

StripeSubscriptionIDContains applies the Contains predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDContainsFold

func StripeSubscriptionIDContainsFold(v string) predicate.OrgSubscription

StripeSubscriptionIDContainsFold applies the ContainsFold predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDEQ

func StripeSubscriptionIDEQ(v string) predicate.OrgSubscription

StripeSubscriptionIDEQ applies the EQ predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDEqualFold

func StripeSubscriptionIDEqualFold(v string) predicate.OrgSubscription

StripeSubscriptionIDEqualFold applies the EqualFold predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDGT

func StripeSubscriptionIDGT(v string) predicate.OrgSubscription

StripeSubscriptionIDGT applies the GT predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDGTE

func StripeSubscriptionIDGTE(v string) predicate.OrgSubscription

StripeSubscriptionIDGTE applies the GTE predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDHasPrefix

func StripeSubscriptionIDHasPrefix(v string) predicate.OrgSubscription

StripeSubscriptionIDHasPrefix applies the HasPrefix predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDHasSuffix

func StripeSubscriptionIDHasSuffix(v string) predicate.OrgSubscription

StripeSubscriptionIDHasSuffix applies the HasSuffix predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDIn

func StripeSubscriptionIDIn(vs ...string) predicate.OrgSubscription

StripeSubscriptionIDIn applies the In predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDIsNil

func StripeSubscriptionIDIsNil() predicate.OrgSubscription

StripeSubscriptionIDIsNil applies the IsNil predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDLT

func StripeSubscriptionIDLT(v string) predicate.OrgSubscription

StripeSubscriptionIDLT applies the LT predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDLTE

func StripeSubscriptionIDLTE(v string) predicate.OrgSubscription

StripeSubscriptionIDLTE applies the LTE predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDNEQ

func StripeSubscriptionIDNEQ(v string) predicate.OrgSubscription

StripeSubscriptionIDNEQ applies the NEQ predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDNotIn

func StripeSubscriptionIDNotIn(vs ...string) predicate.OrgSubscription

StripeSubscriptionIDNotIn applies the NotIn predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDNotNil

func StripeSubscriptionIDNotNil() predicate.OrgSubscription

StripeSubscriptionIDNotNil applies the NotNil predicate on the "stripe_subscription_id" field.

func StripeSubscriptionStatus

func StripeSubscriptionStatus(v string) predicate.OrgSubscription

StripeSubscriptionStatus applies equality check predicate on the "stripe_subscription_status" field. It's identical to StripeSubscriptionStatusEQ.

func StripeSubscriptionStatusContains

func StripeSubscriptionStatusContains(v string) predicate.OrgSubscription

StripeSubscriptionStatusContains applies the Contains predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusContainsFold

func StripeSubscriptionStatusContainsFold(v string) predicate.OrgSubscription

StripeSubscriptionStatusContainsFold applies the ContainsFold predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusEQ

func StripeSubscriptionStatusEQ(v string) predicate.OrgSubscription

StripeSubscriptionStatusEQ applies the EQ predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusEqualFold

func StripeSubscriptionStatusEqualFold(v string) predicate.OrgSubscription

StripeSubscriptionStatusEqualFold applies the EqualFold predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusGT

func StripeSubscriptionStatusGT(v string) predicate.OrgSubscription

StripeSubscriptionStatusGT applies the GT predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusGTE

func StripeSubscriptionStatusGTE(v string) predicate.OrgSubscription

StripeSubscriptionStatusGTE applies the GTE predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusHasPrefix

func StripeSubscriptionStatusHasPrefix(v string) predicate.OrgSubscription

StripeSubscriptionStatusHasPrefix applies the HasPrefix predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusHasSuffix

func StripeSubscriptionStatusHasSuffix(v string) predicate.OrgSubscription

StripeSubscriptionStatusHasSuffix applies the HasSuffix predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusIn

func StripeSubscriptionStatusIn(vs ...string) predicate.OrgSubscription

StripeSubscriptionStatusIn applies the In predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusIsNil

func StripeSubscriptionStatusIsNil() predicate.OrgSubscription

StripeSubscriptionStatusIsNil applies the IsNil predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusLT

func StripeSubscriptionStatusLT(v string) predicate.OrgSubscription

StripeSubscriptionStatusLT applies the LT predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusLTE

func StripeSubscriptionStatusLTE(v string) predicate.OrgSubscription

StripeSubscriptionStatusLTE applies the LTE predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusNEQ

func StripeSubscriptionStatusNEQ(v string) predicate.OrgSubscription

StripeSubscriptionStatusNEQ applies the NEQ predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusNotIn

func StripeSubscriptionStatusNotIn(vs ...string) predicate.OrgSubscription

StripeSubscriptionStatusNotIn applies the NotIn predicate on the "stripe_subscription_status" field.

func StripeSubscriptionStatusNotNil

func StripeSubscriptionStatusNotNil() predicate.OrgSubscription

StripeSubscriptionStatusNotNil applies the NotNil predicate on the "stripe_subscription_status" field.

func TagsIsNil

func TagsIsNil() predicate.OrgSubscription

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

func TagsNotNil

func TagsNotNil() predicate.OrgSubscription

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

func TrialExpiresAt added in v0.7.3

func TrialExpiresAt(v time.Time) predicate.OrgSubscription

TrialExpiresAt applies equality check predicate on the "trial_expires_at" field. It's identical to TrialExpiresAtEQ.

func TrialExpiresAtEQ added in v0.7.3

func TrialExpiresAtEQ(v time.Time) predicate.OrgSubscription

TrialExpiresAtEQ applies the EQ predicate on the "trial_expires_at" field.

func TrialExpiresAtGT added in v0.7.3

func TrialExpiresAtGT(v time.Time) predicate.OrgSubscription

TrialExpiresAtGT applies the GT predicate on the "trial_expires_at" field.

func TrialExpiresAtGTE added in v0.7.3

func TrialExpiresAtGTE(v time.Time) predicate.OrgSubscription

TrialExpiresAtGTE applies the GTE predicate on the "trial_expires_at" field.

func TrialExpiresAtIn added in v0.7.3

func TrialExpiresAtIn(vs ...time.Time) predicate.OrgSubscription

TrialExpiresAtIn applies the In predicate on the "trial_expires_at" field.

func TrialExpiresAtIsNil added in v0.7.3

func TrialExpiresAtIsNil() predicate.OrgSubscription

TrialExpiresAtIsNil applies the IsNil predicate on the "trial_expires_at" field.

func TrialExpiresAtLT added in v0.7.3

func TrialExpiresAtLT(v time.Time) predicate.OrgSubscription

TrialExpiresAtLT applies the LT predicate on the "trial_expires_at" field.

func TrialExpiresAtLTE added in v0.7.3

func TrialExpiresAtLTE(v time.Time) predicate.OrgSubscription

TrialExpiresAtLTE applies the LTE predicate on the "trial_expires_at" field.

func TrialExpiresAtNEQ added in v0.7.3

func TrialExpiresAtNEQ(v time.Time) predicate.OrgSubscription

TrialExpiresAtNEQ applies the NEQ predicate on the "trial_expires_at" field.

func TrialExpiresAtNotIn added in v0.7.3

func TrialExpiresAtNotIn(vs ...time.Time) predicate.OrgSubscription

TrialExpiresAtNotIn applies the NotIn predicate on the "trial_expires_at" field.

func TrialExpiresAtNotNil added in v0.7.3

func TrialExpiresAtNotNil() predicate.OrgSubscription

TrialExpiresAtNotNil applies the NotNil predicate on the "trial_expires_at" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OrgSubscription

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OrgSubscription

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OrgSubscription

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OrgSubscription

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.OrgSubscription

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OrgSubscription

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OrgSubscription

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OrgSubscription

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.OrgSubscription

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

func UpdatedBy

func UpdatedBy(v string) predicate.OrgSubscription

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.OrgSubscription

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.OrgSubscription

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.OrgSubscription

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.OrgSubscription

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.OrgSubscription

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.OrgSubscription

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.OrgSubscription

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.OrgSubscription

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.OrgSubscription

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.OrgSubscription

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.OrgSubscription

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.OrgSubscription

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.OrgSubscription

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 OrgSubscription 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 ByDaysUntilDue added in v0.7.3

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

ByDaysUntilDue orders the results by the days_until_due 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 ByEvents added in v0.7.3

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

ByEvents orders the results by events terms.

func ByEventsCount added in v0.7.3

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

ByEventsCount orders the results by events count.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByModules added in v0.18.4

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

ByModules orders the results by modules terms.

func ByModulesCount added in v0.18.4

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

ByModulesCount orders the results by modules count.

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 ByPrices added in v0.19.0

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

ByPrices orders the results by prices terms.

func ByPricesCount added in v0.19.0

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

ByPricesCount orders the results by prices count.

func ByProducts added in v0.18.4

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

ByProducts orders the results by products terms.

func ByProductsCount added in v0.18.4

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

ByProductsCount orders the results by products count.

func ByStripeSubscriptionID

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

ByStripeSubscriptionID orders the results by the stripe_subscription_id field.

func ByStripeSubscriptionStatus

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

ByStripeSubscriptionStatus orders the results by the stripe_subscription_status field.

func ByTrialExpiresAt added in v0.7.3

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

ByTrialExpiresAt orders the results by the trial_expires_at 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