notificationpreference

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the notificationpreference type in the database.
	Label = "notification_preference"
	// 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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldChannel holds the string denoting the channel field in the database.
	FieldChannel = "channel"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldDestination holds the string denoting the destination field in the database.
	FieldDestination = "destination"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldCadence holds the string denoting the cadence field in the database.
	FieldCadence = "cadence"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// FieldTopicPatterns holds the string denoting the topic_patterns field in the database.
	FieldTopicPatterns = "topic_patterns"
	// FieldTopicOverrides holds the string denoting the topic_overrides field in the database.
	FieldTopicOverrides = "topic_overrides"
	// FieldTemplateID holds the string denoting the template_id field in the database.
	FieldTemplateID = "template_id"
	// FieldMuteUntil holds the string denoting the mute_until field in the database.
	FieldMuteUntil = "mute_until"
	// FieldQuietHoursStart holds the string denoting the quiet_hours_start field in the database.
	FieldQuietHoursStart = "quiet_hours_start"
	// FieldQuietHoursEnd holds the string denoting the quiet_hours_end field in the database.
	FieldQuietHoursEnd = "quiet_hours_end"
	// FieldTimezone holds the string denoting the timezone field in the database.
	FieldTimezone = "timezone"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldVerifiedAt holds the string denoting the verified_at field in the database.
	FieldVerifiedAt = "verified_at"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// FieldLastError holds the string denoting the last_error field in the database.
	FieldLastError = "last_error"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeNotificationTemplate holds the string denoting the notification_template edge name in mutations.
	EdgeNotificationTemplate = "notification_template"
	// Table holds the table name of the notificationpreference in the database.
	Table = "notification_preferences"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "notification_preferences"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "notification_preferences"
	// 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"
	// NotificationTemplateTable is the table that holds the notification_template relation/edge.
	NotificationTemplateTable = "notification_preferences"
	// NotificationTemplateInverseTable is the table name for the NotificationTemplate entity.
	// It exists in this package in order to avoid circular dependency with the "notificationtemplate" package.
	NotificationTemplateInverseTable = "notification_templates"
	// NotificationTemplateColumn is the table column denoting the notification_template relation/edge.
	NotificationTemplateColumn = "template_id"
)
View Source
const DefaultCadence enums.NotificationCadence = "IMMEDIATE"
View Source
const DefaultStatus enums.NotificationChannelStatus = "ENABLED"

Variables

