entitlement

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: AGPL-3.0 Imports: 4 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"
	// FieldTenantID holds the string denoting the tenant_id field in the database.
	FieldTenantID = "tenant_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"
	// FieldEnvironmentID holds the string denoting the environment_id field in the database.
	FieldEnvironmentID = "environment_id"
	// FieldPlanID holds the string denoting the plan_id field in the database.
	FieldPlanID = "plan_id"
	// FieldFeatureID holds the string denoting the feature_id field in the database.
	FieldFeatureID = "feature_id"
	// FieldFeatureType holds the string denoting the feature_type field in the database.
	FieldFeatureType = "feature_type"
	// FieldIsEnabled holds the string denoting the is_enabled field in the database.
	FieldIsEnabled = "is_enabled"
	// FieldUsageLimit holds the string denoting the usage_limit field in the database.
	FieldUsageLimit = "usage_limit"
	// FieldUsageResetPeriod holds the string denoting the usage_reset_period field in the database.
	FieldUsageResetPeriod = "usage_reset_period"
	// FieldIsSoftLimit holds the string denoting the is_soft_limit field in the database.
	FieldIsSoftLimit = "is_soft_limit"
	// FieldStaticValue holds the string denoting the static_value field in the database.
	FieldStaticValue = "static_value"
	// EdgePlan holds the string denoting the plan edge name in mutations.
	EdgePlan = "plan"
	// Table holds the table name of the entitlement in the database.
	Table = "entitlements"
	// PlanTable is the table that holds the plan relation/edge.
	PlanTable = "entitlements"
	// PlanInverseTable is the table name for the Plan entity.
	// It exists in this package in order to avoid circular dependency with the "plan" package.
	PlanInverseTable = "plans"
	// PlanColumn is the table column denoting the plan relation/edge.
	PlanColumn = "plan_id"
)

Variables

View Source
var (
	// TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save.
	TenantIDValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// 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
	// DefaultEnvironmentID holds the default value on creation for the "environment_id" field.
	DefaultEnvironmentID string
	// PlanIDValidator is a validator for the "plan_id" field. It is called by the builders before save.
	PlanIDValidator func(string) error
	// FeatureIDValidator is a validator for the "feature_id" field. It is called by the builders before save.
	FeatureIDValidator func(string) error
	// FeatureTypeValidator is a validator for the "feature_type" field. It is called by the builders before save.
	FeatureTypeValidator func(string) error
	// DefaultIsEnabled holds the default value on creation for the "is_enabled" field.
	DefaultIsEnabled bool
	// DefaultIsSoftLimit holds the default value on creation for the "is_soft_limit" field.
	DefaultIsSoftLimit bool
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for entitlement fields.

Functions

func And

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

And groups predicates with the AND operator between them.

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 EnvironmentID

func EnvironmentID(v string) predicate.Entitlement

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v string) predicate.Entitlement

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v string) predicate.Entitlement

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

func EnvironmentIDEQ(v string) predicate.Entitlement

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v string) predicate.Entitlement

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

func EnvironmentIDGT(v string) predicate.Entitlement

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

func EnvironmentIDGTE(v string) predicate.Entitlement

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v string) predicate.Entitlement

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v string) predicate.Entitlement

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

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

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDIsNil

func EnvironmentIDIsNil() predicate.Entitlement

EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.

func EnvironmentIDLT

func EnvironmentIDLT(v string) predicate.Entitlement

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

func EnvironmentIDLTE(v string) predicate.Entitlement

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v string) predicate.Entitlement

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

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

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func EnvironmentIDNotNil

func EnvironmentIDNotNil() predicate.Entitlement

EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.

func FeatureID

func FeatureID(v string) predicate.Entitlement

FeatureID applies equality check predicate on the "feature_id" field. It's identical to FeatureIDEQ.

func FeatureIDContains

func FeatureIDContains(v string) predicate.Entitlement

FeatureIDContains applies the Contains predicate on the "feature_id" field.

func FeatureIDContainsFold

func FeatureIDContainsFold(v string) predicate.Entitlement

FeatureIDContainsFold applies the ContainsFold predicate on the "feature_id" field.

func FeatureIDEQ

func FeatureIDEQ(v string) predicate.Entitlement

FeatureIDEQ applies the EQ predicate on the "feature_id" field.

func FeatureIDEqualFold

