schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	ent.Schema
}

Auth holds the schema definition for the Auth entity.

func (Auth) Fields

func (Auth) Fields() []ent.Field

func (Auth) Indexes

func (Auth) Indexes() []ent.Index

Indexes of the Auth.

type BillingSequence

type BillingSequence struct {
	ent.Schema
}

BillingSequence holds the schema definition for the BillingSequence entity.

func (BillingSequence) Edges

func (BillingSequence) Edges() []ent.Edge

Edges of the BillingSequence.

func (BillingSequence) Fields

func (BillingSequence) Fields() []ent.Field

Fields of the BillingSequence.

func (BillingSequence) Indexes

func (BillingSequence) Indexes() []ent.Index

Indexes of the BillingSequence.

type Customer

type Customer struct {
	ent.Schema
}

Customer holds the schema definition for the Customer entity.

func (Customer) Edges

func (Customer) Edges() []ent.Edge

Edges of the Customer.

func (Customer) Fields

func (Customer) Fields() []ent.Field

Fields of the Customer.

func (Customer) Indexes

func (Customer) Indexes() []ent.Index

Indexes of the Customer.

func (Customer) Mixin

func (Customer) Mixin() []ent.Mixin

Mixin of the Customer.

type Entitlement

type Entitlement struct {
	ent.Schema
}

Entitlement holds the schema definition for the Entitlement entity.

func (Entitlement) Edges

func (Entitlement) Edges() []ent.Edge

Edges of the Entitlement.

func (Entitlement) Fields

func (Entitlement) Fields() []ent.Field

Fields of the Entitlement.

func (Entitlement) Indexes

func (Entitlement) Indexes() []ent.Index

Indexes of the Entitlement.

func (Entitlement) Mixin

func (Entitlement) Mixin() []ent.Mixin

Mixin of the Entitlement.

type Environment

type Environment struct {
	ent.Schema
}

Environment holds the schema definition for the Environment entity.

func (Environment) Fields

func (Environment) Fields() []ent.Field

func (Environment) Indexes

func (Environment) Indexes() []ent.Index

Indexes of the Environment.

func (Environment) Mixin

func (Environment) Mixin() []ent.Mixin

Mixin of the Environment.

type Feature

type Feature struct {
	ent.Schema
}

Feature holds the schema definition for the Feature entity.

func (Feature) Fields

func (Feature) Fields() []ent.Field

func (Feature) Indexes

func (Feature) Indexes() []ent.Index

Indexes of the Feature.

func (Feature) Mixin

func (Feature) Mixin() []ent.Mixin

Mixin of the Feature.

type Invoice

type Invoice struct {
	ent.Schema
}

Invoice holds the schema definition for the Invoice entity.

func (Invoice) Edges

func (Invoice) Edges() []ent.Edge

Edges of the Invoice.

func (Invoice) Fields

func (Invoice) Fields() []ent.Field

Fields of the Invoice.

func (Invoice) Indexes

func (Invoice) Indexes() []ent.Index

Indexes of the Invoice.

func (Invoice) Mixin

func (Invoice) Mixin() []ent.Mixin

Mixin of the Invoice.

type InvoiceLineItem

type InvoiceLineItem struct {
	ent.Schema
}

InvoiceLineItem holds the schema definition for the InvoiceLineItem entity.

func (InvoiceLineItem) Edges

func (InvoiceLineItem) Edges() []ent.Edge

Edges of the InvoiceLineItem.

func (InvoiceLineItem) Fields

func (InvoiceLineItem) Fields() []ent.Field

Fields of the InvoiceLineItem.

func (InvoiceLineItem) Indexes

func (InvoiceLineItem) Indexes() []ent.Index

Indexes of the InvoiceLineItem.

func (InvoiceLineItem) Mixin

func (InvoiceLineItem) Mixin() []ent.Mixin

Mixin of the InvoiceLineItem.

type InvoiceSequence

type InvoiceSequence struct {
	ent.Schema
}

InvoiceSequence holds the schema definition for the InvoiceSequence entity.

func (InvoiceSequence) Edges

func (InvoiceSequence) Edges() []ent.Edge