View Source
var (
	Hooks        [4]ent.Hook
	Interceptors [2]ent.Interceptor
	Policy       ent.Policy
	// 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
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// TimezoneValidator is a validator for the "timezone" field. It is called by the builders before save.
	TimezoneValidator func(string) error
	// DefaultIsDefault holds the default value on creation for the "is_default" field.
	DefaultIsDefault bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for notificationpreference fields.

Functions

func And

And groups predicates with the AND operator between them.

func CadenceEQ

CadenceEQ applies the EQ predicate on the "cadence" field.

func CadenceIn

CadenceIn applies the In predicate on the "cadence" field.

func CadenceNEQ

CadenceNEQ applies the NEQ predicate on the "cadence" field.

func CadenceNotIn

CadenceNotIn applies the NotIn predicate on the "cadence" field.

func CadenceValidator

func CadenceValidator(c enums.NotificationCadence) error

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

func ChannelEQ

ChannelEQ applies the EQ predicate on the "channel" field.

func ChannelIn

ChannelIn applies the In predicate on the "channel" field.

func ChannelNEQ

ChannelNEQ applies the NEQ predicate on the "channel" field.

func ChannelNotIn

func ChannelNotIn(vs ...enums.Channel) predicate.NotificationPreference

ChannelNotIn applies the NotIn predicate on the "channel" field.

func ChannelValidator

func ChannelValidator(c enums.Channel) error

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

func ConfigIsNil

func ConfigIsNil() predicate.NotificationPreference

ConfigIsNil applies the IsNil predicate on the "config" field.

func ConfigNotNil

func ConfigNotNil() predicate.NotificationPreference

ConfigNotNil applies the NotNil predicate on the "config" 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

func CreatedAtGTE(v time.Time) predicate.NotificationPreference

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.NotificationPreference

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NotificationPreference

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NotificationPreference

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.NotificationPreference

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.NotificationPreference

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.NotificationPreference

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.NotificationPreference

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.NotificationPreference

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.NotificationPreference

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.NotificationPreference

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.NotificationPreference

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.NotificationPreference

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.NotificationPreference

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.NotificationPreference

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.NotificationPreference

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.NotificationPreference

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.NotificationPreference

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.NotificationPreference

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.NotificationPreference

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.NotificationPreference

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.NotificationPreference

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.NotificationPreference

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.NotificationPreference

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.NotificationPreference

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.NotificationPreference

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.NotificationPreference

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.NotificationPreference

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.NotificationPreference

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.NotificationPreference

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.NotificationPreference

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.NotificationPreference

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.NotificationPreference

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.NotificationPreference

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.NotificationPreference

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.NotificationPreference

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func Destination

Destination applies equality check predicate on the "destination" field. It's identical to DestinationEQ.

func DestinationContains

func DestinationContains(v string) predicate.NotificationPreference

DestinationContains applies the Contains predicate on the "destination" field.

func DestinationContainsFold

func DestinationContainsFold(v string) predicate.NotificationPreference

DestinationContainsFold applies the ContainsFold predicate on the "destination" field.

func DestinationEQ

func DestinationEQ(v string) predicate.NotificationPreference

DestinationEQ applies the EQ predicate on the "destination" field.

func DestinationEqualFold

func DestinationEqualFold(v string) predicate.NotificationPreference

DestinationEqualFold applies the EqualFold predicate on the "destination" field.

func DestinationGT

func DestinationGT(v string) predicate.NotificationPreference

DestinationGT applies the GT predicate on the "destination" field.

func DestinationGTE

func DestinationGTE(v string) predicate.NotificationPreference

DestinationGTE applies the GTE predicate on the "destination" field.

func DestinationHasPrefix

func DestinationHasPrefix(v string) predicate.NotificationPreference

DestinationHasPrefix applies the HasPrefix predicate on the "destination" field.

func DestinationHasSuffix

func DestinationHasSuffix(v string) predicate.NotificationPreference

DestinationHasSuffix applies the HasSuffix predicate on the "destination" field.

func DestinationIn

func DestinationIn(vs ...string) predicate.NotificationPreference

DestinationIn applies the In predicate on the "destination" field.

func DestinationIsNil

func DestinationIsNil() predicate.NotificationPreference

DestinationIsNil applies the IsNil predicate on the "destination" field.

func DestinationLT

func DestinationLT(v string) predicate.NotificationPreference

DestinationLT applies the LT predicate on the "destination" field.

func DestinationLTE

func DestinationLTE(v string) predicate.NotificationPreference

DestinationLTE applies the LTE predicate on the "destination" field.

func DestinationNEQ

func DestinationNEQ(v string) predicate.NotificationPreference

DestinationNEQ applies the NEQ predicate on the "destination" field.

func DestinationNotIn

func DestinationNotIn(vs ...string) predicate.NotificationPreference

DestinationNotIn applies the NotIn predicate on the "destination" field.

func DestinationNotNil

func DestinationNotNil() predicate.NotificationPreference

DestinationNotNil applies the NotNil predicate on the "destination" field.

func Enabled

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasNotificationTemplate

func HasNotificationTemplate() predicate.NotificationPreference

HasNotificationTemplate applies the HasEdge predicate on the "notification_template" edge.

func HasNotificationTemplateWith

func HasNotificationTemplateWith(preds ...predicate.NotificationTemplate) predicate.NotificationPreference

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

func HasOwner

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

HasOwnerWith applies the HasEdge predicate on the "owner" 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.NotificationPreference

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 IDContainsFold

func IDContainsFold(id string) predicate.NotificationPreference

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.NotificationPreference

IDEqualFold applies the EqualFold 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 ...string) predicate.NotificationPreference

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.NotificationPreference

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.NotificationPreference

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func LastError

LastError applies equality check predicate on the "last_error" field. It's identical to LastErrorEQ.

func LastErrorContains

func LastErrorContains(v string) predicate.NotificationPreference

LastErrorContains applies the Contains predicate on the "last_error" field.

func LastErrorContainsFold

func LastErrorContainsFold(v string) predicate.NotificationPreference