func FeatureIDEqualFold(v string) predicate.Entitlement

FeatureIDEqualFold applies the EqualFold predicate on the "feature_id" field.

func FeatureIDGT

func FeatureIDGT(v string) predicate.Entitlement

FeatureIDGT applies the GT predicate on the "feature_id" field.

func FeatureIDGTE

func FeatureIDGTE(v string) predicate.Entitlement

FeatureIDGTE applies the GTE predicate on the "feature_id" field.

func FeatureIDHasPrefix

func FeatureIDHasPrefix(v string) predicate.Entitlement

FeatureIDHasPrefix applies the HasPrefix predicate on the "feature_id" field.

func FeatureIDHasSuffix

func FeatureIDHasSuffix(v string) predicate.Entitlement

FeatureIDHasSuffix applies the HasSuffix predicate on the "feature_id" field.

func FeatureIDIn

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

FeatureIDIn applies the In predicate on the "feature_id" field.

func FeatureIDLT

func FeatureIDLT(v string) predicate.Entitlement

FeatureIDLT applies the LT predicate on the "feature_id" field.

func FeatureIDLTE

func FeatureIDLTE(v string) predicate.Entitlement

FeatureIDLTE applies the LTE predicate on the "feature_id" field.

func FeatureIDNEQ

func FeatureIDNEQ(v string) predicate.Entitlement

FeatureIDNEQ applies the NEQ predicate on the "feature_id" field.

func FeatureIDNotIn

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

FeatureIDNotIn applies the NotIn predicate on the "feature_id" field.

func FeatureType

func FeatureType(v string) predicate.Entitlement

FeatureType applies equality check predicate on the "feature_type" field. It's identical to FeatureTypeEQ.

func FeatureTypeContains

func FeatureTypeContains(v string) predicate.Entitlement

FeatureTypeContains applies the Contains predicate on the "feature_type" field.

func FeatureTypeContainsFold

func FeatureTypeContainsFold(v string) predicate.Entitlement

FeatureTypeContainsFold applies the ContainsFold predicate on the "feature_type" field.

func FeatureTypeEQ

func FeatureTypeEQ(v string) predicate.Entitlement

FeatureTypeEQ applies the EQ predicate on the "feature_type" field.

func FeatureTypeEqualFold

func FeatureTypeEqualFold(v string) predicate.Entitlement

FeatureTypeEqualFold applies the EqualFold predicate on the "feature_type" field.

func FeatureTypeGT

func FeatureTypeGT(v string) predicate.Entitlement

FeatureTypeGT applies the GT predicate on the "feature_type" field.

func FeatureTypeGTE

func FeatureTypeGTE(v string) predicate.Entitlement

FeatureTypeGTE applies the GTE predicate on the "feature_type" field.

func FeatureTypeHasPrefix

func FeatureTypeHasPrefix(v string) predicate.Entitlement

FeatureTypeHasPrefix applies the HasPrefix predicate on the "feature_type" field.

func FeatureTypeHasSuffix

func FeatureTypeHasSuffix(v string) predicate.Entitlement

FeatureTypeHasSuffix applies the HasSuffix predicate on the "feature_type" field.

func FeatureTypeIn

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

FeatureTypeIn applies the In predicate on the "feature_type" field.

func FeatureTypeLT

func FeatureTypeLT(v string) predicate.Entitlement

FeatureTypeLT applies the LT predicate on the "feature_type" field.

func FeatureTypeLTE

func FeatureTypeLTE(v string) predicate.Entitlement

FeatureTypeLTE applies the LTE predicate on the "feature_type" field.

func FeatureTypeNEQ

func FeatureTypeNEQ(v string) predicate.Entitlement

FeatureTypeNEQ applies the NEQ predicate on the "feature_type" field.

func FeatureTypeNotIn

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

FeatureTypeNotIn applies the NotIn predicate on the "feature_type" field.

func HasPlan

func HasPlan() predicate.Entitlement

HasPlan applies the HasEdge predicate on the "plan" edge.

func HasPlanWith

func HasPlanWith(preds ...predicate.Plan) predicate.Entitlement

HasPlanWith applies the HasEdge predicate on the "plan" 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 IsEnabled

func IsEnabled(v bool) predicate.Entitlement

IsEnabled applies equality check predicate on the "is_enabled" field. It's identical to IsEnabledEQ.

func IsEnabledEQ