Edges of the InvoiceSequence.

func (InvoiceSequence) Fields

func (InvoiceSequence) Fields() []ent.Field

Fields of the InvoiceSequence.

func (InvoiceSequence) Indexes

func (InvoiceSequence) Indexes() []ent.Index

Indexes of the InvoiceSequence.

type Meter

type Meter struct {
	ent.Schema
}

Meter holds the schema definition for the Meter entity.

func (Meter) Edges

func (Meter) Edges() []ent.Edge

Edges of the Meter.

func (Meter) Fields

func (Meter) Fields() []ent.Field

Fields of the Meter.

func (Meter) Indexes

func (Meter) Indexes() []ent.Index

Indexes of the Meter.

func (Meter) Mixin

func (Meter) Mixin() []ent.Mixin

Mixin of the Meter.

type MeterAggregation

type MeterAggregation struct {
	Type  types.AggregationType `json:"type"`
	Field string                `json:"field,omitempty"`
}

type MeterFilter

type MeterFilter struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

Additional types needed for JSON fields

type Payment

type Payment struct {
	ent.Schema
}

Payment holds the schema definition for the Payment entity.

func (Payment) Edges

func (Payment) Edges() []ent.Edge

Edges of the Payment.

func (Payment) Fields

func (Payment) Fields() []ent.Field

Fields of the Payment.

func (Payment) Indexes

func (Payment) Indexes() []ent.Index

Indexes of the Payment.

func (Payment) Mixin

func (Payment) Mixin() []ent.Mixin

Mixin of the Payment.

type PaymentAttempt

type PaymentAttempt struct {
	ent.Schema
}

PaymentAttempt holds the schema definition for the PaymentAttempt entity.

func (PaymentAttempt) Edges

func (PaymentAttempt) Edges() []ent.Edge

Edges of the PaymentAttempt.

func (PaymentAttempt) Fields

func (PaymentAttempt) Fields() []ent.Field

Fields of the PaymentAttempt.

func (PaymentAttempt) Indexes

func (PaymentAttempt) Indexes() []ent.Index

Indexes of the PaymentAttempt.

func (PaymentAttempt) Mixin

func (PaymentAttempt) Mixin() []ent.Mixin

Mixin of the PaymentAttempt.

type Plan

type Plan struct {
	ent.Schema
}

Plan holds the schema definition for the Plan entity.

func (Plan) Edges

func (Plan) Edges() []ent.Edge

Edges of the Plan.

func (Plan) Fields

func (Plan) Fields() []ent.Field

Fields of the Plan.

func (Plan) Indexes

func (Plan) Indexes() []ent.Index

Indexes of the Plan.

func (Plan) Mixin

func (Plan) Mixin() []ent.Mixin

Mixin of the Plan.

type Price

type Price struct {
	ent.Schema
}

Price holds the schema definition for the Price entity.

func (Price) Edges

func (Price) Edges() []ent.Edge

Edges of the Price.

func (Price) Fields

func (Price) Fields() []ent.Field

Fields of the Price.

func (Price) Indexes

func (Price) Indexes() []ent.Index

Indexes of the Price.

func (Price) Mixin

func (Price) Mixin() []ent.Mixin

Mixin of the Price.

type PriceTier

type PriceTier struct {
	UpTo       *uint64          `json:"up_to"`
	UnitAmount decimal.Decimal  `json:"unit_amount"`
	FlatAmount *decimal.Decimal `json:"flat_amount,omitempty"`
}

Additional types needed for JSON fields

type Secret

type Secret struct {
	ent.Schema
}

Secret holds the schema definition for the Secret entity.

func (Secret) Edges

func (Secret) Edges() []ent.Edge

Edges of the Secret.

func (Secret) Fields

func (Secret) Fields() []ent.Field

Fields of the Secret.

func (Secret) Indexes

func (Secret) Indexes() []ent.Index

Indexes of the Secret.

func (Secret) Mixin

func (Secret) Mixin() []ent.Mixin

Mixin of the Secret.

type Subscription

type Subscription struct {
	ent.Schema
}

Subscription holds the schema definition for the Subscription entity.