LastErrorContainsFold applies the ContainsFold predicate on the "last_error" field.

func LastErrorEQ

LastErrorEQ applies the EQ predicate on the "last_error" field.

func LastErrorEqualFold

func LastErrorEqualFold(v string) predicate.NotificationPreference

LastErrorEqualFold applies the EqualFold predicate on the "last_error" field.

func LastErrorGT

LastErrorGT applies the GT predicate on the "last_error" field.

func LastErrorGTE

func LastErrorGTE(v string) predicate.NotificationPreference

LastErrorGTE applies the GTE predicate on the "last_error" field.

func LastErrorHasPrefix

func LastErrorHasPrefix(v string) predicate.NotificationPreference

LastErrorHasPrefix applies the HasPrefix predicate on the "last_error" field.

func LastErrorHasSuffix

func LastErrorHasSuffix(v string) predicate.NotificationPreference

LastErrorHasSuffix applies the HasSuffix predicate on the "last_error" field.

func LastErrorIn

func LastErrorIn(vs ...string) predicate.NotificationPreference

LastErrorIn applies the In predicate on the "last_error" field.

func LastErrorIsNil

func LastErrorIsNil() predicate.NotificationPreference

LastErrorIsNil applies the IsNil predicate on the "last_error" field.

func LastErrorLT

LastErrorLT applies the LT predicate on the "last_error" field.

func LastErrorLTE

func LastErrorLTE(v string) predicate.NotificationPreference

LastErrorLTE applies the LTE predicate on the "last_error" field.

func LastErrorNEQ

func LastErrorNEQ(v string) predicate.NotificationPreference

LastErrorNEQ applies the NEQ predicate on the "last_error" field.

func LastErrorNotIn

func LastErrorNotIn(vs ...string) predicate.NotificationPreference

LastErrorNotIn applies the NotIn predicate on the "last_error" field.

func LastErrorNotNil

func LastErrorNotNil() predicate.NotificationPreference

LastErrorNotNil applies the NotNil predicate on the "last_error" field.

func LastUsedAt

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.NotificationPreference

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.NotificationPreference

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.NotificationPreference

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.NotificationPreference

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.NotificationPreference

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.NotificationPreference

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.NotificationPreference

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.NotificationPreference

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.NotificationPreference

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.NotificationPreference

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func MetadataIsNil

func MetadataIsNil() predicate.NotificationPreference

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.NotificationPreference

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func MuteUntil

MuteUntil applies equality check predicate on the "mute_until" field. It's identical to MuteUntilEQ.

func MuteUntilEQ

MuteUntilEQ applies the EQ predicate on the "mute_until" field.

func MuteUntilGT

MuteUntilGT applies the GT predicate on the "mute_until" field.

func MuteUntilGTE

func MuteUntilGTE(v time.Time) predicate.NotificationPreference

MuteUntilGTE applies the GTE predicate on the "mute_until" field.

func MuteUntilIn

func MuteUntilIn(vs ...time.Time) predicate.NotificationPreference

MuteUntilIn applies the In predicate on the "mute_until" field.

func MuteUntilIsNil

func MuteUntilIsNil() predicate.NotificationPreference

MuteUntilIsNil applies the IsNil predicate on the "mute_until" field.

func MuteUntilLT

MuteUntilLT applies the LT predicate on the "mute_until" field.

func MuteUntilLTE

func MuteUntilLTE(v time.Time) predicate.NotificationPreference

MuteUntilLTE applies the LTE predicate on the "mute_until" field.

func MuteUntilNEQ

func MuteUntilNEQ(v time.Time) predicate.NotificationPreference

MuteUntilNEQ applies the NEQ predicate on the "mute_until" field.

func MuteUntilNotIn

func MuteUntilNotIn(vs ...time.Time) predicate.NotificationPreference

MuteUntilNotIn applies the NotIn predicate on the "mute_until" field.

func MuteUntilNotNil

func MuteUntilNotNil() predicate.NotificationPreference

MuteUntilNotNil applies the NotNil predicate on the "mute_until" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OwnerID

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.NotificationPreference

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.NotificationPreference

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.NotificationPreference

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.NotificationPreference

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.NotificationPreference

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.NotificationPreference

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.NotificationPreference

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.NotificationPreference

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.NotificationPreference

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func PriorityEQ

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityIn

