planaddon

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the planaddon type in the database.
	Label = "plan_addon"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldAnnotations holds the string denoting the annotations field in the database.
	FieldAnnotations = "annotations"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldPlanID holds the string denoting the plan_id field in the database.
	FieldPlanID = "plan_id"
	// FieldAddonID holds the string denoting the addon_id field in the database.
	FieldAddonID = "addon_id"
	// FieldFromPlanPhase holds the string denoting the from_plan_phase field in the database.
	FieldFromPlanPhase = "from_plan_phase"
	// FieldMaxQuantity holds the string denoting the max_quantity field in the database.
	FieldMaxQuantity = "max_quantity"
	// EdgePlan holds the string denoting the plan edge name in mutations.
	EdgePlan = "plan"
	// EdgeAddon holds the string denoting the addon edge name in mutations.
	EdgeAddon = "addon"
	// Table holds the table name of the planaddon in the database.
	Table = "plan_addons"
	// PlanTable is the table that holds the plan relation/edge.
	PlanTable = "plan_addons"
	// 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"
	// AddonTable is the table that holds the addon relation/edge.
	AddonTable = "plan_addons"
	// AddonInverseTable is the table name for the Addon entity.
	// It exists in this package in order to avoid circular dependency with the "addon" package.
	AddonInverseTable = "addons"
	// AddonColumn is the table column denoting the addon relation/edge.
	AddonColumn = "addon_id"
)

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// 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
	// PlanIDValidator is a validator for the "plan_id" field. It is called by the builders before save.
	PlanIDValidator func(string) error
	// AddonIDValidator is a validator for the "addon_id" field. It is called by the builders before save.
	AddonIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Columns holds all SQL columns for planaddon fields.

Functions

func AddonID

func AddonID(v string) predicate.PlanAddon

AddonID applies equality check predicate on the "addon_id" field. It's identical to AddonIDEQ.

func AddonIDContains

func AddonIDContains(v string) predicate.PlanAddon

AddonIDContains applies the Contains predicate on the "addon_id" field.

func AddonIDContainsFold

func AddonIDContainsFold(v string) predicate.PlanAddon

AddonIDContainsFold applies the ContainsFold predicate on the "addon_id" field.

func AddonIDEQ

func AddonIDEQ(v string) predicate.PlanAddon

AddonIDEQ applies the EQ predicate on the "addon_id" field.

func AddonIDEqualFold

func AddonIDEqualFold(v string) predicate.PlanAddon

AddonIDEqualFold applies the EqualFold predicate on the "addon_id" field.

func AddonIDGT

func AddonIDGT(v string) predicate.PlanAddon

AddonIDGT applies the GT predicate on the "addon_id" field.

func AddonIDGTE

func AddonIDGTE(v string) predicate.PlanAddon

AddonIDGTE applies the GTE predicate on the "addon_id" field.

func AddonIDHasPrefix

func AddonIDHasPrefix(v string) predicate.PlanAddon

AddonIDHasPrefix applies the HasPrefix predicate on the "addon_id" field.

func AddonIDHasSuffix

func AddonIDHasSuffix(v string) predicate.PlanAddon

AddonIDHasSuffix applies the HasSuffix predicate on the "addon_id" field.

func AddonIDIn

func AddonIDIn(vs ...string) predicate.PlanAddon

AddonIDIn applies the In predicate on the "addon_id" field.

func AddonIDLT

func AddonIDLT(v string) predicate.PlanAddon

AddonIDLT applies the LT predicate on the "addon_id" field.

func AddonIDLTE

func AddonIDLTE(v string) predicate.PlanAddon

AddonIDLTE applies the LTE predicate on the "addon_id" field.

func AddonIDNEQ

func AddonIDNEQ(v string) predicate.PlanAddon

AddonIDNEQ applies the NEQ predicate on the "addon_id" field.

func AddonIDNotIn

func AddonIDNotIn(vs ...string) predicate.PlanAddon

AddonIDNotIn applies the NotIn predicate on the "addon_id" field.

func And

func And(predicates ...predicate.PlanAddon) predicate.PlanAddon

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.PlanAddon

