senderprofile

package
v0.0.0-...-6269356 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the senderprofile type in the database.
	Label = "sender_profile"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWebhookURL holds the string denoting the webhook_url field in the database.
	FieldWebhookURL = "webhook_url"
	// FieldDomainWhitelist holds the string denoting the domain_whitelist field in the database.
	FieldDomainWhitelist = "domain_whitelist"
	// FieldProviderID holds the string denoting the provider_id field in the database.
	FieldProviderID = "provider_id"
	// FieldIsPartner holds the string denoting the is_partner field in the database.
	FieldIsPartner = "is_partner"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeAPIKey holds the string denoting the api_key edge name in mutations.
	EdgeAPIKey = "api_key"
	// EdgePaymentOrders holds the string denoting the payment_orders edge name in mutations.
	EdgePaymentOrders = "payment_orders"
	// EdgeOrderTokens holds the string denoting the order_tokens edge name in mutations.
	EdgeOrderTokens = "order_tokens"
	// EdgeLinkedAddress holds the string denoting the linked_address edge name in mutations.
	EdgeLinkedAddress = "linked_address"
	// Table holds the table name of the senderprofile in the database.
	Table = "sender_profiles"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "sender_profiles"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_sender_profile"
	// APIKeyTable is the table that holds the api_key relation/edge.
	APIKeyTable = "api_keys"
	// APIKeyInverseTable is the table name for the APIKey entity.
	// It exists in this package in order to avoid circular dependency with the "apikey" package.
	APIKeyInverseTable = "api_keys"
	// APIKeyColumn is the table column denoting the api_key relation/edge.
	APIKeyColumn = "sender_profile_api_key"
	// PaymentOrdersTable is the table that holds the payment_orders relation/edge.
	PaymentOrdersTable = "payment_orders"
	// PaymentOrdersInverseTable is the table name for the PaymentOrder entity.
	// It exists in this package in order to avoid circular dependency with the "paymentorder" package.
	PaymentOrdersInverseTable = "payment_orders"
	// PaymentOrdersColumn is the table column denoting the payment_orders relation/edge.
	PaymentOrdersColumn = "sender_profile_payment_orders"
	// OrderTokensTable is the table that holds the order_tokens relation/edge.
	OrderTokensTable = "sender_order_tokens"
	// OrderTokensInverseTable is the table name for the SenderOrderToken entity.
	// It exists in this package in order to avoid circular dependency with the "senderordertoken" package.
	OrderTokensInverseTable = "sender_order_tokens"
	// OrderTokensColumn is the table column denoting the order_tokens relation/edge.
	OrderTokensColumn = "sender_profile_order_tokens"
	// LinkedAddressTable is the table that holds the linked_address relation/edge.
	LinkedAddressTable = "linked_addresses"
	// LinkedAddressInverseTable is the table name for the LinkedAddress entity.
	// It exists in this package in order to avoid circular dependency with the "linkedaddress" package.
	LinkedAddressInverseTable = "linked_addresses"
	// LinkedAddressColumn is the table column denoting the linked_address relation/edge.
	LinkedAddressColumn = "sender_profile_linked_address"
)

Variables

