subscriptionnotification

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the subscriptionnotification type in the database.
	Label = "subscription_notification"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldCommentID holds the string denoting the comment_id field in the database.
	FieldCommentID = "comment_id"
	// FieldActorID holds the string denoting the actor_id field in the database.
	FieldActorID = "actor_id"
	// FieldTermID holds the string denoting the term_id field in the database.
	FieldTermID = "term_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldReadAt holds the string denoting the read_at field in the database.
	FieldReadAt = "read_at"
	// FieldMailState holds the string denoting the mail_state field in the database.
	FieldMailState = "mail_state"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// EdgeComment holds the string denoting the comment edge name in mutations.
	EdgeComment = "comment"
	// EdgeActor holds the string denoting the actor edge name in mutations.
	EdgeActor = "actor"
	// EdgeTerm holds the string denoting the term edge name in mutations.
	EdgeTerm = "term"
	// Table holds the table name of the subscriptionnotification in the database.
	Table = "subscription_notifications"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "subscription_notifications"
	// 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_id"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "subscription_notifications"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "node_id"
	// CommentTable is the table that holds the comment relation/edge.
	CommentTable = "subscription_notifications"
	// CommentInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentInverseTable = "comments"
	// CommentColumn is the table column denoting the comment relation/edge.
	CommentColumn = "comment_id"
	// ActorTable is the table that holds the actor relation/edge.
	ActorTable = "subscription_notifications"
	// ActorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	ActorInverseTable = "users"
	// ActorColumn is the table column denoting the actor relation/edge.
	ActorColumn = "actor_id"
	// TermTable is the table that holds the term relation/edge.
	TermTable = "subscription_notifications"
	// TermInverseTable is the table name for the Term entity.
	// It exists in this package in order to avoid circular dependency with the "term" package.
	TermInverseTable = "taxonomy_term_data"
	// TermColumn is the table column denoting the term relation/edge.
	TermColumn = "term_id"
)

Variables

View Source
var (
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
	// DefaultMailState holds the default value on creation for the "mail_state" field.
	DefaultMailState int8
)

Columns holds all SQL columns for subscriptionnotification fields.

Functions

func ActorID

ActorID applies equality check predicate on the "actor_id" field. It's identical to ActorIDEQ.

func ActorIDEQ

ActorIDEQ applies the EQ predicate on the "actor_id" field.

func ActorIDIn

func ActorIDIn(vs ...int) predicate.SubscriptionNotification

ActorIDIn applies the In predicate on the "actor_id" field.

func ActorIDIsNil

func ActorIDIsNil() predicate.SubscriptionNotification

ActorIDIsNil applies the IsNil predicate on the "actor_id" field.

func ActorIDNEQ

ActorIDNEQ applies the NEQ predicate on the "actor_id" field.

func ActorIDNotIn

func ActorIDNotIn(vs ...int) predicate.SubscriptionNotification

ActorIDNotIn applies the NotIn predicate on the "actor_id" field.

func ActorIDNotNil

func ActorIDNotNil() predicate.SubscriptionNotification

ActorIDNotNil applies the NotNil predicate on the "actor_id" field.

func And

And groups predicates with the AND operator between them.

func CommentID

CommentID applies equality check predicate on the "comment_id" field. It's identical to CommentIDEQ.

func CommentIDEQ

func CommentIDEQ(v int) predicate.SubscriptionNotification

CommentIDEQ applies the EQ predicate on the "comment_id" field.

func CommentIDIn

func CommentIDIn(vs ...int) predicate.SubscriptionNotification

CommentIDIn applies the In predicate on the "comment_id" field.

func CommentIDIsNil

func CommentIDIsNil() predicate.SubscriptionNotification

CommentIDIsNil applies the IsNil predicate on the "comment_id" field.

func CommentIDNEQ

func CommentIDNEQ(v int) predicate.SubscriptionNotification

CommentIDNEQ applies the NEQ predicate on the "comment_id" field.

func CommentIDNotIn

func CommentIDNotIn(vs ...int) predicate.SubscriptionNotification

CommentIDNotIn applies the NotIn predicate on the "comment_id" field.

func CommentIDNotNil

func CommentIDNotNil() predicate.SubscriptionNotification

CommentIDNotNil applies the NotNil predicate on the "comment_id" field.

func CreatedAt

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

func CreatedAtEQ

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

func CreatedAtGT

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

func CreatedAtGTE

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

func CreatedAtIn

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

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

func CreatedAtLT

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

func CreatedAtLTE

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

func CreatedAtNEQ

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

func CreatedAtNotIn

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

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

func HasActor

HasActor applies the HasEdge predicate on the "actor" edge.

func HasActorWith

func HasActorWith(preds ...predicate.User) predicate.SubscriptionNotification

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

func HasComment

HasComment applies the HasEdge predicate on the "comment" edge.

func HasCommentWith

func HasCommentWith(preds ...predicate.Comment) predicate.SubscriptionNotification

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

func HasNode

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.SubscriptionNotification

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

func HasTerm