PriorityIn applies the In predicate on the "priority" field.

func PriorityIsNil

func PriorityIsNil() predicate.NotificationPreference

PriorityIsNil applies the IsNil predicate on the "priority" field.

func PriorityNEQ

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...enums.Priority) predicate.NotificationPreference

PriorityNotIn applies the NotIn predicate on the "priority" field.

func PriorityNotNil

func PriorityNotNil() predicate.NotificationPreference

PriorityNotNil applies the NotNil predicate on the "priority" field.

func PriorityValidator

func PriorityValidator(pr enums.Priority) error

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

func Provider

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.NotificationPreference

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.NotificationPreference

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.NotificationPreference

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.NotificationPreference

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.NotificationPreference

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.NotificationPreference

ProviderIn applies the In predicate on the "provider" field.

func ProviderIsNil

func ProviderIsNil() predicate.NotificationPreference

ProviderIsNil applies the IsNil predicate on the "provider" field.

func ProviderLT

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.NotificationPreference

ProviderNotIn applies the NotIn predicate on the "provider" field.

func ProviderNotNil

func ProviderNotNil() predicate.NotificationPreference

ProviderNotNil applies the NotNil predicate on the "provider" field.

func QuietHoursEnd

func QuietHoursEnd(v string) predicate.NotificationPreference

QuietHoursEnd applies equality check predicate on the "quiet_hours_end" field. It's identical to QuietHoursEndEQ.

func QuietHoursEndContains

func QuietHoursEndContains(v string) predicate.NotificationPreference

QuietHoursEndContains applies the Contains predicate on the "quiet_hours_end" field.

func QuietHoursEndContainsFold

func QuietHoursEndContainsFold(v string) predicate.NotificationPreference

QuietHoursEndContainsFold applies the ContainsFold predicate on the "quiet_hours_end" field.

func QuietHoursEndEQ

func QuietHoursEndEQ(v string) predicate.NotificationPreference

QuietHoursEndEQ applies the EQ predicate on the "quiet_hours_end" field.

func QuietHoursEndEqualFold

func QuietHoursEndEqualFold(v string) predicate.NotificationPreference

QuietHoursEndEqualFold applies the EqualFold predicate on the "quiet_hours_end" field.

func QuietHoursEndGT

func QuietHoursEndGT(v string) predicate.NotificationPreference

QuietHoursEndGT applies the GT predicate on the "quiet_hours_end" field.

func QuietHoursEndGTE

func QuietHoursEndGTE(v string) predicate.NotificationPreference

QuietHoursEndGTE applies the GTE predicate on the "quiet_hours_end" field.

func QuietHoursEndHasPrefix

func QuietHoursEndHasPrefix(v string) predicate.NotificationPreference

QuietHoursEndHasPrefix applies the HasPrefix predicate on the "quiet_hours_end" field.

func QuietHoursEndHasSuffix

func QuietHoursEndHasSuffix(v string) predicate.NotificationPreference

QuietHoursEndHasSuffix applies the HasSuffix predicate on the "quiet_hours_end" field.

func QuietHoursEndIn

func QuietHoursEndIn(vs ...string) predicate.NotificationPreference

QuietHoursEndIn applies the In predicate on the "quiet_hours_end" field.

func QuietHoursEndIsNil

func QuietHoursEndIsNil() predicate.NotificationPreference

QuietHoursEndIsNil applies the IsNil predicate on the "quiet_hours_end" field.

func QuietHoursEndLT

func QuietHoursEndLT(v string) predicate.NotificationPreference

QuietHoursEndLT applies the LT predicate on the "quiet_hours_end" field.

func QuietHoursEndLTE

func QuietHoursEndLTE(v string) predicate.NotificationPreference

QuietHoursEndLTE applies the LTE predicate on the "quiet_hours_end" field.

func QuietHoursEndNEQ

func QuietHoursEndNEQ(v string) predicate.NotificationPreference

QuietHoursEndNEQ applies the NEQ predicate on the "quiet_hours_end" field.

func QuietHoursEndNotIn

func QuietHoursEndNotIn(vs ...string) predicate.NotificationPreference

QuietHoursEndNotIn applies the NotIn predicate on the "quiet_hours_end" field.