AnnotationsIsNil applies the IsNil predicate on the "annotations" field.

func AnnotationsNotNil

func AnnotationsNotNil() predicate.PlanAddon

AnnotationsNotNil applies the NotNil predicate on the "annotations" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.PlanAddon

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.PlanAddon

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.PlanAddon

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.PlanAddon

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.PlanAddon

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.PlanAddon

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.PlanAddon

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.PlanAddon

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.PlanAddon

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.PlanAddon

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.PlanAddon

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.PlanAddon

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.PlanAddon

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.PlanAddon

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.PlanAddon

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.PlanAddon

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

func FromPlanPhase

func FromPlanPhase(v string) predicate.PlanAddon

FromPlanPhase applies equality check predicate on the "from_plan_phase" field. It's identical to FromPlanPhaseEQ.

func FromPlanPhaseContains

func FromPlanPhaseContains(v string) predicate.PlanAddon

FromPlanPhaseContains applies the Contains predicate on the "from_plan_phase" field.

func FromPlanPhaseContainsFold

func FromPlanPhaseContainsFold(v string) predicate.PlanAddon

FromPlanPhaseContainsFold applies the ContainsFold predicate on the "from_plan_phase" field.

func FromPlanPhaseEQ

func FromPlanPhaseEQ(v string) predicate.PlanAddon

FromPlanPhaseEQ applies the EQ predicate on the "from_plan_phase" field.

func FromPlanPhaseEqualFold

func FromPlanPhaseEqualFold(v string) predicate.PlanAddon

FromPlanPhaseEqualFold applies the EqualFold predicate on the "from_plan_phase" field.

func FromPlanPhaseGT

func FromPlanPhaseGT(v string) predicate.PlanAddon

FromPlanPhaseGT applies the GT predicate on the "from_plan_phase" field.

func FromPlanPhaseGTE

func FromPlanPhaseGTE(v string) predicate.PlanAddon

FromPlanPhaseGTE applies the GTE predicate on the "from_plan_phase" field.

func FromPlanPhaseHasPrefix

func FromPlanPhaseHasPrefix(v string) predicate.PlanAddon

FromPlanPhaseHasPrefix applies the HasPrefix predicate on the "from_plan_phase" field.

func FromPlanPhaseHasSuffix

func FromPlanPhaseHasSuffix(v string) predicate.PlanAddon

FromPlanPhaseHasSuffix applies the HasSuffix predicate on the "from_plan_phase" field.

func FromPlanPhaseIn

func FromPlanPhaseIn(vs ...string) predicate.PlanAddon

FromPlanPhaseIn applies the In predicate on the "from_plan_phase" field.

func FromPlanPhaseLT

func FromPlanPhaseLT(v string) predicate.PlanAddon

FromPlanPhaseLT applies the LT predicate on the "from_plan_phase" field.

func FromPlanPhaseLTE

func FromPlanPhaseLTE(v string) predicate.PlanAddon

FromPlanPhaseLTE applies the LTE predicate on the "from_plan_phase" field.

func FromPlanPhaseNEQ

func FromPlanPhaseNEQ(v string) predicate.PlanAddon

FromPlanPhaseNEQ applies the NEQ predicate on the "from_plan_phase" field.

func FromPlanPhaseNotIn

func FromPlanPhaseNotIn(vs ...string) predicate.PlanAddon

FromPlanPhaseNotIn applies the NotIn predicate on the "from_plan_phase" field.

func HasAddon

func HasAddon() predicate.PlanAddon

HasAddon applies the HasEdge predicate on the "addon" edge.

func HasAddonWith

func HasAddonWith(preds ...predicate.Addon) predicate.PlanAddon

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

func HasPlan

func HasPlan() predicate.PlanAddon

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

func HasPlanWith

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

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

func ID

func ID(id string) predicate.PlanAddon

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.PlanAddon

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.PlanAddon

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.PlanAddon

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.PlanAddon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.PlanAddon

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.PlanAddon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.PlanAddon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.PlanAddon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MaxQuantity

func MaxQuantity(v int) predicate.PlanAddon

MaxQuantity applies equality check predicate on the "max_quantity" field. It's identical to MaxQuantityEQ.