HasTerm applies the HasEdge predicate on the "term" edge.

func HasTermWith

func HasTermWith(preds ...predicate.Term) predicate.SubscriptionNotification

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

func HasUser

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

func HasUserWith

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

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

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.SubscriptionNotification

IDNotIn applies the NotIn predicate on the ID field.

func Kind

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.SubscriptionNotification

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.SubscriptionNotification

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

KindGT applies the GT predicate on the "kind" field.

func KindGTE

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.SubscriptionNotification

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.SubscriptionNotification

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

KindIn applies the In predicate on the "kind" field.

func KindLT

KindLT applies the LT predicate on the "kind" field.

func KindLTE

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.SubscriptionNotification

KindNotIn applies the NotIn predicate on the "kind" field.

func MailState

MailState applies equality check predicate on the "mail_state" field. It's identical to MailStateEQ.

func MailStateEQ

MailStateEQ applies the EQ predicate on the "mail_state" field.

func MailStateGT

MailStateGT applies the GT predicate on the "mail_state" field.

func MailStateGTE

func MailStateGTE(v int8) predicate.SubscriptionNotification

MailStateGTE applies the GTE predicate on the "mail_state" field.

func MailStateIn

func MailStateIn(vs ...int8) predicate.SubscriptionNotification

MailStateIn applies the In predicate on the "mail_state" field.

func MailStateLT

MailStateLT applies the LT predicate on the "mail_state" field.

func MailStateLTE

func MailStateLTE(v int8) predicate.SubscriptionNotification

MailStateLTE applies the LTE predicate on the "mail_state" field.

func MailStateNEQ

func MailStateNEQ(v int8) predicate.SubscriptionNotification

MailStateNEQ applies the NEQ predicate on the "mail_state" field.

func MailStateNotIn

func MailStateNotIn(vs ...int8) predicate.SubscriptionNotification

MailStateNotIn applies the NotIn predicate on the "mail_state" field.

func NodeID

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDEQ

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...int) predicate.SubscriptionNotification

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDNEQ

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...int) predicate.SubscriptionNotification

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ReadAt

ReadAt applies equality check predicate on the "read_at" field. It's identical to ReadAtEQ.

func ReadAtEQ

ReadAtEQ applies the EQ predicate on the "read_at" field.

func ReadAtGT

ReadAtGT applies the GT predicate on the "read_at" field.

func ReadAtGTE

ReadAtGTE applies the GTE predicate on the "read_at" field.

func ReadAtIn

ReadAtIn applies the In predicate on the "read_at" field.

func ReadAtIsNil

func ReadAtIsNil() predicate.SubscriptionNotification

ReadAtIsNil applies the IsNil predicate on the "read_at" field.

func ReadAtLT

ReadAtLT applies the LT predicate on the "read_at" field.

func ReadAtLTE

ReadAtLTE applies the LTE predicate on the "read_at" field.

func ReadAtNEQ

ReadAtNEQ applies the NEQ predicate on the "read_at" field.

func ReadAtNotIn

func ReadAtNotIn(vs ...time.Time) predicate.SubscriptionNotification

ReadAtNotIn applies the NotIn predicate on the "read_at" field.

func ReadAtNotNil

func ReadAtNotNil() predicate.SubscriptionNotification

ReadAtNotNil applies the NotNil predicate on the "read_at" field.

func TermID

TermID applies equality check predicate on the "term_id" field. It's identical to TermIDEQ.

func TermIDEQ

TermIDEQ applies the EQ predicate on the "term_id" field.

func TermIDIn

func TermIDIn(vs ...int) predicate.SubscriptionNotification

TermIDIn applies the In predicate on the "term_id" field.

func TermIDIsNil

func TermIDIsNil() predicate.SubscriptionNotification

TermIDIsNil applies the IsNil predicate on the "term_id" field.

func TermIDNEQ

TermIDNEQ applies the NEQ predicate on the "term_id" field.

func TermIDNotIn

func TermIDNotIn(vs ...int) predicate.SubscriptionNotification

TermIDNotIn applies the NotIn predicate on the "term_id" field.

func TermIDNotNil

func TermIDNotNil() predicate.SubscriptionNotification

TermIDNotNil applies the NotNil predicate on the "term_id" field.

func UserID

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.SubscriptionNotification

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.SubscriptionNotification

UserIDNotIn applies the NotIn predicate on the "user_id" 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 SubscriptionNotification queries.

func ByActorField

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

ByActorField orders the results by actor field.

func ByActorID

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

ByActorID orders the results by the actor_id field.

func ByCommentField

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

ByCommentField orders the results by comment field.

func ByCommentID

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

ByCommentID orders the results by the comment_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByMailState

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

ByMailState orders the results by the mail_state field.

func ByNodeField

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

ByNodeField orders the results by node field.

func ByNodeID

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

ByNodeID orders the results by the node_id field.

func ByReadAt

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

ByReadAt orders the results by the read_at field.

func ByTermField

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

ByTermField orders the results by term field.

func ByTermID

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

ByTermID orders the results by the term_id field.

func ByUserField

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

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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