View Source
var (
	// DefaultDomainWhitelist holds the default value on creation for the "domain_whitelist" field.
	DefaultDomainWhitelist []string
	// DefaultIsPartner holds the default value on creation for the "is_partner" field.
	DefaultIsPartner bool
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
	// 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 senderprofile fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func HasAPIKey

func HasAPIKey() predicate.SenderProfile

HasAPIKey applies the HasEdge predicate on the "api_key" edge.

func HasAPIKeyWith

func HasAPIKeyWith(preds ...predicate.APIKey) predicate.SenderProfile

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

func HasLinkedAddress

func HasLinkedAddress() predicate.SenderProfile

HasLinkedAddress applies the HasEdge predicate on the "linked_address" edge.

func HasLinkedAddressWith

func HasLinkedAddressWith(preds ...predicate.LinkedAddress) predicate.SenderProfile

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

func HasOrderTokens

func HasOrderTokens() predicate.SenderProfile

HasOrderTokens applies the HasEdge predicate on the "order_tokens" edge.

func HasOrderTokensWith

func HasOrderTokensWith(preds ...predicate.SenderOrderToken) predicate.SenderProfile

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

func HasPaymentOrders

func HasPaymentOrders() predicate.SenderProfile

HasPaymentOrders applies the HasEdge predicate on the "payment_orders" edge.

func HasPaymentOrdersWith

func HasPaymentOrdersWith(preds ...predicate.PaymentOrder) predicate.SenderProfile

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

func HasUser

func HasUser() predicate.SenderProfile

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.SenderProfile

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.SenderProfile

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.SenderProfile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.SenderProfile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.SenderProfile

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.SenderProfile

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.SenderProfile

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func IsPartner

func IsPartner(v bool) predicate.SenderProfile

IsPartner applies equality check predicate on the "is_partner" field. It's identical to IsPartnerEQ.

func IsPartnerEQ

func IsPartnerEQ(v bool) predicate.SenderProfile

IsPartnerEQ applies the EQ predicate on the "is_partner" field.

func IsPartnerNEQ

func IsPartnerNEQ(v bool) predicate.SenderProfile

IsPartnerNEQ applies the NEQ predicate on the "is_partner" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ProviderID

func ProviderID(v string) predicate.SenderProfile

ProviderID applies equality check predicate on the "provider_id" field. It's identical to ProviderIDEQ.

func ProviderIDContains

func ProviderIDContains(v string) predicate.SenderProfile

ProviderIDContains applies the Contains predicate on the "provider_id" field.

func ProviderIDContainsFold

func ProviderIDContainsFold(v string) predicate.SenderProfile

ProviderIDContainsFold applies the ContainsFold predicate on the "provider_id" field.

func ProviderIDEQ

func ProviderIDEQ(v string) predicate.SenderProfile

ProviderIDEQ applies the EQ predicate on the "provider_id" field.

func ProviderIDEqualFold

func ProviderIDEqualFold(v string) predicate.SenderProfile

ProviderIDEqualFold applies the EqualFold predicate on the "provider_id" field.

func ProviderIDGT

func ProviderIDGT(v string) predicate.SenderProfile

ProviderIDGT applies the GT predicate on the "provider_id" field.

func ProviderIDGTE

func ProviderIDGTE(v string) predicate.SenderProfile

ProviderIDGTE applies the GTE predicate on the "provider_id" field.

func ProviderIDHasPrefix

func ProviderIDHasPrefix(v string) predicate.SenderProfile

ProviderIDHasPrefix applies the HasPrefix predicate on the "provider_id" field.

func ProviderIDHasSuffix

func ProviderIDHasSuffix(v string) predicate.SenderProfile

ProviderIDHasSuffix applies the HasSuffix predicate on the "provider_id" field.

func ProviderIDIn

func ProviderIDIn(vs ...string) predicate.SenderProfile

ProviderIDIn applies the In predicate on the "provider_id" field.

func ProviderIDIsNil

func ProviderIDIsNil() predicate.SenderProfile

ProviderIDIsNil applies the IsNil predicate on the "provider_id" field.

func ProviderIDLT

func ProviderIDLT(v string) predicate.SenderProfile

ProviderIDLT applies the LT predicate on the "provider_id" field.

func ProviderIDLTE

func ProviderIDLTE(v string) predicate.SenderProfile

ProviderIDLTE applies the LTE predicate on the "provider_id" field.

func ProviderIDNEQ

func ProviderIDNEQ(v string) predicate.SenderProfile

ProviderIDNEQ applies the NEQ predicate on the "provider_id" field.

func ProviderIDNotIn

func ProviderIDNotIn(vs ...string) predicate.SenderProfile

ProviderIDNotIn applies the NotIn predicate on the "provider_id" field.

func ProviderIDNotNil

func ProviderIDNotNil() predicate.SenderProfile

ProviderIDNotNil applies the NotNil predicate on the "provider_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SenderProfile

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SenderProfile

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SenderProfile

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SenderProfile

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SenderProfile

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SenderProfile

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SenderProfile

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

func UpdatedAtNotIn

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

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

func WebhookURL

func WebhookURL(v string) predicate.SenderProfile

WebhookURL applies equality check predicate on the "webhook_url" field. It's identical to WebhookURLEQ.

func WebhookURLContains

func WebhookURLContains(v string) predicate.SenderProfile

WebhookURLContains applies the Contains predicate on the "webhook_url" field.

func WebhookURLContainsFold

func WebhookURLContainsFold(v string) predicate.SenderProfile

WebhookURLContainsFold applies the ContainsFold predicate on the "webhook_url" field.

func WebhookURLEQ

func WebhookURLEQ(v string) predicate.SenderProfile

WebhookURLEQ applies the EQ predicate on the "webhook_url" field.

func WebhookURLEqualFold

func WebhookURLEqualFold(v string) predicate.SenderProfile

WebhookURLEqualFold applies the EqualFold predicate on the "webhook_url" field.

func WebhookURLGT

func WebhookURLGT(v string) predicate.SenderProfile

WebhookURLGT applies the GT predicate on the "webhook_url" field.

func WebhookURLGTE

func WebhookURLGTE(v string) predicate.SenderProfile

WebhookURLGTE applies the GTE predicate on the "webhook_url" field.

func WebhookURLHasPrefix

func WebhookURLHasPrefix(v string) predicate.SenderProfile

WebhookURLHasPrefix applies the HasPrefix predicate on the "webhook_url" field.

func WebhookURLHasSuffix

func WebhookURLHasSuffix(v string) predicate.SenderProfile

WebhookURLHasSuffix applies the HasSuffix predicate on the "webhook_url" field.

func WebhookURLIn

func WebhookURLIn(vs ...string) predicate.SenderProfile

WebhookURLIn applies the In predicate on the "webhook_url" field.

func WebhookURLIsNil

func WebhookURLIsNil() predicate.SenderProfile

WebhookURLIsNil applies the IsNil predicate on the "webhook_url" field.

func WebhookURLLT

func WebhookURLLT(v string) predicate.SenderProfile

WebhookURLLT applies the LT predicate on the "webhook_url" field.

func WebhookURLLTE

func WebhookURLLTE(v string) predicate.SenderProfile

WebhookURLLTE applies the LTE predicate on the "webhook_url" field.

func WebhookURLNEQ

func WebhookURLNEQ(v string) predicate.SenderProfile

WebhookURLNEQ applies the NEQ predicate on the "webhook_url" field.

func WebhookURLNotIn

func WebhookURLNotIn(vs ...string) predicate.SenderProfile

WebhookURLNotIn applies the NotIn predicate on the "webhook_url" field.

func WebhookURLNotNil

func WebhookURLNotNil() predicate.SenderProfile

WebhookURLNotNil applies the NotNil predicate on the "webhook_url" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SenderProfile queries.

func ByAPIKeyField

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

ByAPIKeyField orders the results by api_key field.

func ByID

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

ByID orders the results by the id field.

func ByIsActive

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

ByIsActive orders the results by the is_active field.

func ByIsPartner

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

ByIsPartner orders the results by the is_partner field.

func ByLinkedAddress

func ByLinkedAddress(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLinkedAddress orders the results by linked_address terms.

func ByLinkedAddressCount

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

ByLinkedAddressCount orders the results by linked_address count.

func ByOrderTokens

func ByOrderTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrderTokens orders the results by order_tokens terms.

func ByOrderTokensCount

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

ByOrderTokensCount orders the results by order_tokens count.

func ByPaymentOrders

func ByPaymentOrders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPaymentOrders orders the results by payment_orders terms.

func ByPaymentOrdersCount

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

ByPaymentOrdersCount orders the results by payment_orders count.

func ByProviderID

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

ByProviderID orders the results by the provider_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

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

ByUserField orders the results by user field.

func ByWebhookURL

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

ByWebhookURL orders the results by the webhook_url field.

Jump to

Keyboard shortcuts

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