func QuietHoursEndNotNil

func QuietHoursEndNotNil() predicate.NotificationPreference

QuietHoursEndNotNil applies the NotNil predicate on the "quiet_hours_end" field.

func QuietHoursStart

func QuietHoursStart(v string) predicate.NotificationPreference

QuietHoursStart applies equality check predicate on the "quiet_hours_start" field. It's identical to QuietHoursStartEQ.

func QuietHoursStartContains

func QuietHoursStartContains(v string) predicate.NotificationPreference

QuietHoursStartContains applies the Contains predicate on the "quiet_hours_start" field.

func QuietHoursStartContainsFold

func QuietHoursStartContainsFold(v string) predicate.NotificationPreference

QuietHoursStartContainsFold applies the ContainsFold predicate on the "quiet_hours_start" field.

func QuietHoursStartEQ

func QuietHoursStartEQ(v string) predicate.NotificationPreference

QuietHoursStartEQ applies the EQ predicate on the "quiet_hours_start" field.

func QuietHoursStartEqualFold

func QuietHoursStartEqualFold(v string) predicate.NotificationPreference

QuietHoursStartEqualFold applies the EqualFold predicate on the "quiet_hours_start" field.

func QuietHoursStartGT

func QuietHoursStartGT(v string) predicate.NotificationPreference

QuietHoursStartGT applies the GT predicate on the "quiet_hours_start" field.

func QuietHoursStartGTE

func QuietHoursStartGTE(v string) predicate.NotificationPreference

QuietHoursStartGTE applies the GTE predicate on the "quiet_hours_start" field.

func QuietHoursStartHasPrefix

func QuietHoursStartHasPrefix(v string) predicate.NotificationPreference

QuietHoursStartHasPrefix applies the HasPrefix predicate on the "quiet_hours_start" field.

func QuietHoursStartHasSuffix

func QuietHoursStartHasSuffix(v string) predicate.NotificationPreference

QuietHoursStartHasSuffix applies the HasSuffix predicate on the "quiet_hours_start" field.

func QuietHoursStartIn

func QuietHoursStartIn(vs ...string) predicate.NotificationPreference

QuietHoursStartIn applies the In predicate on the "quiet_hours_start" field.

func QuietHoursStartIsNil

func QuietHoursStartIsNil() predicate.NotificationPreference

QuietHoursStartIsNil applies the IsNil predicate on the "quiet_hours_start" field.

func QuietHoursStartLT

func QuietHoursStartLT(v string) predicate.NotificationPreference

QuietHoursStartLT applies the LT predicate on the "quiet_hours_start" field.

func QuietHoursStartLTE

func QuietHoursStartLTE(v string) predicate.NotificationPreference

QuietHoursStartLTE applies the LTE predicate on the "quiet_hours_start" field.

func QuietHoursStartNEQ

func QuietHoursStartNEQ(v string) predicate.NotificationPreference

QuietHoursStartNEQ applies the NEQ predicate on the "quiet_hours_start" field.

func QuietHoursStartNotIn

func QuietHoursStartNotIn(vs ...string) predicate.NotificationPreference

QuietHoursStartNotIn applies the NotIn predicate on the "quiet_hours_start" field.

func QuietHoursStartNotNil

func QuietHoursStartNotNil() predicate.NotificationPreference

QuietHoursStartNotNil applies the NotNil predicate on the "quiet_hours_start" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s enums.NotificationChannelStatus) error

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

func TemplateID

TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.

func TemplateIDContains

func TemplateIDContains(v string) predicate.NotificationPreference

TemplateIDContains applies the Contains predicate on the "template_id" field.

func TemplateIDContainsFold

func TemplateIDContainsFold(v string) predicate.NotificationPreference

TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.

func TemplateIDEQ

func TemplateIDEQ(v string) predicate.NotificationPreference

TemplateIDEQ applies the EQ predicate on the "template_id" field.

func TemplateIDEqualFold

func TemplateIDEqualFold(v string) predicate.NotificationPreference

TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.

func TemplateIDGT

func TemplateIDGT(v string) predicate.NotificationPreference

TemplateIDGT applies the GT predicate on the "template_id" field.

func TemplateIDGTE

func TemplateIDGTE(v string) predicate.NotificationPreference

