entitlement

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the entitlement type in the database.
	Label = "entitlement"
	// 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"
	// FieldTier holds the string denoting the tier field in the database.
	FieldTier = "tier"
	// FieldExternalCustomerID holds the string denoting the external_customer_id field in the database.
	FieldExternalCustomerID = "external_customer_id"
	// FieldExternalSubscriptionID holds the string denoting the external_subscription_id field in the database.
	FieldExternalSubscriptionID = "external_subscription_id"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldUpgradedAt holds the string denoting the upgraded_at field in the database.
	FieldUpgradedAt = "upgraded_at"
	// FieldUpgradedTier holds the string denoting the upgraded_tier field in the database.
	FieldUpgradedTier = "upgraded_tier"
	// FieldDowngradedAt holds the string denoting the downgraded_at field in the database.
	FieldDowngradedAt = "downgraded_at"
	// FieldDowngradedTier holds the string denoting the downgraded_tier field in the database.
	FieldDowngradedTier = "downgraded_tier"
	// FieldCancelled holds the string denoting the cancelled field in the database.
	FieldCancelled = "cancelled"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the entitlement in the database.
	Table = "entitlements"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "entitlements"
	// 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 = "organization_entitlements"
)
View Source
const DefaultTier = TierFree

TierFree is the default value of the Tier enum.

Variables