func IsEnabledEQ(v bool) predicate.Entitlement

IsEnabledEQ applies the EQ predicate on the "is_enabled" field.

func IsEnabledNEQ

func IsEnabledNEQ(v bool) predicate.Entitlement

IsEnabledNEQ applies the NEQ predicate on the "is_enabled" field.

func IsSoftLimit

func IsSoftLimit(v bool) predicate.Entitlement

IsSoftLimit applies equality check predicate on the "is_soft_limit" field. It's identical to IsSoftLimitEQ.

func IsSoftLimitEQ

func IsSoftLimitEQ(v bool) predicate.Entitlement

IsSoftLimitEQ applies the EQ predicate on the "is_soft_limit" field.

func IsSoftLimitNEQ

func IsSoftLimitNEQ(v bool) predicate.Entitlement

IsSoftLimitNEQ applies the NEQ predicate on the "is_soft_limit" 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 PlanID

func PlanID(v string) predicate.Entitlement

PlanID applies equality check predicate on the "plan_id" field. It's identical to PlanIDEQ.

func PlanIDContains

func PlanIDContains(v string) predicate.Entitlement

PlanIDContains applies the Contains predicate on the "plan_id" field.

func PlanIDContainsFold

func PlanIDContainsFold(v string) predicate.Entitlement

PlanIDContainsFold applies the ContainsFold predicate on the "plan_id" field.

func PlanIDEQ

func PlanIDEQ(v string) predicate.Entitlement

PlanIDEQ applies the EQ predicate on the "plan_id" field.

func PlanIDEqualFold

func PlanIDEqualFold(v string) predicate.Entitlement

PlanIDEqualFold applies the EqualFold predicate on the "plan_id" field.

func PlanIDGT

func PlanIDGT(v string) predicate.Entitlement

PlanIDGT applies the GT predicate on the "plan_id" field.

func PlanIDGTE

func PlanIDGTE(v string) predicate.Entitlement

PlanIDGTE applies the GTE predicate on the "plan_id" field.

func PlanIDHasPrefix

func PlanIDHasPrefix(v string) predicate.Entitlement

PlanIDHasPrefix applies the HasPrefix predicate on the "plan_id" field.

func PlanIDHasSuffix

func PlanIDHasSuffix(v string) predicate.Entitlement

PlanIDHasSuffix applies the HasSuffix predicate on the "plan_id" field.

func PlanIDIn

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

PlanIDIn applies the In predicate on the "plan_id" field.

func PlanIDLT

func PlanIDLT(v string) predicate.Entitlement

PlanIDLT applies the LT predicate on the "plan_id" field.

func PlanIDLTE

func PlanIDLTE(v string) predicate.Entitlement

PlanIDLTE applies the LTE predicate on the "plan_id" field.

func PlanIDNEQ

func PlanIDNEQ(v string) predicate.Entitlement

PlanIDNEQ applies the NEQ predicate on the "plan_id" field.

func PlanIDNotIn

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

PlanIDNotIn applies the NotIn predicate on the "plan_id" field.

func StaticValue

func StaticValue(v string) predicate.Entitlement

StaticValue applies equality check predicate on the "static_value" field. It's identical to StaticValueEQ.

func StaticValueContains

func StaticValueContains(v string) predicate.Entitlement

StaticValueContains applies the Contains predicate on the "static_value" field.

func StaticValueContainsFold

func StaticValueContainsFold(v string) predicate.Entitlement

StaticValueContainsFold applies the ContainsFold predicate on the "static_value" field.

func StaticValueEQ

func StaticValueEQ(v string) predicate.Entitlement

StaticValueEQ applies the EQ predicate on the "static_value" field.

func StaticValueEqualFold

func StaticValueEqualFold(v string) predicate.Entitlement

StaticValueEqualFold applies the EqualFold predicate on the "static_value" field.

func StaticValueGT

func StaticValueGT(v string) predicate.Entitlement

StaticValueGT applies the GT predicate on the "static_value" field.

func StaticValueGTE

func StaticValueGTE(v string) predicate.Entitlement

StaticValueGTE applies the GTE predicate on the "static_value" field.

func StaticValueHasPrefix

func StaticValueHasPrefix(v string) predicate.Entitlement

StaticValueHasPrefix applies the HasPrefix predicate on the "static_value" field.

func StaticValueHasSuffix