TemplateIDGTE applies the GTE predicate on the "template_id" field.

func TemplateIDHasPrefix

func TemplateIDHasPrefix(v string) predicate.NotificationPreference

TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.

func TemplateIDHasSuffix

func TemplateIDHasSuffix(v string) predicate.NotificationPreference

TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.

func TemplateIDIn

func TemplateIDIn(vs ...string) predicate.NotificationPreference

TemplateIDIn applies the In predicate on the "template_id" field.

func TemplateIDIsNil

func TemplateIDIsNil() predicate.NotificationPreference

TemplateIDIsNil applies the IsNil predicate on the "template_id" field.

func TemplateIDLT

func TemplateIDLT(v string) predicate.NotificationPreference

TemplateIDLT applies the LT predicate on the "template_id" field.

func TemplateIDLTE

func TemplateIDLTE(v string) predicate.NotificationPreference

TemplateIDLTE applies the LTE predicate on the "template_id" field.

func TemplateIDNEQ

func TemplateIDNEQ(v string) predicate.NotificationPreference

TemplateIDNEQ applies the NEQ predicate on the "template_id" field.

func TemplateIDNotIn

func TemplateIDNotIn(vs ...string) predicate.NotificationPreference

TemplateIDNotIn applies the NotIn predicate on the "template_id" field.

func TemplateIDNotNil

func TemplateIDNotNil() predicate.NotificationPreference

TemplateIDNotNil applies the NotNil predicate on the "template_id" field.

func Timezone

Timezone applies equality check predicate on the "timezone" field. It's identical to TimezoneEQ.

func TimezoneContains

func TimezoneContains(v string) predicate.NotificationPreference

TimezoneContains applies the Contains predicate on the "timezone" field.

func TimezoneContainsFold

func TimezoneContainsFold(v string) predicate.NotificationPreference

TimezoneContainsFold applies the ContainsFold predicate on the "timezone" field.

func TimezoneEQ

TimezoneEQ applies the EQ predicate on the "timezone" field.

func TimezoneEqualFold

func TimezoneEqualFold(v string) predicate.NotificationPreference

TimezoneEqualFold applies the EqualFold predicate on the "timezone" field.

func TimezoneGT

TimezoneGT applies the GT predicate on the "timezone" field.

func TimezoneGTE

TimezoneGTE applies the GTE predicate on the "timezone" field.

func TimezoneHasPrefix

func TimezoneHasPrefix(v string) predicate.NotificationPreference

TimezoneHasPrefix applies the HasPrefix predicate on the "timezone" field.

func TimezoneHasSuffix

func TimezoneHasSuffix(v string) predicate.NotificationPreference

TimezoneHasSuffix applies the HasSuffix predicate on the "timezone" field.

func TimezoneIn

func TimezoneIn(vs ...string) predicate.NotificationPreference

TimezoneIn applies the In predicate on the "timezone" field.

func TimezoneIsNil

func TimezoneIsNil() predicate.NotificationPreference

TimezoneIsNil applies the IsNil predicate on the "timezone" field.

func TimezoneLT

TimezoneLT applies the LT predicate on the "timezone" field.

func TimezoneLTE

TimezoneLTE applies the LTE predicate on the "timezone" field.

func TimezoneNEQ

TimezoneNEQ applies the NEQ predicate on the "timezone" field.

func TimezoneNotIn

func TimezoneNotIn(vs ...string) predicate.NotificationPreference

TimezoneNotIn applies the NotIn predicate on the "timezone" field.

func TimezoneNotNil

func TimezoneNotNil() predicate.NotificationPreference

TimezoneNotNil applies the NotNil predicate on the "timezone" field.

func TopicOverridesIsNil

func TopicOverridesIsNil() predicate.NotificationPreference

TopicOverridesIsNil applies the IsNil predicate on the "topic_overrides" field.

func TopicOverridesNotNil

func TopicOverridesNotNil() predicate.NotificationPreference

TopicOverridesNotNil applies the NotNil predicate on the "topic_overrides" field.

func TopicPatternsIsNil

func TopicPatternsIsNil() predicate.NotificationPreference

TopicPatternsIsNil applies the IsNil predicate on the "topic_patterns" field.

func TopicPatternsNotNil

