credittype

package
v0.0.0-...-bfbcaf2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the credittype type in the database.
	Label = "credit_type"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldStripeProductID holds the string denoting the stripe_product_id field in the database.
	FieldStripeProductID = "stripe_product_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// 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"
	// EdgeCredits holds the string denoting the credits edge name in mutations.
	EdgeCredits = "credits"
	// Table holds the table name of the credittype in the database.
	Table = "credit_types"
	// CreditsTable is the table that holds the credits relation/edge.
	CreditsTable = "credits"
	// CreditsInverseTable is the table name for the Credit entity.
	// It exists in this package in order to avoid circular dependency with the "credit" package.
	CreditsInverseTable = "credits"
	// CreditsColumn is the table column denoting the credits relation/edge.
	CreditsColumn = "credit_type_id"
)

Variables

View Source
var (
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for credittype fields.

Functions

func Amount

func Amount(v int32) predicate.CreditType

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v int32) predicate.CreditType

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v int32) predicate.CreditType

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v int32) predicate.CreditType

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...int32) predicate.CreditType

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v int32) predicate.CreditType

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v int32) predicate.CreditType

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v int32) predicate.CreditType

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...int32) predicate.CreditType

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.CreditType) predicate.CreditType

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CreditType

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CreditType

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CreditType

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CreditType

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CreditType

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CreditType

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CreditType

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.CreditType

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.CreditType

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.CreditType

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.CreditType

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.CreditType

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.CreditType

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.CreditType

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.CreditType

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.CreditType

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.CreditType

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.CreditType

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.CreditType

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.CreditType

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.CreditType

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.CreditType

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.CreditType

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasCredits

func HasCredits() predicate.CreditType

HasCredits applies the HasEdge predicate on the "credits" edge.

func HasCreditsWith

func HasCreditsWith(preds ...predicate.Credit) predicate.CreditType

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.CreditType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.CreditType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.CreditType

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.CreditType

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.CreditType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.CreditType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.CreditType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.CreditType

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.CreditType

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.CreditType

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.CreditType

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.CreditType

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.CreditType

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.CreditType

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.CreditType

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.CreditType

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.CreditType

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.CreditType

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.CreditType

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.CreditType

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.CreditType

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.CreditType

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CreditType) predicate.CreditType

Or groups predicates with the OR operator between them.

func StripeProductID

func StripeProductID(v string) predicate.CreditType

StripeProductID applies equality check predicate on the "stripe_product_id" field. It's identical to StripeProductIDEQ.

func StripeProductIDContains

func StripeProductIDContains(v string) predicate.CreditType

StripeProductIDContains applies the Contains predicate on the "stripe_product_id" field.

func StripeProductIDContainsFold

func StripeProductIDContainsFold(v string) predicate.CreditType

StripeProductIDContainsFold applies the ContainsFold predicate on the "stripe_product_id" field.

func StripeProductIDEQ

func StripeProductIDEQ(v string) predicate.CreditType

StripeProductIDEQ applies the EQ predicate on the "stripe_product_id" field.

func StripeProductIDEqualFold

func StripeProductIDEqualFold(v string) predicate.CreditType

StripeProductIDEqualFold applies the EqualFold predicate on the "stripe_product_id" field.

func StripeProductIDGT

func StripeProductIDGT(v string) predicate.CreditType

StripeProductIDGT applies the GT predicate on the "stripe_product_id" field.

func StripeProductIDGTE

func StripeProductIDGTE(v string) predicate.CreditType

StripeProductIDGTE applies the GTE predicate on the "stripe_product_id" field.

func StripeProductIDHasPrefix

func StripeProductIDHasPrefix(v string) predicate.CreditType

StripeProductIDHasPrefix applies the HasPrefix predicate on the "stripe_product_id" field.

func StripeProductIDHasSuffix

func StripeProductIDHasSuffix(v string) predicate.CreditType

StripeProductIDHasSuffix applies the HasSuffix predicate on the "stripe_product_id" field.

func StripeProductIDIn

func StripeProductIDIn(vs ...string) predicate.CreditType

StripeProductIDIn applies the In predicate on the "stripe_product_id" field.

func StripeProductIDIsNil

func StripeProductIDIsNil() predicate.CreditType

StripeProductIDIsNil applies the IsNil predicate on the "stripe_product_id" field.

func StripeProductIDLT

func StripeProductIDLT(v string) predicate.CreditType

StripeProductIDLT applies the LT predicate on the "stripe_product_id" field.

func StripeProductIDLTE

func StripeProductIDLTE(v string) predicate.CreditType

StripeProductIDLTE applies the LTE predicate on the "stripe_product_id" field.

func StripeProductIDNEQ

func StripeProductIDNEQ(v string) predicate.CreditType

StripeProductIDNEQ applies the NEQ predicate on the "stripe_product_id" field.

func StripeProductIDNotIn

func StripeProductIDNotIn(vs ...string) predicate.CreditType

StripeProductIDNotIn applies the NotIn predicate on the "stripe_product_id" field.

func StripeProductIDNotNil

func StripeProductIDNotNil() predicate.CreditType

StripeProductIDNotNil applies the NotNil predicate on the "stripe_product_id" field.

func TypeEQ

func TypeEQ(v Type) predicate.CreditType

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.CreditType

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.CreditType

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.CreditType

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.CreditType

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.CreditType

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.CreditType

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.CreditType

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.CreditType

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.CreditType

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.CreditType

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

func UpdatedAtNotIn

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

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 Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeFree         Type = "free"
	TypeSubscription Type = "subscription"
	TypeOneTime      Type = "one_time"
	TypeTippable     Type = "tippable"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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