View Source
var (
	Hooks [1]ent.Hook
	// 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
	// DefaultCancelled holds the default value on creation for the "cancelled" field.
	DefaultCancelled 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/datumforge/datum/internal/ent/generated/runtime"

Columns holds all SQL columns for entitlement fields.

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

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

Functions

func And

func And(predicates ...predicate.Entitlement) predicate.Entitlement

And groups predicates with the AND operator between them.

func Cancelled

func Cancelled(v bool) predicate.Entitlement

Cancelled applies equality check predicate on the "cancelled" field. It's identical to CancelledEQ.

func CancelledEQ

func CancelledEQ(v bool) predicate.Entitlement

CancelledEQ applies the EQ predicate on the "cancelled" field.

func CancelledNEQ

func CancelledNEQ(v bool) predicate.Entitlement

CancelledNEQ applies the NEQ predicate on the "cancelled" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Entitlement

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Entitlement

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Entitlement

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Entitlement

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Entitlement

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Entitlement

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Entitlement

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.Entitlement

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

func CreatedByContains

func CreatedByContains(v string) predicate.Entitlement

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Entitlement

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.Entitlement

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Entitlement

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

func CreatedByGT

func CreatedByGT(v string) predicate.Entitlement

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.Entitlement

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Entitlement

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Entitlement

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.Entitlement

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

func CreatedByLT

func CreatedByLT(v string) predicate.Entitlement

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.Entitlement

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Entitlement

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.Entitlement

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

func DowngradedAt added in v0.1.1

func DowngradedAt(v time.Time) predicate.Entitlement

DowngradedAt applies equality check predicate on the "downgraded_at" field. It's identical to DowngradedAtEQ.

func DowngradedAtEQ added in v0.1.1

func DowngradedAtEQ(v time.Time) predicate.Entitlement

DowngradedAtEQ applies the EQ predicate on the "downgraded_at" field.

func DowngradedAtGT added in v0.1.1

func DowngradedAtGT(v time.Time) predicate.Entitlement

DowngradedAtGT applies the GT predicate on the "downgraded_at" field.

func DowngradedAtGTE added in v0.1.1

func DowngradedAtGTE(v time.Time) predicate.Entitlement

DowngradedAtGTE applies the GTE predicate on the "downgraded_at" field.

func DowngradedAtIn added in v0.1.1

func DowngradedAtIn(vs ...time.Time) predicate.Entitlement

DowngradedAtIn applies the In predicate on the "downgraded_at" field.

func DowngradedAtIsNil added in v0.1.1

func DowngradedAtIsNil() predicate.Entitlement

DowngradedAtIsNil applies the IsNil predicate on the "downgraded_at" field.

func DowngradedAtLT added in v0.1.1

func DowngradedAtLT(v time.Time) predicate.Entitlement

DowngradedAtLT applies the LT predicate on the "downgraded_at" field.

func DowngradedAtLTE added in v0.1.1

func DowngradedAtLTE(v time.Time) predicate.Entitlement

DowngradedAtLTE applies the LTE predicate on the "downgraded_at" field.

func DowngradedAtNEQ added in v0.1.1

func DowngradedAtNEQ(v time.Time) predicate.Entitlement

DowngradedAtNEQ applies the NEQ predicate on the "downgraded_at" field.

func DowngradedAtNotIn added in v0.1.1

func DowngradedAtNotIn(vs ...time.Time) predicate.Entitlement

DowngradedAtNotIn applies the NotIn predicate on the "downgraded_at" field.

func DowngradedAtNotNil added in v0.1.1

func DowngradedAtNotNil() predicate.Entitlement

DowngradedAtNotNil applies the NotNil predicate on the "downgraded_at" field.

func DowngradedTier added in v0.1.1

func DowngradedTier(v string) predicate.Entitlement

DowngradedTier applies equality check predicate on the "downgraded_tier" field. It's identical to DowngradedTierEQ.

func DowngradedTierContains added in v0.1.1

func DowngradedTierContains(v string) predicate.Entitlement

DowngradedTierContains applies the Contains predicate on the "downgraded_tier" field.

func DowngradedTierContainsFold added in v0.1.1

func DowngradedTierContainsFold(v string) predicate.Entitlement

DowngradedTierContainsFold applies the ContainsFold predicate on the "downgraded_tier" field.

func DowngradedTierEQ added in v0.1.1

func DowngradedTierEQ(v string) predicate.Entitlement

DowngradedTierEQ applies the EQ predicate on the "downgraded_tier" field.

func DowngradedTierEqualFold added in v0.1.1

func DowngradedTierEqualFold(v string) predicate.Entitlement

DowngradedTierEqualFold applies the EqualFold predicate on the "downgraded_tier" field.

func DowngradedTierGT added in v0.1.1

func DowngradedTierGT(v string) predicate.Entitlement

DowngradedTierGT applies the GT predicate on the "downgraded_tier" field.

func DowngradedTierGTE added in v0.1.1

func DowngradedTierGTE(v string) predicate.Entitlement

DowngradedTierGTE applies the GTE predicate on the "downgraded_tier" field.

func DowngradedTierHasPrefix added in v0.1.1

func DowngradedTierHasPrefix(v string) predicate.Entitlement

DowngradedTierHasPrefix applies the HasPrefix predicate on the "downgraded_tier" field.

func DowngradedTierHasSuffix added in v0.1.1

func DowngradedTierHasSuffix(v string) predicate.Entitlement

DowngradedTierHasSuffix applies the HasSuffix predicate on the "downgraded_tier" field.

func DowngradedTierIn added in v0.1.1

func DowngradedTierIn(vs ...string) predicate.Entitlement

DowngradedTierIn applies the In predicate on the "downgraded_tier" field.

func DowngradedTierIsNil added in v0.1.1

func DowngradedTierIsNil() predicate.Entitlement

DowngradedTierIsNil applies the IsNil predicate on the "downgraded_tier" field.

func DowngradedTierLT added in v0.1.1

func DowngradedTierLT(v string) predicate.Entitlement

DowngradedTierLT applies the LT predicate on the "downgraded_tier" field.

func DowngradedTierLTE added in v0.1.1

func DowngradedTierLTE(v string) predicate.Entitlement

DowngradedTierLTE applies the LTE predicate on the "downgraded_tier" field.

func DowngradedTierNEQ added in v0.1.1

func DowngradedTierNEQ(v string) predicate.Entitlement

DowngradedTierNEQ applies the NEQ predicate on the "downgraded_tier" field.

func DowngradedTierNotIn added in v0.1.1

func DowngradedTierNotIn(vs ...string) predicate.Entitlement

DowngradedTierNotIn applies the NotIn predicate on the "downgraded_tier" field.

func DowngradedTierNotNil added in v0.1.1

func DowngradedTierNotNil() predicate.Entitlement

DowngradedTierNotNil applies the NotNil predicate on the "downgraded_tier" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Entitlement

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Entitlement

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Entitlement

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Entitlement

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

func ExpiresAtIn

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

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

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.Entitlement

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Entitlement

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Entitlement

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Entitlement

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

func ExpiresAtNotIn

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

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

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.Entitlement

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

func ExternalCustomerID

func ExternalCustomerID(v string) predicate.Entitlement

ExternalCustomerID applies equality check predicate on the "external_customer_id" field. It's identical to ExternalCustomerIDEQ.

func ExternalCustomerIDContains

func ExternalCustomerIDContains(v string) predicate.Entitlement

ExternalCustomerIDContains applies the Contains predicate on the "external_customer_id" field.

func ExternalCustomerIDContainsFold

func ExternalCustomerIDContainsFold(v string) predicate.Entitlement

ExternalCustomerIDContainsFold applies the ContainsFold predicate on the "external_customer_id" field.

func ExternalCustomerIDEQ

func ExternalCustomerIDEQ(v string) predicate.Entitlement

ExternalCustomerIDEQ applies the EQ predicate on the "external_customer_id" field.

func ExternalCustomerIDEqualFold

func ExternalCustomerIDEqualFold(v string) predicate.Entitlement

ExternalCustomerIDEqualFold applies the EqualFold predicate on the "external_customer_id" field.

func ExternalCustomerIDGT

func ExternalCustomerIDGT(v string) predicate.Entitlement

ExternalCustomerIDGT applies the GT predicate on the "external_customer_id" field.

func ExternalCustomerIDGTE

func ExternalCustomerIDGTE(v string) predicate.Entitlement

ExternalCustomerIDGTE applies the GTE predicate on the "external_customer_id" field.

func ExternalCustomerIDHasPrefix

func ExternalCustomerIDHasPrefix(v string) predicate.Entitlement

ExternalCustomerIDHasPrefix applies the HasPrefix predicate on the "external_customer_id" field.

func ExternalCustomerIDHasSuffix

func ExternalCustomerIDHasSuffix(v string) predicate.Entitlement

ExternalCustomerIDHasSuffix applies the HasSuffix predicate on the "external_customer_id" field.

func ExternalCustomerIDIn

func ExternalCustomerIDIn(vs ...string) predicate.Entitlement

ExternalCustomerIDIn applies the In predicate on the "external_customer_id" field.

func ExternalCustomerIDIsNil

func ExternalCustomerIDIsNil() predicate.Entitlement

ExternalCustomerIDIsNil applies the IsNil predicate on the "external_customer_id" field.

func ExternalCustomerIDLT

func ExternalCustomerIDLT(v string) predicate.Entitlement

ExternalCustomerIDLT applies the LT predicate on the "external_customer_id" field.

func ExternalCustomerIDLTE

func ExternalCustomerIDLTE(v string) predicate.Entitlement

ExternalCustomerIDLTE applies the LTE predicate on the "external_customer_id" field.

func ExternalCustomerIDNEQ

func ExternalCustomerIDNEQ(v string) predicate.Entitlement

ExternalCustomerIDNEQ applies the NEQ predicate on the "external_customer_id" field.

func ExternalCustomerIDNotIn

func ExternalCustomerIDNotIn(vs ...string) predicate.Entitlement

ExternalCustomerIDNotIn applies the NotIn predicate on the "external_customer_id" field.

func ExternalCustomerIDNotNil

func ExternalCustomerIDNotNil() predicate.Entitlement

ExternalCustomerIDNotNil applies the NotNil predicate on the "external_customer_id" field.

func ExternalSubscriptionID

func ExternalSubscriptionID(v string) predicate.Entitlement

ExternalSubscriptionID applies equality check predicate on the "external_subscription_id" field. It's identical to ExternalSubscriptionIDEQ.

func ExternalSubscriptionIDContains

func ExternalSubscriptionIDContains(v string) predicate.Entitlement

ExternalSubscriptionIDContains applies the Contains predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDContainsFold

func ExternalSubscriptionIDContainsFold(v string) predicate.Entitlement

ExternalSubscriptionIDContainsFold applies the ContainsFold predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDEQ

func ExternalSubscriptionIDEQ(v string) predicate.Entitlement

ExternalSubscriptionIDEQ applies the EQ predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDEqualFold

func ExternalSubscriptionIDEqualFold(v string) predicate.Entitlement

ExternalSubscriptionIDEqualFold applies the EqualFold predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDGT

func ExternalSubscriptionIDGT(v string) predicate.Entitlement

ExternalSubscriptionIDGT applies the GT predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDGTE

func ExternalSubscriptionIDGTE(v string) predicate.Entitlement

ExternalSubscriptionIDGTE applies the GTE predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDHasPrefix

func ExternalSubscriptionIDHasPrefix(v string) predicate.Entitlement

ExternalSubscriptionIDHasPrefix applies the HasPrefix predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDHasSuffix

func ExternalSubscriptionIDHasSuffix(v string) predicate.Entitlement

ExternalSubscriptionIDHasSuffix applies the HasSuffix predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDIn

func ExternalSubscriptionIDIn(vs ...string) predicate.Entitlement

ExternalSubscriptionIDIn applies the In predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDIsNil

func ExternalSubscriptionIDIsNil() predicate.Entitlement

ExternalSubscriptionIDIsNil applies the IsNil predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDLT

func ExternalSubscriptionIDLT(v string) predicate.Entitlement

ExternalSubscriptionIDLT applies the LT predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDLTE

func ExternalSubscriptionIDLTE(v string) predicate.Entitlement

ExternalSubscriptionIDLTE applies the LTE predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDNEQ

func ExternalSubscriptionIDNEQ(v string) predicate.Entitlement

ExternalSubscriptionIDNEQ applies the NEQ predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDNotIn

func ExternalSubscriptionIDNotIn(vs ...string) predicate.Entitlement

ExternalSubscriptionIDNotIn applies the NotIn predicate on the "external_subscription_id" field.

func ExternalSubscriptionIDNotNil

func ExternalSubscriptionIDNotNil() predicate.Entitlement

ExternalSubscriptionIDNotNil applies the NotNil predicate on the "external_subscription_id" field.

func HasOwner

func HasOwner() predicate.Entitlement

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

func HasOwnerWith

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

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.Entitlement

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Entitlement

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Entitlement

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Entitlement

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Entitlement

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Entitlement

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Entitlement

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Entitlement

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Entitlement) predicate.Entitlement

