Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NotificationPreference) predicate.NotificationPreference
- func CadenceEQ(v enums.NotificationCadence) predicate.NotificationPreference
- func CadenceIn(vs ...enums.NotificationCadence) predicate.NotificationPreference
- func CadenceNEQ(v enums.NotificationCadence) predicate.NotificationPreference
- func CadenceNotIn(vs ...enums.NotificationCadence) predicate.NotificationPreference
- func CadenceValidator(c enums.NotificationCadence) error
- func ChannelEQ(v enums.Channel) predicate.NotificationPreference
- func ChannelIn(vs ...enums.Channel) predicate.NotificationPreference
- func ChannelNEQ(v enums.Channel) predicate.NotificationPreference
- func ChannelNotIn(vs ...enums.Channel) predicate.NotificationPreference
- func ChannelValidator(c enums.Channel) error
- func ConfigIsNil() predicate.NotificationPreference
- func ConfigNotNil() predicate.NotificationPreference
- func CreatedAt(v time.Time) predicate.NotificationPreference
- func CreatedAtEQ(v time.Time) predicate.NotificationPreference
- func CreatedAtGT(v time.Time) predicate.NotificationPreference
- func CreatedAtGTE(v time.Time) predicate.NotificationPreference
- func CreatedAtIn(vs ...time.Time) predicate.NotificationPreference
- func CreatedAtIsNil() predicate.NotificationPreference
- func CreatedAtLT(v time.Time) predicate.NotificationPreference
- func CreatedAtLTE(v time.Time) predicate.NotificationPreference
- func CreatedAtNEQ(v time.Time) predicate.NotificationPreference
- func CreatedAtNotIn(vs ...time.Time) predicate.NotificationPreference
- func CreatedAtNotNil() predicate.NotificationPreference
- func CreatedBy(v string) predicate.NotificationPreference
- func CreatedByContains(v string) predicate.NotificationPreference
- func CreatedByContainsFold(v string) predicate.NotificationPreference
- func CreatedByEQ(v string) predicate.NotificationPreference
- func CreatedByEqualFold(v string) predicate.NotificationPreference
- func CreatedByGT(v string) predicate.NotificationPreference
- func CreatedByGTE(v string) predicate.NotificationPreference
- func CreatedByHasPrefix(v string) predicate.NotificationPreference
- func CreatedByHasSuffix(v string) predicate.NotificationPreference
- func CreatedByIn(vs ...string) predicate.NotificationPreference
- func CreatedByIsNil() predicate.NotificationPreference
- func CreatedByLT(v string) predicate.NotificationPreference
- func CreatedByLTE(v string) predicate.NotificationPreference
- func CreatedByNEQ(v string) predicate.NotificationPreference
- func CreatedByNotIn(vs ...string) predicate.NotificationPreference
- func CreatedByNotNil() predicate.NotificationPreference
- func DeletedAt(v time.Time) predicate.NotificationPreference
- func DeletedAtEQ(v time.Time) predicate.NotificationPreference
- func DeletedAtGT(v time.Time) predicate.NotificationPreference
- func DeletedAtGTE(v time.Time) predicate.NotificationPreference
- func DeletedAtIn(vs ...time.Time) predicate.NotificationPreference
- func DeletedAtIsNil() predicate.NotificationPreference
- func DeletedAtLT(v time.Time) predicate.NotificationPreference
- func DeletedAtLTE(v time.Time) predicate.NotificationPreference
- func DeletedAtNEQ(v time.Time) predicate.NotificationPreference
- func DeletedAtNotIn(vs ...time.Time) predicate.NotificationPreference
- func DeletedAtNotNil() predicate.NotificationPreference
- func DeletedBy(v string) predicate.NotificationPreference
- func DeletedByContains(v string) predicate.NotificationPreference
- func DeletedByContainsFold(v string) predicate.NotificationPreference
- func DeletedByEQ(v string) predicate.NotificationPreference
- func DeletedByEqualFold(v string) predicate.NotificationPreference
- func DeletedByGT(v string) predicate.NotificationPreference
- func DeletedByGTE(v string) predicate.NotificationPreference
- func DeletedByHasPrefix(v string) predicate.NotificationPreference
- func DeletedByHasSuffix(v string) predicate.NotificationPreference
- func DeletedByIn(vs ...string) predicate.NotificationPreference
- func DeletedByIsNil() predicate.NotificationPreference
- func DeletedByLT(v string) predicate.NotificationPreference
- func DeletedByLTE(v string) predicate.NotificationPreference
- func DeletedByNEQ(v string) predicate.NotificationPreference
- func DeletedByNotIn(vs ...string) predicate.NotificationPreference
- func DeletedByNotNil() predicate.NotificationPreference
- func Destination(v string) predicate.NotificationPreference
- func DestinationContains(v string) predicate.NotificationPreference
- func DestinationContainsFold(v string) predicate.NotificationPreference
- func DestinationEQ(v string) predicate.NotificationPreference
- func DestinationEqualFold(v string) predicate.NotificationPreference
- func DestinationGT(v string) predicate.NotificationPreference
- func DestinationGTE(v string) predicate.NotificationPreference
- func DestinationHasPrefix(v string) predicate.NotificationPreference
- func DestinationHasSuffix(v string) predicate.NotificationPreference
- func DestinationIn(vs ...string) predicate.NotificationPreference
- func DestinationIsNil() predicate.NotificationPreference
- func DestinationLT(v string) predicate.NotificationPreference
- func DestinationLTE(v string) predicate.NotificationPreference
- func DestinationNEQ(v string) predicate.NotificationPreference
- func DestinationNotIn(vs ...string) predicate.NotificationPreference
- func DestinationNotNil() predicate.NotificationPreference
- func Enabled(v bool) predicate.NotificationPreference
- func EnabledEQ(v bool) predicate.NotificationPreference
- func EnabledNEQ(v bool) predicate.NotificationPreference
- func HasNotificationTemplate() predicate.NotificationPreference
- func HasNotificationTemplateWith(preds ...predicate.NotificationTemplate) predicate.NotificationPreference
- func HasOwner() predicate.NotificationPreference
- func HasOwnerWith(preds ...predicate.Organization) predicate.NotificationPreference
- func HasUser() predicate.NotificationPreference
- func HasUserWith(preds ...predicate.User) predicate.NotificationPreference
- func ID(id string) predicate.NotificationPreference
- func IDContainsFold(id string) predicate.NotificationPreference
- func IDEQ(id string) predicate.NotificationPreference
- func IDEqualFold(id string) predicate.NotificationPreference
- func IDGT(id string) predicate.NotificationPreference
- func IDGTE(id string) predicate.NotificationPreference
- func IDIn(ids ...string) predicate.NotificationPreference
- func IDLT(id string) predicate.NotificationPreference
- func IDLTE(id string) predicate.NotificationPreference
- func IDNEQ(id string) predicate.NotificationPreference
- func IDNotIn(ids ...string) predicate.NotificationPreference
- func IsDefault(v bool) predicate.NotificationPreference
- func IsDefaultEQ(v bool) predicate.NotificationPreference
- func IsDefaultNEQ(v bool) predicate.NotificationPreference
- func LastError(v string) predicate.NotificationPreference
- func LastErrorContains(v string) predicate.NotificationPreference
- func LastErrorContainsFold(v string) predicate.NotificationPreference
- func LastErrorEQ(v string) predicate.NotificationPreference
- func LastErrorEqualFold(v string) predicate.NotificationPreference
- func LastErrorGT(v string) predicate.NotificationPreference
- func LastErrorGTE(v string) predicate.NotificationPreference
- func LastErrorHasPrefix(v string) predicate.NotificationPreference
- func LastErrorHasSuffix(v string) predicate.NotificationPreference
- func LastErrorIn(vs ...string) predicate.NotificationPreference
- func LastErrorIsNil() predicate.NotificationPreference
- func LastErrorLT(v string) predicate.NotificationPreference
- func LastErrorLTE(v string) predicate.NotificationPreference
- func LastErrorNEQ(v string) predicate.NotificationPreference
- func LastErrorNotIn(vs ...string) predicate.NotificationPreference
- func LastErrorNotNil() predicate.NotificationPreference
- func LastUsedAt(v time.Time) predicate.NotificationPreference
- func LastUsedAtEQ(v time.Time) predicate.NotificationPreference
- func LastUsedAtGT(v time.Time) predicate.NotificationPreference
- func LastUsedAtGTE(v time.Time) predicate.NotificationPreference
- func LastUsedAtIn(vs ...time.Time) predicate.NotificationPreference
- func LastUsedAtIsNil() predicate.NotificationPreference
- func LastUsedAtLT(v time.Time) predicate.NotificationPreference
- func LastUsedAtLTE(v time.Time) predicate.NotificationPreference
- func LastUsedAtNEQ(v time.Time) predicate.NotificationPreference
- func LastUsedAtNotIn(vs ...time.Time) predicate.NotificationPreference
- func LastUsedAtNotNil() predicate.NotificationPreference
- func MetadataIsNil() predicate.NotificationPreference
- func MetadataNotNil() predicate.NotificationPreference
- func MuteUntil(v time.Time) predicate.NotificationPreference
- func MuteUntilEQ(v time.Time) predicate.NotificationPreference
- func MuteUntilGT(v time.Time) predicate.NotificationPreference
- func MuteUntilGTE(v time.Time) predicate.NotificationPreference
- func MuteUntilIn(vs ...time.Time) predicate.NotificationPreference
- func MuteUntilIsNil() predicate.NotificationPreference
- func MuteUntilLT(v time.Time) predicate.NotificationPreference
- func MuteUntilLTE(v time.Time) predicate.NotificationPreference
- func MuteUntilNEQ(v time.Time) predicate.NotificationPreference
- func MuteUntilNotIn(vs ...time.Time) predicate.NotificationPreference
- func MuteUntilNotNil() predicate.NotificationPreference
- func Not(p predicate.NotificationPreference) predicate.NotificationPreference
- func Or(predicates ...predicate.NotificationPreference) predicate.NotificationPreference
- func OwnerID(v string) predicate.NotificationPreference
- func OwnerIDContains(v string) predicate.NotificationPreference
- func OwnerIDContainsFold(v string) predicate.NotificationPreference
- func OwnerIDEQ(v string) predicate.NotificationPreference
- func OwnerIDEqualFold(v string) predicate.NotificationPreference
- func OwnerIDGT(v string) predicate.NotificationPreference
- func OwnerIDGTE(v string) predicate.NotificationPreference
- func OwnerIDHasPrefix(v string) predicate.NotificationPreference
- func OwnerIDHasSuffix(v string) predicate.NotificationPreference
- func OwnerIDIn(vs ...string) predicate.NotificationPreference
- func OwnerIDIsNil() predicate.NotificationPreference
- func OwnerIDLT(v string) predicate.NotificationPreference
- func OwnerIDLTE(v string) predicate.NotificationPreference
- func OwnerIDNEQ(v string) predicate.NotificationPreference
- func OwnerIDNotIn(vs ...string) predicate.NotificationPreference
- func OwnerIDNotNil() predicate.NotificationPreference
- func PriorityEQ(v enums.Priority) predicate.NotificationPreference
- func PriorityIn(vs ...enums.Priority) predicate.NotificationPreference
- func PriorityIsNil() predicate.NotificationPreference
- func PriorityNEQ(v enums.Priority) predicate.NotificationPreference
- func PriorityNotIn(vs ...enums.Priority) predicate.NotificationPreference
- func PriorityNotNil() predicate.NotificationPreference
- func PriorityValidator(pr enums.Priority) error
- func Provider(v string) predicate.NotificationPreference
- func ProviderContains(v string) predicate.NotificationPreference
- func ProviderContainsFold(v string) predicate.NotificationPreference
- func ProviderEQ(v string) predicate.NotificationPreference
- func ProviderEqualFold(v string) predicate.NotificationPreference
- func ProviderGT(v string) predicate.NotificationPreference
- func ProviderGTE(v string) predicate.NotificationPreference
- func ProviderHasPrefix(v string) predicate.NotificationPreference
- func ProviderHasSuffix(v string) predicate.NotificationPreference
- func ProviderIn(vs ...string) predicate.NotificationPreference
- func ProviderIsNil() predicate.NotificationPreference
- func ProviderLT(v string) predicate.NotificationPreference
- func ProviderLTE(v string) predicate.NotificationPreference
- func ProviderNEQ(v string) predicate.NotificationPreference
- func ProviderNotIn(vs ...string) predicate.NotificationPreference
- func ProviderNotNil() predicate.NotificationPreference
- func QuietHoursEnd(v string) predicate.NotificationPreference
- func QuietHoursEndContains(v string) predicate.NotificationPreference
- func QuietHoursEndContainsFold(v string) predicate.NotificationPreference
- func QuietHoursEndEQ(v string) predicate.NotificationPreference
- func QuietHoursEndEqualFold(v string) predicate.NotificationPreference
- func QuietHoursEndGT(v string) predicate.NotificationPreference
- func QuietHoursEndGTE(v string) predicate.NotificationPreference
- func QuietHoursEndHasPrefix(v string) predicate.NotificationPreference
- func QuietHoursEndHasSuffix(v string) predicate.NotificationPreference
- func QuietHoursEndIn(vs ...string) predicate.NotificationPreference
- func QuietHoursEndIsNil() predicate.NotificationPreference
- func QuietHoursEndLT(v string) predicate.NotificationPreference
- func QuietHoursEndLTE(v string) predicate.NotificationPreference
- func QuietHoursEndNEQ(v string) predicate.NotificationPreference
- func QuietHoursEndNotIn(vs ...string) predicate.NotificationPreference
- func QuietHoursEndNotNil() predicate.NotificationPreference
- func QuietHoursStart(v string) predicate.NotificationPreference
- func QuietHoursStartContains(v string) predicate.NotificationPreference
- func QuietHoursStartContainsFold(v string) predicate.NotificationPreference
- func QuietHoursStartEQ(v string) predicate.NotificationPreference
- func QuietHoursStartEqualFold(v string) predicate.NotificationPreference
- func QuietHoursStartGT(v string) predicate.NotificationPreference
- func QuietHoursStartGTE(v string) predicate.NotificationPreference
- func QuietHoursStartHasPrefix(v string) predicate.NotificationPreference
- func QuietHoursStartHasSuffix(v string) predicate.NotificationPreference
- func QuietHoursStartIn(vs ...string) predicate.NotificationPreference
- func QuietHoursStartIsNil() predicate.NotificationPreference
- func QuietHoursStartLT(v string) predicate.NotificationPreference
- func QuietHoursStartLTE(v string) predicate.NotificationPreference
- func QuietHoursStartNEQ(v string) predicate.NotificationPreference
- func QuietHoursStartNotIn(vs ...string) predicate.NotificationPreference
- func QuietHoursStartNotNil() predicate.NotificationPreference
- func StatusEQ(v enums.NotificationChannelStatus) predicate.NotificationPreference
- func StatusIn(vs ...enums.NotificationChannelStatus) predicate.NotificationPreference
- func StatusNEQ(v enums.NotificationChannelStatus) predicate.NotificationPreference
- func StatusNotIn(vs ...enums.NotificationChannelStatus) predicate.NotificationPreference
- func StatusValidator(s enums.NotificationChannelStatus) error
- func TemplateID(v string) predicate.NotificationPreference
- func TemplateIDContains(v string) predicate.NotificationPreference
- func TemplateIDContainsFold(v string) predicate.NotificationPreference
- func TemplateIDEQ(v string) predicate.NotificationPreference
- func TemplateIDEqualFold(v string) predicate.NotificationPreference
- func TemplateIDGT(v string) predicate.NotificationPreference
- func TemplateIDGTE(v string) predicate.NotificationPreference
- func TemplateIDHasPrefix(v string) predicate.NotificationPreference
- func TemplateIDHasSuffix(v string) predicate.NotificationPreference
- func TemplateIDIn(vs ...string) predicate.NotificationPreference
- func TemplateIDIsNil() predicate.NotificationPreference
- func TemplateIDLT(v string) predicate.NotificationPreference
- func TemplateIDLTE(v string) predicate.NotificationPreference
- func TemplateIDNEQ(v string) predicate.NotificationPreference
- func TemplateIDNotIn(vs ...string) predicate.NotificationPreference
- func TemplateIDNotNil() predicate.NotificationPreference
- func Timezone(v string) predicate.NotificationPreference
- func TimezoneContains(v string) predicate.NotificationPreference
- func TimezoneContainsFold(v string) predicate.NotificationPreference
- func TimezoneEQ(v string) predicate.NotificationPreference
- func TimezoneEqualFold(v string) predicate.NotificationPreference
- func TimezoneGT(v string) predicate.NotificationPreference
- func TimezoneGTE(v string) predicate.NotificationPreference
- func TimezoneHasPrefix(v string) predicate.NotificationPreference
- func TimezoneHasSuffix(v string) predicate.NotificationPreference
- func TimezoneIn(vs ...string) predicate.NotificationPreference
- func TimezoneIsNil() predicate.NotificationPreference
- func TimezoneLT(v string) predicate.NotificationPreference
- func TimezoneLTE(v string) predicate.NotificationPreference
- func TimezoneNEQ(v string) predicate.NotificationPreference
- func TimezoneNotIn(vs ...string) predicate.NotificationPreference
- func TimezoneNotNil() predicate.NotificationPreference
- func TopicOverridesIsNil() predicate.NotificationPreference
- func TopicOverridesNotNil() predicate.NotificationPreference
- func TopicPatternsIsNil() predicate.NotificationPreference
- func TopicPatternsNotNil() predicate.NotificationPreference
- func UpdatedAt(v time.Time) predicate.NotificationPreference
- func UpdatedAtEQ(v time.Time) predicate.NotificationPreference
- func UpdatedAtGT(v time.Time) predicate.NotificationPreference
- func UpdatedAtGTE(v time.Time) predicate.NotificationPreference
- func UpdatedAtIn(vs ...time.Time) predicate.NotificationPreference
- func UpdatedAtIsNil() predicate.NotificationPreference
- func UpdatedAtLT(v time.Time) predicate.NotificationPreference
- func UpdatedAtLTE(v time.Time) predicate.NotificationPreference
- func UpdatedAtNEQ(v time.Time) predicate.NotificationPreference
- func UpdatedAtNotIn(vs ...time.Time) predicate.NotificationPreference
- func UpdatedAtNotNil() predicate.NotificationPreference
- func UpdatedBy(v string) predicate.NotificationPreference
- func UpdatedByContains(v string) predicate.NotificationPreference
- func UpdatedByContainsFold(v string) predicate.NotificationPreference
- func UpdatedByEQ(v string) predicate.NotificationPreference
- func UpdatedByEqualFold(v string) predicate.NotificationPreference
- func UpdatedByGT(v string) predicate.NotificationPreference
- func UpdatedByGTE(v string) predicate.NotificationPreference
- func UpdatedByHasPrefix(v string) predicate.NotificationPreference
- func UpdatedByHasSuffix(v string) predicate.NotificationPreference
- func UpdatedByIn(vs ...string) predicate.NotificationPreference
- func UpdatedByIsNil() predicate.NotificationPreference
- func UpdatedByLT(v string) predicate.NotificationPreference
- func UpdatedByLTE(v string) predicate.NotificationPreference
- func UpdatedByNEQ(v string) predicate.NotificationPreference
- func UpdatedByNotIn(vs ...string) predicate.NotificationPreference
- func UpdatedByNotNil() predicate.NotificationPreference
- func UserID(v string) predicate.NotificationPreference
- func UserIDContains(v string) predicate.NotificationPreference
- func UserIDContainsFold(v string) predicate.NotificationPreference
- func UserIDEQ(v string) predicate.NotificationPreference
- func UserIDEqualFold(v string) predicate.NotificationPreference
- func UserIDGT(v string) predicate.NotificationPreference
- func UserIDGTE(v string) predicate.NotificationPreference
- func UserIDHasPrefix(v string) predicate.NotificationPreference
- func UserIDHasSuffix(v string) predicate.NotificationPreference
- func UserIDIn(vs ...string) predicate.NotificationPreference
- func UserIDLT(v string) predicate.NotificationPreference
- func UserIDLTE(v string) predicate.NotificationPreference
- func UserIDNEQ(v string) predicate.NotificationPreference
- func UserIDNotIn(vs ...string) predicate.NotificationPreference
- func ValidColumn(column string) bool
- func VerifiedAt(v time.Time) predicate.NotificationPreference
- func VerifiedAtEQ(v time.Time) predicate.NotificationPreference
- func VerifiedAtGT(v time.Time) predicate.NotificationPreference
- func VerifiedAtGTE(v time.Time) predicate.NotificationPreference
- func VerifiedAtIn(vs ...time.Time) predicate.NotificationPreference
- func VerifiedAtIsNil() predicate.NotificationPreference
- func VerifiedAtLT(v time.Time) predicate.NotificationPreference
- func VerifiedAtLTE(v time.Time) predicate.NotificationPreference
- func VerifiedAtNEQ(v time.Time) predicate.NotificationPreference
- func VerifiedAtNotIn(vs ...time.Time) predicate.NotificationPreference
- func VerifiedAtNotNil() predicate.NotificationPreference
- type OrderOption
- func ByCadence(opts ...sql.OrderTermOption) OrderOption
- func ByChannel(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDestination(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByLastError(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByMuteUntil(opts ...sql.OrderTermOption) OrderOption
- func ByNotificationTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByQuietHoursEnd(opts ...sql.OrderTermOption) OrderOption
- func ByQuietHoursStart(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
- func ByTimezone(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByVerifiedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultCadence enums.NotificationCadence = "IMMEDIATE"
const DefaultStatus enums.NotificationChannelStatus = "ENABLED"
Variables ¶
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldOwnerID, FieldUserID, FieldChannel, FieldStatus, FieldProvider, FieldDestination, FieldConfig, FieldEnabled, FieldCadence, FieldPriority, FieldTopicPatterns, FieldTopicOverrides, FieldTemplateID, FieldMuteUntil, FieldQuietHoursStart, FieldQuietHoursEnd, FieldTimezone, FieldIsDefault, FieldVerifiedAt, FieldLastUsedAt, FieldLastError, FieldMetadata, }
Columns holds all SQL columns for notificationpreference fields.
Functions ¶
func And ¶
func And(predicates ...predicate.NotificationPreference) predicate.NotificationPreference
And groups predicates with the AND operator between them.
func CadenceEQ ¶
func CadenceEQ(v enums.NotificationCadence) predicate.NotificationPreference
CadenceEQ applies the EQ predicate on the "cadence" field.
func CadenceIn ¶
func CadenceIn(vs ...enums.NotificationCadence) predicate.NotificationPreference
CadenceIn applies the In predicate on the "cadence" field.
func CadenceNEQ ¶
func CadenceNEQ(v enums.NotificationCadence) predicate.NotificationPreference
CadenceNEQ applies the NEQ predicate on the "cadence" field.
func CadenceNotIn ¶
func CadenceNotIn(vs ...enums.NotificationCadence) predicate.NotificationPreference
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 ¶
func ChannelEQ(v enums.Channel) predicate.NotificationPreference
ChannelEQ applies the EQ predicate on the "channel" field.
func ChannelIn ¶
func ChannelIn(vs ...enums.Channel) predicate.NotificationPreference
ChannelIn applies the In predicate on the "channel" field.
func ChannelNEQ ¶
func ChannelNEQ(v enums.Channel) predicate.NotificationPreference
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 ¶
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 ¶
func CreatedAt(v time.Time) predicate.NotificationPreference
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.NotificationPreference
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.NotificationPreference
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 ¶
func CreatedAtLT(v time.Time) predicate.NotificationPreference
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 ¶
func CreatedBy(v string) predicate.NotificationPreference
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 ¶
func CreatedByEQ(v string) predicate.NotificationPreference
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 ¶
func CreatedByGT(v string) predicate.NotificationPreference
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 ¶
func CreatedByLT(v string) predicate.NotificationPreference
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 ¶
func DeletedAt(v time.Time) predicate.NotificationPreference
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.NotificationPreference
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.NotificationPreference
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 ¶
func DeletedAtLT(v time.Time) predicate.NotificationPreference
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 ¶
func DeletedBy(v string) predicate.NotificationPreference
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 ¶
func DeletedByEQ(v string) predicate.NotificationPreference
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 ¶
func DeletedByGT(v string) predicate.NotificationPreference
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 ¶
func DeletedByLT(v string) predicate.NotificationPreference
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 ¶
func Destination(v string) predicate.NotificationPreference
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 ¶
func Enabled(v bool) predicate.NotificationPreference
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledEQ ¶
func EnabledEQ(v bool) predicate.NotificationPreference
EnabledEQ applies the EQ predicate on the "enabled" field.
func EnabledNEQ ¶
func EnabledNEQ(v bool) predicate.NotificationPreference
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 ¶
func HasOwner() predicate.NotificationPreference
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.NotificationPreference
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.NotificationPreference
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 ¶
func ID(id string) predicate.NotificationPreference
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 ¶
func IDEQ(id string) predicate.NotificationPreference
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 ¶
func IDGT(id string) predicate.NotificationPreference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.NotificationPreference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.NotificationPreference
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.NotificationPreference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.NotificationPreference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.NotificationPreference
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 ¶
func IsDefault(v bool) predicate.NotificationPreference
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 ¶
func LastError(v string) predicate.NotificationPreference
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 ¶
func LastErrorEQ(v string) predicate.NotificationPreference
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 ¶
func LastErrorGT(v string) predicate.NotificationPreference
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 ¶
func LastErrorLT(v string) predicate.NotificationPreference
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 ¶
func LastUsedAt(v time.Time) predicate.NotificationPreference
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 ¶
func MuteUntil(v time.Time) predicate.NotificationPreference
MuteUntil applies equality check predicate on the "mute_until" field. It's identical to MuteUntilEQ.
func MuteUntilEQ ¶
func MuteUntilEQ(v time.Time) predicate.NotificationPreference
MuteUntilEQ applies the EQ predicate on the "mute_until" field.
func MuteUntilGT ¶
func MuteUntilGT(v time.Time) predicate.NotificationPreference
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 ¶
func MuteUntilLT(v time.Time) predicate.NotificationPreference
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 Or ¶
func Or(predicates ...predicate.NotificationPreference) predicate.NotificationPreference
Or groups predicates with the OR operator between them.
func OwnerID ¶
func OwnerID(v string) predicate.NotificationPreference
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 ¶
func OwnerIDEQ(v string) predicate.NotificationPreference
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 ¶
func OwnerIDGT(v string) predicate.NotificationPreference
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶
func OwnerIDGTE(v string) predicate.NotificationPreference
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 ¶
func OwnerIDLT(v string) predicate.NotificationPreference
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶
func OwnerIDLTE(v string) predicate.NotificationPreference
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
func OwnerIDNEQ(v string) predicate.NotificationPreference
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 ¶
func PriorityEQ(v enums.Priority) predicate.NotificationPreference
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityIn ¶
func PriorityIn(vs ...enums.Priority) predicate.NotificationPreference
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 ¶
func PriorityNEQ(v enums.Priority) predicate.NotificationPreference
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 ¶
PriorityValidator is a validator for the "priority" field enum values. It is called by the builders before save.
func Provider ¶
func Provider(v string) predicate.NotificationPreference
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 ¶
func ProviderEQ(v string) predicate.NotificationPreference
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 ¶
func ProviderGT(v string) predicate.NotificationPreference
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
func ProviderGTE(v string) predicate.NotificationPreference
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 ¶
func ProviderLT(v string) predicate.NotificationPreference
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
func ProviderLTE(v string) predicate.NotificationPreference
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
func ProviderNEQ(v string) predicate.NotificationPreference
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 ¶
func StatusEQ(v enums.NotificationChannelStatus) predicate.NotificationPreference
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.NotificationChannelStatus) predicate.NotificationPreference
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.NotificationChannelStatus) predicate.NotificationPreference
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.NotificationChannelStatus) predicate.NotificationPreference
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 ¶
func TemplateID(v string) predicate.NotificationPreference
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 ¶
func Timezone(v string) predicate.NotificationPreference
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 ¶
func TimezoneEQ(v string) predicate.NotificationPreference
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 ¶
func TimezoneGT(v string) predicate.NotificationPreference
TimezoneGT applies the GT predicate on the "timezone" field.
func TimezoneGTE ¶
func TimezoneGTE(v string) predicate.NotificationPreference
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 ¶
func TimezoneLT(v string) predicate.NotificationPreference
TimezoneLT applies the LT predicate on the "timezone" field.
func TimezoneLTE ¶
func TimezoneLTE(v string) predicate.NotificationPreference
TimezoneLTE applies the LTE predicate on the "timezone" field.
func TimezoneNEQ ¶
func TimezoneNEQ(v string) predicate.NotificationPreference
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 ¶
func UpdatedAt(v time.Time) predicate.NotificationPreference
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.NotificationPreference
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.NotificationPreference
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 ¶
func UpdatedAtLT(v time.Time) predicate.NotificationPreference
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 ¶
func UpdatedBy(v string) predicate.NotificationPreference
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 ¶
func UpdatedByEQ(v string) predicate.NotificationPreference
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 ¶
func UpdatedByGT(v string) predicate.NotificationPreference
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 ¶
func UpdatedByLT(v string) predicate.NotificationPreference
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 ¶
func UserID(v string) predicate.NotificationPreference
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 ¶
func UserIDEQ(v string) predicate.NotificationPreference
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 ¶
func UserIDGT(v string) predicate.NotificationPreference
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.NotificationPreference
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 ¶
func UserIDLT(v string) predicate.NotificationPreference
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.NotificationPreference
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.NotificationPreference
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerifiedAt ¶
func VerifiedAt(v time.Time) predicate.NotificationPreference
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 ¶
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.