subscription

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the subscription type in the database.
	Label = "subscription"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldRefersType holds the string denoting the refers_type field in the database.
	FieldRefersType = "refers_type"
	// FieldRefersTo holds the string denoting the refers_to field in the database.
	FieldRefersTo = "refers_to"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// EdgeNotifications holds the string denoting the notifications edge name in mutations.
	EdgeNotifications = "notifications"
	// Table holds the table name of the subscription in the database.
	Table = "subscriptions"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "subscriptions"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "subscription_account"
	// NotificationsTable is the table that holds the notifications relation/edge.
	NotificationsTable = "notifications"
	// NotificationsInverseTable is the table name for the Notification entity.
	// It exists in this package in order to avoid circular dependency with the "notification" package.
	NotificationsInverseTable = "notifications"
	// NotificationsColumn is the table column denoting the notifications relation/edge.
	NotificationsColumn = "subscription_notifications"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// RefersTypeValidator is a validator for the "refers_type" field. It is called by the builders before save.
	RefersTypeValidator func(string) error
	// RefersToValidator is a validator for the "refers_to" field. It is called by the builders before save.
	RefersToValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
	// 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 subscription fields.

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

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

Functions

func And

func And(predicates ...predicate.Subscription) predicate.Subscription

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Subscription

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Subscription

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Subscription

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Subscription

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Subscription

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Subscription

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Subscription

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

func CreatedAtNotIn

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

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

func HasAccount

func HasAccount() predicate.Subscription

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.Subscription

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

func HasNotifications

func HasNotifications() predicate.Subscription

HasNotifications applies the HasEdge predicate on the "notifications" edge.

func HasNotificationsWith

func HasNotificationsWith(preds ...predicate.Notification) predicate.Subscription

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.Subscription

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.Subscription

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.Subscription

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.Subscription

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.Subscription

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.Subscription

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.Subscription

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.Subscription

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Subscription) predicate.Subscription

Or groups predicates with the OR operator between them.

func RefersTo

func RefersTo(v string) predicate.Subscription

RefersTo applies equality check predicate on the "refers_to" field. It's identical to RefersToEQ.

func RefersToContains

func RefersToContains(v string) predicate.Subscription

RefersToContains applies the Contains predicate on the "refers_to" field.

func RefersToContainsFold

func RefersToContainsFold(v string) predicate.Subscription

RefersToContainsFold applies the ContainsFold predicate on the "refers_to" field.

func RefersToEQ

func RefersToEQ(v string) predicate.Subscription

RefersToEQ applies the EQ predicate on the "refers_to" field.

func RefersToEqualFold

func RefersToEqualFold(v string) predicate.Subscription

RefersToEqualFold applies the EqualFold predicate on the "refers_to" field.

func RefersToGT

func RefersToGT(v string) predicate.Subscription

RefersToGT applies the GT predicate on the "refers_to" field.

func RefersToGTE

func RefersToGTE(v string) predicate.Subscription

RefersToGTE applies the GTE predicate on the "refers_to" field.

func RefersToHasPrefix

func RefersToHasPrefix(v string) predicate.Subscription

RefersToHasPrefix applies the HasPrefix predicate on the "refers_to" field.

func RefersToHasSuffix

func RefersToHasSuffix(v string) predicate.Subscription

RefersToHasSuffix applies the HasSuffix predicate on the "refers_to" field.

func RefersToIn

func RefersToIn(vs ...string) predicate.Subscription

RefersToIn applies the In predicate on the "refers_to" field.

func RefersToLT

func RefersToLT(v string) predicate.Subscription

RefersToLT applies the LT predicate on the "refers_to" field.

func RefersToLTE

func RefersToLTE(v string) predicate.Subscription

RefersToLTE applies the LTE predicate on the "refers_to" field.

func RefersToNEQ

func RefersToNEQ(v string) predicate.Subscription

RefersToNEQ applies the NEQ predicate on the "refers_to" field.

func RefersToNotIn

func RefersToNotIn(vs ...string) predicate.Subscription

RefersToNotIn applies the NotIn predicate on the "refers_to" field.

func RefersType

func RefersType(v string) predicate.Subscription

RefersType applies equality check predicate on the "refers_type" field. It's identical to RefersTypeEQ.

func RefersTypeContains

func RefersTypeContains(v string) predicate.Subscription

RefersTypeContains applies the Contains predicate on the "refers_type" field.

func RefersTypeContainsFold

func RefersTypeContainsFold(v string) predicate.Subscription

RefersTypeContainsFold applies the ContainsFold predicate on the "refers_type" field.

func RefersTypeEQ

func RefersTypeEQ(v string) predicate.Subscription

RefersTypeEQ applies the EQ predicate on the "refers_type" field.

func RefersTypeEqualFold

func RefersTypeEqualFold(v string) predicate.Subscription

RefersTypeEqualFold applies the EqualFold predicate on the "refers_type" field.

func RefersTypeGT

func RefersTypeGT(v string) predicate.Subscription

RefersTypeGT applies the GT predicate on the "refers_type" field.

func RefersTypeGTE

func RefersTypeGTE(v string) predicate.Subscription

RefersTypeGTE applies the GTE predicate on the "refers_type" field.

func RefersTypeHasPrefix

func RefersTypeHasPrefix(v string) predicate.Subscription

RefersTypeHasPrefix applies the HasPrefix predicate on the "refers_type" field.

func RefersTypeHasSuffix

func RefersTypeHasSuffix(v string) predicate.Subscription

RefersTypeHasSuffix applies the HasSuffix predicate on the "refers_type" field.

func RefersTypeIn

func RefersTypeIn(vs ...string) predicate.Subscription

RefersTypeIn applies the In predicate on the "refers_type" field.

func RefersTypeLT

func RefersTypeLT(v string) predicate.Subscription

RefersTypeLT applies the LT predicate on the "refers_type" field.

func RefersTypeLTE

func RefersTypeLTE(v string) predicate.Subscription

RefersTypeLTE applies the LTE predicate on the "refers_type" field.

func RefersTypeNEQ

func RefersTypeNEQ(v string) predicate.Subscription

RefersTypeNEQ applies the NEQ predicate on the "refers_type" field.

func RefersTypeNotIn

func RefersTypeNotIn(vs ...string) predicate.Subscription

RefersTypeNotIn applies the NotIn predicate on the "refers_type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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