Or groups predicates with the OR operator between them.

func TierEQ

func TierEQ(v Tier) predicate.Entitlement

TierEQ applies the EQ predicate on the "tier" field.

func TierIn

func TierIn(vs ...Tier) predicate.Entitlement

TierIn applies the In predicate on the "tier" field.

func TierNEQ

func TierNEQ(v Tier) predicate.Entitlement

TierNEQ applies the NEQ predicate on the "tier" field.

func TierNotIn

func TierNotIn(vs ...Tier) predicate.Entitlement

TierNotIn applies the NotIn predicate on the "tier" field.

func TierValidator

func TierValidator(t Tier) error

TierValidator is a validator for the "tier" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Entitlement

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Entitlement

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Entitlement

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Entitlement

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Entitlement

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Entitlement

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Entitlement

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v string) predicate.Entitlement

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.Entitlement

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Entitlement

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Entitlement

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Entitlement

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.Entitlement

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Entitlement

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Entitlement

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Entitlement

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Entitlement

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.Entitlement

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Entitlement

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Entitlement

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Entitlement

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

func UpgradedAt added in v0.1.1

func UpgradedAt(v time.Time) predicate.Entitlement

UpgradedAt applies equality check predicate on the "upgraded_at" field. It's identical to UpgradedAtEQ.