func StaticValueHasSuffix(v string) predicate.Entitlement

StaticValueHasSuffix applies the HasSuffix predicate on the "static_value" field.

func StaticValueIn

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

StaticValueIn applies the In predicate on the "static_value" field.

func StaticValueIsNil

func StaticValueIsNil() predicate.Entitlement

StaticValueIsNil applies the IsNil predicate on the "static_value" field.

func StaticValueLT

func StaticValueLT(v string) predicate.Entitlement

StaticValueLT applies the LT predicate on the "static_value" field.

func StaticValueLTE

func StaticValueLTE(v string) predicate.Entitlement

StaticValueLTE applies the LTE predicate on the "static_value" field.

func StaticValueNEQ

func StaticValueNEQ(v string) predicate.Entitlement

StaticValueNEQ applies the NEQ predicate on the "static_value" field.

func StaticValueNotIn

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

StaticValueNotIn applies the NotIn predicate on the "static_value" field.

func StaticValueNotNil

func StaticValueNotNil() predicate.Entitlement

StaticValueNotNil applies the NotNil predicate on the "static_value" field.

func Status

func Status(v string) predicate.Entitlement

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

func StatusContains

func StatusContains(v string) predicate.Entitlement

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

func StatusContainsFold

func StatusContainsFold(v string) predicate.Entitlement

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

func StatusEQ

func StatusEQ(v string) predicate.Entitlement

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Entitlement

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

func StatusGT

func StatusGT(v string) predicate.Entitlement

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

func StatusGTE

func StatusGTE(v string) predicate.Entitlement

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

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Entitlement

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

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Entitlement

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

func StatusIn

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

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

func StatusLT

func StatusLT(v string) predicate.Entitlement

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

func StatusLTE

func StatusLTE(v string) predicate.Entitlement

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

func StatusNEQ

func StatusNEQ(v string) predicate.Entitlement

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

func StatusNotIn

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

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

func TenantID

func TenantID(v string) predicate.Entitlement

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDContains

func TenantIDContains(v string) predicate.Entitlement

TenantIDContains applies the Contains predicate on the "tenant_id" field.

func TenantIDContainsFold

func TenantIDContainsFold(v string) predicate.Entitlement

TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.

func TenantIDEQ

func TenantIDEQ(v string) predicate.Entitlement

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDEqualFold

func TenantIDEqualFold(v string) predicate.Entitlement

TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v string) predicate.Entitlement

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v string) predicate.Entitlement

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDHasPrefix

func TenantIDHasPrefix(v string) predicate.Entitlement

TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.

func TenantIDHasSuffix

func TenantIDHasSuffix(v string) predicate.Entitlement

TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.

func TenantIDIn

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

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v string) predicate.Entitlement

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v string) predicate.Entitlement

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v string) predicate.Entitlement

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

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

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

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 UsageLimit

func UsageLimit(v int64) predicate.Entitlement

UsageLimit applies equality check predicate on the "usage_limit" field. It's identical to UsageLimitEQ.

func UsageLimitEQ

func UsageLimitEQ(v int64) predicate.Entitlement

UsageLimitEQ applies the EQ predicate on the "usage_limit" field.

func UsageLimitGT

func UsageLimitGT(v int64) predicate.Entitlement

UsageLimitGT applies the GT predicate on the "usage_limit" field.

func UsageLimitGTE

func UsageLimitGTE(v int64) predicate.Entitlement

UsageLimitGTE applies the GTE predicate on the "usage_limit" field.

func UsageLimitIn

func UsageLimitIn(vs ...int64) predicate.Entitlement

UsageLimitIn applies the In predicate on the "usage_limit" field.

func UsageLimitIsNil

func UsageLimitIsNil() predicate.Entitlement

UsageLimitIsNil applies the IsNil predicate on the "usage_limit" field.

func UsageLimitLT

func UsageLimitLT(v int64) predicate.Entitlement

UsageLimitLT applies the LT predicate on the "usage_limit" field.

func UsageLimitLTE

func UsageLimitLTE(v int64) predicate.Entitlement

UsageLimitLTE applies the LTE predicate on the "usage_limit" field.

func UsageLimitNEQ

func UsageLimitNEQ(v int64) predicate.Entitlement

UsageLimitNEQ applies the NEQ predicate on the "usage_limit" field.

func UsageLimitNotIn