func TopicPatternsNotNil() predicate.NotificationPreference

TopicPatternsNotNil applies the NotNil predicate on the "topic_patterns" field.

func UpdatedAt

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

func UpdatedAtEQ

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

func UpdatedAtGT

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.NotificationPreference

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.NotificationPreference

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.NotificationPreference

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.NotificationPreference

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.NotificationPreference

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.NotificationPreference

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.NotificationPreference

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.NotificationPreference

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.NotificationPreference

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.NotificationPreference

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.NotificationPreference

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.NotificationPreference

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.NotificationPreference

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.NotificationPreference

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.NotificationPreference

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.NotificationPreference

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.NotificationPreference

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func UserID

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

func UserIDContains

func UserIDContains(v string) predicate.NotificationPreference

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.NotificationPreference

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.NotificationPreference

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.NotificationPreference

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.NotificationPreference

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.NotificationPreference

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

func UserIDLT

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

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

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.NotificationPreference

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

func VerifiedAt

VerifiedAt applies equality check predicate on the "verified_at" field. It's identical to VerifiedAtEQ.

func VerifiedAtEQ

func VerifiedAtEQ(v time.Time) predicate.NotificationPreference

VerifiedAtEQ applies the EQ predicate on the "verified_at" field.

func VerifiedAtGT

func VerifiedAtGT(v time.Time) predicate.NotificationPreference

VerifiedAtGT applies the GT predicate on the "verified_at" field.

func VerifiedAtGTE

func VerifiedAtGTE(v time.Time) predicate.NotificationPreference

VerifiedAtGTE applies the GTE predicate on the "verified_at" field.

func VerifiedAtIn

func VerifiedAtIn(vs ...time.Time) predicate.NotificationPreference

VerifiedAtIn applies the In predicate on the "verified_at" field.

func VerifiedAtIsNil

func VerifiedAtIsNil() predicate.NotificationPreference

VerifiedAtIsNil applies the IsNil predicate on the "verified_at" field.

func VerifiedAtLT

func VerifiedAtLT(v time.Time) predicate.NotificationPreference

VerifiedAtLT applies the LT predicate on the "verified_at" field.

func VerifiedAtLTE

func VerifiedAtLTE(v time.Time) predicate.NotificationPreference

VerifiedAtLTE applies the LTE predicate on the "verified_at" field.

func VerifiedAtNEQ

func VerifiedAtNEQ(v time.Time) predicate.NotificationPreference

VerifiedAtNEQ applies the NEQ predicate on the "verified_at" field.

func VerifiedAtNotIn

func VerifiedAtNotIn(vs ...time.Time) predicate.NotificationPreference

VerifiedAtNotIn applies the NotIn predicate on the "verified_at" field.

func VerifiedAtNotNil

func VerifiedAtNotNil() predicate.NotificationPreference

VerifiedAtNotNil applies the NotNil predicate on the "verified_at" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the NotificationPreference queries.

func ByCadence

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

ByCadence orders the results by the cadence field.

func ByChannel

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

ByChannel orders the results by the channel field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

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

ByDeletedBy orders the results by the deleted_by field.

func ByDestination

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

ByDestination orders the results by the destination field.

func ByEnabled

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

ByEnabled orders the results by the enabled field.

func ByID

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

ByID orders the results by the id field.

func ByIsDefault

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

ByIsDefault orders the results by the is_default field.

func ByLastError

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

ByLastError orders the results by the last_error field.

func ByLastUsedAt

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

ByLastUsedAt orders the results by the last_used_at field.

func ByMuteUntil

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

ByMuteUntil orders the results by the mute_until field.

func ByNotificationTemplateField

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

ByNotificationTemplateField orders the results by notification_template field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByPriority

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

ByPriority orders the results by the priority field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByQuietHoursEnd

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

ByQuietHoursEnd orders the results by the quiet_hours_end field.

func ByQuietHoursStart

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

ByQuietHoursStart orders the results by the quiet_hours_start field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTemplateID

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

ByTemplateID orders the results by the template_id field.

func ByTimezone

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

ByTimezone orders the results by the timezone field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by 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.

func ByVerifiedAt

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

ByVerifiedAt orders the results by the verified_at field.

Jump to

Keyboard shortcuts

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