func (Subscription) Edges

func (Subscription) Edges() []ent.Edge

Edges of the Subscription.

func (Subscription) Fields

func (Subscription) Fields() []ent.Field

Fields of the Subscription.

func (Subscription) Indexes

func (Subscription) Indexes() []ent.Index

Indexes of the Subscription.

func (Subscription) Mixin

func (Subscription) Mixin() []ent.Mixin

Mixin of the Subscription.

type SubscriptionLineItem

type SubscriptionLineItem struct {
	ent.Schema
}

SubscriptionLineItem holds the schema definition for the SubscriptionLineItem entity.

func (SubscriptionLineItem) Edges

func (SubscriptionLineItem) Edges() []ent.Edge

Edges of the SubscriptionLineItem.

func (SubscriptionLineItem) Fields

func (SubscriptionLineItem) Fields() []ent.Field

Fields of the SubscriptionLineItem.

func (SubscriptionLineItem) Indexes

func (SubscriptionLineItem) Indexes() []ent.Index

Indexes of the SubscriptionLineItem.

func (SubscriptionLineItem) Mixin

func (SubscriptionLineItem) Mixin() []ent.Mixin

Mixin of the SubscriptionLineItem.

type SubscriptionPause

type SubscriptionPause struct {
	ent.Schema
}

SubscriptionPause holds the schema definition for the SubscriptionPause entity.

func (SubscriptionPause) Edges

func (SubscriptionPause) Edges() []ent.Edge

Edges of the SubscriptionPause.

func (SubscriptionPause) Fields

func (SubscriptionPause) Fields() []ent.Field

Fields of the SubscriptionPause.

func (SubscriptionPause) Indexes

func (SubscriptionPause) Indexes() []ent.Index

Indexes of the SubscriptionPause.

func (SubscriptionPause) Mixin

func (SubscriptionPause) Mixin() []ent.Mixin

Mixin of the SubscriptionPause.

type Task

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity.

func (Task) Edges

func (Task) Edges() []ent.Edge

Edges of the Task.

func (Task) Fields

func (Task) Fields() []ent.Field

Fields of the Task.

func (Task) Indexes

func (Task) Indexes() []ent.Index

Indexes of the Task.

func (Task) Mixin

func (Task) Mixin() []ent.Mixin

Mixin of the Task.

type Tenant

type Tenant struct {
	ent.Schema
}

Tenant holds the schema definition for the Tenant entity.

func (Tenant) Fields

func (Tenant) Fields() []ent.Field

func (Tenant) Indexes

func (Tenant) Indexes() []ent.Index

Indexes of the Tenant.

type TransformQuantity

type TransformQuantity struct {
	DivideBy int    `json:"divide_by,omitempty"`
	Round    string `json:"round,omitempty"`
}

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Fields

func (User) Fields() []ent.Field

func (User) Indexes

func (User) Indexes() []ent.Index

Indexes of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixin of the User.

type Wallet

type Wallet struct {
	ent.Schema
}

Wallet holds the schema definition for the Wallet entity.

func (Wallet) Edges

func (Wallet) Edges() []ent.Edge

Edges of the Wallet.

func (Wallet) Fields

func (Wallet) Fields() []ent.Field

Fields of the Wallet.

func (Wallet) Indexes

func (Wallet) Indexes() []ent.Index

Indexes of the Wallet.

func (Wallet) Mixin

func (Wallet) Mixin() []ent.Mixin

Mixin of the Wallet.

type WalletTransaction

type WalletTransaction struct {
	ent.Schema
}

WalletTransaction holds the schema definition for the WalletTransaction entity.

func (WalletTransaction) Edges

func (WalletTransaction) Edges() []ent.Edge

Edges of the WalletTransaction.

func (WalletTransaction) Fields

func (WalletTransaction) Fields() []ent.Field

Fields of the WalletTransaction.

func (WalletTransaction) Indexes

func (WalletTransaction) Indexes() []ent.Index

Indexes of the WalletTransaction.

func (WalletTransaction) Mixin

func (WalletTransaction) Mixin() []ent.Mixin

Mixin of the WalletTransaction.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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