func UpgradedAtEQ added in v0.1.1

func UpgradedAtEQ(v time.Time) predicate.Entitlement

UpgradedAtEQ applies the EQ predicate on the "upgraded_at" field.

func UpgradedAtGT added in v0.1.1

func UpgradedAtGT(v time.Time) predicate.Entitlement

UpgradedAtGT applies the GT predicate on the "upgraded_at" field.

func UpgradedAtGTE added in v0.1.1

func UpgradedAtGTE(v time.Time) predicate.Entitlement

UpgradedAtGTE applies the GTE predicate on the "upgraded_at" field.

func UpgradedAtIn added in v0.1.1

func UpgradedAtIn(vs ...time.Time) predicate.Entitlement

UpgradedAtIn applies the In predicate on the "upgraded_at" field.

func UpgradedAtIsNil added in v0.1.1

func UpgradedAtIsNil() predicate.Entitlement

UpgradedAtIsNil applies the IsNil predicate on the "upgraded_at" field.

func UpgradedAtLT added in v0.1.1

func UpgradedAtLT(v time.Time) predicate.Entitlement

UpgradedAtLT applies the LT predicate on the "upgraded_at" field.

func UpgradedAtLTE added in v0.1.1

func UpgradedAtLTE(v time.Time) predicate.Entitlement

UpgradedAtLTE applies the LTE predicate on the "upgraded_at" field.

func UpgradedAtNEQ added in v0.1.1

func UpgradedAtNEQ(v time.Time) predicate.Entitlement

UpgradedAtNEQ applies the NEQ predicate on the "upgraded_at" field.

func UpgradedAtNotIn added in v0.1.1

func UpgradedAtNotIn(vs ...time.Time) predicate.Entitlement

UpgradedAtNotIn applies the NotIn predicate on the "upgraded_at" field.

func UpgradedAtNotNil added in v0.1.1

func UpgradedAtNotNil() predicate.Entitlement

UpgradedAtNotNil applies the NotNil predicate on the "upgraded_at" field.