func UsageLimitNotIn(vs ...int64) predicate.Entitlement

UsageLimitNotIn applies the NotIn predicate on the "usage_limit" field.

func UsageLimitNotNil

func UsageLimitNotNil() predicate.Entitlement

UsageLimitNotNil applies the NotNil predicate on the "usage_limit" field.

func UsageResetPeriod

func UsageResetPeriod(v string) predicate.Entitlement

UsageResetPeriod applies equality check predicate on the "usage_reset_period" field. It's identical to UsageResetPeriodEQ.

func UsageResetPeriodContains

func UsageResetPeriodContains(v string) predicate.Entitlement

UsageResetPeriodContains applies the Contains predicate on the "usage_reset_period" field.

func UsageResetPeriodContainsFold

func UsageResetPeriodContainsFold(v string) predicate.Entitlement

UsageResetPeriodContainsFold applies the ContainsFold predicate on the "usage_reset_period" field.

func UsageResetPeriodEQ

func UsageResetPeriodEQ(v string) predicate.Entitlement

UsageResetPeriodEQ applies the EQ predicate on the "usage_reset_period" field.

func UsageResetPeriodEqualFold

func UsageResetPeriodEqualFold(v string) predicate.Entitlement

UsageResetPeriodEqualFold applies the EqualFold predicate on the "usage_reset_period" field.

func UsageResetPeriodGT

func UsageResetPeriodGT(v string) predicate.Entitlement

UsageResetPeriodGT applies the GT predicate on the "usage_reset_period" field.

func UsageResetPeriodGTE

func UsageResetPeriodGTE(v string) predicate.Entitlement

UsageResetPeriodGTE applies the GTE predicate on the "usage_reset_period" field.

func UsageResetPeriodHasPrefix

func UsageResetPeriodHasPrefix(v string) predicate.Entitlement

UsageResetPeriodHasPrefix applies the HasPrefix predicate on the "usage_reset_period" field.

func UsageResetPeriodHasSuffix

func UsageResetPeriodHasSuffix(v string) predicate.Entitlement

UsageResetPeriodHasSuffix applies the HasSuffix predicate on the "usage_reset_period" field.

func UsageResetPeriodIn

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

UsageResetPeriodIn applies the In predicate on the "usage_reset_period" field.

func UsageResetPeriodIsNil

func UsageResetPeriodIsNil() predicate.Entitlement

UsageResetPeriodIsNil applies the IsNil predicate on the "usage_reset_period" field.

func UsageResetPeriodLT

func UsageResetPeriodLT(v string) predicate.Entitlement

UsageResetPeriodLT applies the LT predicate on the "usage_reset_period" field.

func UsageResetPeriodLTE

func UsageResetPeriodLTE(v string) predicate.Entitlement

UsageResetPeriodLTE applies the LTE predicate on the "usage_reset_period" field.

func UsageResetPeriodNEQ

func UsageResetPeriodNEQ(v string) predicate.Entitlement

UsageResetPeriodNEQ applies the NEQ predicate on the "usage_reset_period" field.

func UsageResetPeriodNotIn

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

UsageResetPeriodNotIn applies the NotIn predicate on the "usage_reset_period" field.

func UsageResetPeriodNotNil

func UsageResetPeriodNotNil() predicate.Entitlement

UsageResetPeriodNotNil applies the NotNil predicate on the "usage_reset_period" 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 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 ByEnvironmentID

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

ByEnvironmentID orders the results by the environment_id field.

func ByFeatureID

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

ByFeatureID orders the results by the feature_id field.

func ByFeatureType

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

ByFeatureType orders the results by the feature_type field.

func ByID

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

ByID orders the results by the id field.

func ByIsEnabled

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

ByIsEnabled orders the results by the is_enabled field.

func ByIsSoftLimit

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

ByIsSoftLimit orders the results by the is_soft_limit field.

func ByPlanField

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

ByPlanField orders the results by plan field.

func ByPlanID

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

ByPlanID orders the results by the plan_id field.

func ByStaticValue

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

ByStaticValue orders the results by the static_value field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTenantID

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

ByTenantID orders the results by the tenant_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.

func ByUsageLimit

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

ByUsageLimit orders the results by the usage_limit field.

func ByUsageResetPeriod

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

ByUsageResetPeriod orders the results by the usage_reset_period field.

Jump to

Keyboard shortcuts

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