func MaxQuantityEQ

func MaxQuantityEQ(v int) predicate.PlanAddon

MaxQuantityEQ applies the EQ predicate on the "max_quantity" field.

func MaxQuantityGT

func MaxQuantityGT(v int) predicate.PlanAddon

MaxQuantityGT applies the GT predicate on the "max_quantity" field.

func MaxQuantityGTE

func MaxQuantityGTE(v int) predicate.PlanAddon

MaxQuantityGTE applies the GTE predicate on the "max_quantity" field.

func MaxQuantityIn

func MaxQuantityIn(vs ...int) predicate.PlanAddon

MaxQuantityIn applies the In predicate on the "max_quantity" field.

func MaxQuantityIsNil

func MaxQuantityIsNil() predicate.PlanAddon

MaxQuantityIsNil applies the IsNil predicate on the "max_quantity" field.

func MaxQuantityLT

func MaxQuantityLT(v int) predicate.PlanAddon

MaxQuantityLT applies the LT predicate on the "max_quantity" field.

func MaxQuantityLTE

func MaxQuantityLTE(v int) predicate.PlanAddon

MaxQuantityLTE applies the LTE predicate on the "max_quantity" field.

func MaxQuantityNEQ

func MaxQuantityNEQ(v int) predicate.PlanAddon

MaxQuantityNEQ applies the NEQ predicate on the "max_quantity" field.

func MaxQuantityNotIn

func MaxQuantityNotIn(vs ...int) predicate.PlanAddon

MaxQuantityNotIn applies the NotIn predicate on the "max_quantity" field.

func MaxQuantityNotNil

func MaxQuantityNotNil() predicate.PlanAddon

MaxQuantityNotNil applies the NotNil predicate on the "max_quantity" field.

func MetadataIsNil

func MetadataIsNil() predicate.PlanAddon

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.PlanAddon

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Namespace

func Namespace(v string) predicate.PlanAddon

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.PlanAddon

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.PlanAddon

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.PlanAddon

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.PlanAddon

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.PlanAddon

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.PlanAddon

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.PlanAddon

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.PlanAddon

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.PlanAddon

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.PlanAddon

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.PlanAddon

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.PlanAddon

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.PlanAddon

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.PlanAddon) predicate.PlanAddon

Or groups predicates with the OR operator between them.

func PlanID

func PlanID(v string) predicate.PlanAddon

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

func PlanIDContains

func PlanIDContains(v string) predicate.PlanAddon

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

func PlanIDContainsFold

func PlanIDContainsFold(v string) predicate.PlanAddon

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

func PlanIDEQ

func PlanIDEQ(v string) predicate.PlanAddon

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

func PlanIDEqualFold

func PlanIDEqualFold(v string) predicate.PlanAddon

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

func PlanIDGT

func PlanIDGT(v string) predicate.PlanAddon

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

func PlanIDGTE

func PlanIDGTE(v string) predicate.PlanAddon

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

func PlanIDHasPrefix

func PlanIDHasPrefix(v string) predicate.PlanAddon

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

func PlanIDHasSuffix

func PlanIDHasSuffix(v string) predicate.PlanAddon

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

func PlanIDIn

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

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

func PlanIDLT

func PlanIDLT(v string) predicate.PlanAddon

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

func PlanIDLTE

func PlanIDLTE(v string) predicate.PlanAddon

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

func PlanIDNEQ

func PlanIDNEQ(v string) predicate.PlanAddon

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

func PlanIDNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.PlanAddon

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.PlanAddon

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.PlanAddon

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.PlanAddon

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.PlanAddon

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.PlanAddon

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.PlanAddon

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 PlanAddon queries.

func ByAddonField

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

ByAddonField orders the results by addon field.

func ByAddonID

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

ByAddonID orders the results by the addon_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByFromPlanPhase

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

ByFromPlanPhase orders the results by the from_plan_phase field.

func ByID

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

ByID orders the results by the id field.

func ByMaxQuantity

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

ByMaxQuantity orders the results by the max_quantity field.

func ByNamespace

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

ByNamespace orders the results by the namespace 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 ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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