func UpgradedTier added in v0.1.1

func UpgradedTier(v string) predicate.Entitlement

UpgradedTier applies equality check predicate on the "upgraded_tier" field. It's identical to UpgradedTierEQ.

func UpgradedTierContains added in v0.1.1

func UpgradedTierContains(v string) predicate.Entitlement

UpgradedTierContains applies the Contains predicate on the "upgraded_tier" field.

func UpgradedTierContainsFold added in v0.1.1

func UpgradedTierContainsFold(v string) predicate.Entitlement

UpgradedTierContainsFold applies the ContainsFold predicate on the "upgraded_tier" field.

func UpgradedTierEQ added in v0.1.1

func UpgradedTierEQ(v string) predicate.Entitlement

UpgradedTierEQ applies the EQ predicate on the "upgraded_tier" field.

func UpgradedTierEqualFold added in v0.1.1

func UpgradedTierEqualFold(v string) predicate.Entitlement

UpgradedTierEqualFold applies the EqualFold predicate on the "upgraded_tier" field.

func UpgradedTierGT added in v0.1.1

func UpgradedTierGT(v string) predicate.Entitlement

UpgradedTierGT applies the GT predicate on the "upgraded_tier" field.

func UpgradedTierGTE added in v0.1.1

func UpgradedTierGTE(v string) predicate.Entitlement

UpgradedTierGTE applies the GTE predicate on the "upgraded_tier" field.

func UpgradedTierHasPrefix added in v0.1.1

func UpgradedTierHasPrefix(v string) predicate.Entitlement

UpgradedTierHasPrefix applies the HasPrefix predicate on the "upgraded_tier" field.

func UpgradedTierHasSuffix added in v0.1.1

func UpgradedTierHasSuffix(v string) predicate.Entitlement

UpgradedTierHasSuffix applies the HasSuffix predicate on the "upgraded_tier" field.

func UpgradedTierIn added in v0.1.1

func UpgradedTierIn(vs ...string) predicate.Entitlement

UpgradedTierIn applies the In predicate on the "upgraded_tier" field.

func UpgradedTierIsNil added in v0.1.1

func UpgradedTierIsNil() predicate.Entitlement

UpgradedTierIsNil applies the IsNil predicate on the "upgraded_tier" field.

func UpgradedTierLT added in v0.1.1

func UpgradedTierLT(v string) predicate.Entitlement

UpgradedTierLT applies the LT predicate on the "upgraded_tier" field.

func UpgradedTierLTE added in v0.1.1

func UpgradedTierLTE(v string) predicate.Entitlement

UpgradedTierLTE applies the LTE predicate on the "upgraded_tier" field.

func UpgradedTierNEQ added in v0.1.1

func UpgradedTierNEQ(v string) predicate.Entitlement

UpgradedTierNEQ applies the NEQ predicate on the "upgraded_tier" field.

func UpgradedTierNotIn added in v0.1.1

func UpgradedTierNotIn(vs ...string) predicate.Entitlement

UpgradedTierNotIn applies the NotIn predicate on the "upgraded_tier" field.

func UpgradedTierNotNil added in v0.1.1

func UpgradedTierNotNil() predicate.Entitlement

UpgradedTierNotNil applies the NotNil predicate on the "upgraded_tier" 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 Entitlement queries.

func ByCancelled

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

ByCancelled orders the results by the cancelled 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 ByDowngradedAt added in v0.1.1

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

ByDowngradedAt orders the results by the downgraded_at field.

func ByDowngradedTier added in v0.1.1

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

ByDowngradedTier orders the results by the downgraded_tier field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByExternalCustomerID

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

ByExternalCustomerID orders the results by the external_customer_id field.

func ByExternalSubscriptionID

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

ByExternalSubscriptionID orders the results by the external_subscription_id field.

func ByID

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

ByID orders the results by the id field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByTier

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

ByTier orders the results by the tier 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.

func ByUpgradedAt added in v0.1.1

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

ByUpgradedAt orders the results by the upgraded_at field.

func ByUpgradedTier added in v0.1.1

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

ByUpgradedTier orders the results by the upgraded_tier field.

type Tier

type Tier string

Tier defines the type for the "tier" enum field.

const (
	TierFree       Tier = "free"
	TierPro        Tier = "pro"
	TierEnterprise Tier = "enterprise"
)

Tier values.

func (Tier) MarshalGQL

func (e Tier) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Tier) String

func (t Tier) String() string

func (*Tier) UnmarshalGQL

func (e *Tier) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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