Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Notification) predicate.Notification
- func Body(v string) predicate.Notification
- func BodyContains(v string) predicate.Notification
- func BodyContainsFold(v string) predicate.Notification
- func BodyEQ(v string) predicate.Notification
- func BodyEqualFold(v string) predicate.Notification
- func BodyGT(v string) predicate.Notification
- func BodyGTE(v string) predicate.Notification
- func BodyHasPrefix(v string) predicate.Notification
- func BodyHasSuffix(v string) predicate.Notification
- func BodyIn(vs ...string) predicate.Notification
- func BodyLT(v string) predicate.Notification
- func BodyLTE(v string) predicate.Notification
- func BodyNEQ(v string) predicate.Notification
- func BodyNotIn(vs ...string) predicate.Notification
- func ChannelsIsNil() predicate.Notification
- func ChannelsNotNil() predicate.Notification
- func CreatedAt(v time.Time) predicate.Notification
- func CreatedAtEQ(v time.Time) predicate.Notification
- func CreatedAtGT(v time.Time) predicate.Notification
- func CreatedAtGTE(v time.Time) predicate.Notification
- func CreatedAtIn(vs ...time.Time) predicate.Notification
- func CreatedAtIsNil() predicate.Notification
- func CreatedAtLT(v time.Time) predicate.Notification
- func CreatedAtLTE(v time.Time) predicate.Notification
- func CreatedAtNEQ(v time.Time) predicate.Notification
- func CreatedAtNotIn(vs ...time.Time) predicate.Notification
- func CreatedAtNotNil() predicate.Notification
- func CreatedBy(v string) predicate.Notification
- func CreatedByContains(v string) predicate.Notification
- func CreatedByContainsFold(v string) predicate.Notification
- func CreatedByEQ(v string) predicate.Notification
- func CreatedByEqualFold(v string) predicate.Notification
- func CreatedByGT(v string) predicate.Notification
- func CreatedByGTE(v string) predicate.Notification
- func CreatedByHasPrefix(v string) predicate.Notification
- func CreatedByHasSuffix(v string) predicate.Notification
- func CreatedByIn(vs ...string) predicate.Notification
- func CreatedByIsNil() predicate.Notification
- func CreatedByLT(v string) predicate.Notification
- func CreatedByLTE(v string) predicate.Notification
- func CreatedByNEQ(v string) predicate.Notification
- func CreatedByNotIn(vs ...string) predicate.Notification
- func CreatedByNotNil() predicate.Notification
- func DataIsNil() predicate.Notification
- func DataNotNil() predicate.Notification
- func HasOwner() predicate.Notification
- func HasOwnerWith(preds ...predicate.Organization) predicate.Notification
- func HasUser() predicate.Notification
- func HasUserWith(preds ...predicate.User) predicate.Notification
- func ID(id string) predicate.Notification
- func IDContainsFold(id string) predicate.Notification
- func IDEQ(id string) predicate.Notification
- func IDEqualFold(id string) predicate.Notification
- func IDGT(id string) predicate.Notification
- func IDGTE(id string) predicate.Notification
- func IDIn(ids ...string) predicate.Notification
- func IDLT(id string) predicate.Notification
- func IDLTE(id string) predicate.Notification
- func IDNEQ(id string) predicate.Notification
- func IDNotIn(ids ...string) predicate.Notification
- func Not(p predicate.Notification) predicate.Notification
- func NotificationTypeEQ(v enums.NotificationType) predicate.Notification
- func NotificationTypeIn(vs ...enums.NotificationType) predicate.Notification
- func NotificationTypeNEQ(v enums.NotificationType) predicate.Notification
- func NotificationTypeNotIn(vs ...enums.NotificationType) predicate.Notification
- func NotificationTypeValidator(nt enums.NotificationType) error
- func ObjectType(v string) predicate.Notification
- func ObjectTypeContains(v string) predicate.Notification
- func ObjectTypeContainsFold(v string) predicate.Notification
- func ObjectTypeEQ(v string) predicate.Notification
- func ObjectTypeEqualFold(v string) predicate.Notification
- func ObjectTypeGT(v string) predicate.Notification
- func ObjectTypeGTE(v string) predicate.Notification
- func ObjectTypeHasPrefix(v string) predicate.Notification
- func ObjectTypeHasSuffix(v string) predicate.Notification
- func ObjectTypeIn(vs ...string) predicate.Notification
- func ObjectTypeLT(v string) predicate.Notification
- func ObjectTypeLTE(v string) predicate.Notification
- func ObjectTypeNEQ(v string) predicate.Notification
- func ObjectTypeNotIn(vs ...string) predicate.Notification
- func Or(predicates ...predicate.Notification) predicate.Notification
- func OwnerID(v string) predicate.Notification
- func OwnerIDContains(v string) predicate.Notification
- func OwnerIDContainsFold(v string) predicate.Notification
- func OwnerIDEQ(v string) predicate.Notification
- func OwnerIDEqualFold(v string) predicate.Notification
- func OwnerIDGT(v string) predicate.Notification
- func OwnerIDGTE(v string) predicate.Notification
- func OwnerIDHasPrefix(v string) predicate.Notification
- func OwnerIDHasSuffix(v string) predicate.Notification
- func OwnerIDIn(vs ...string) predicate.Notification
- func OwnerIDIsNil() predicate.Notification
- func OwnerIDLT(v string) predicate.Notification
- func OwnerIDLTE(v string) predicate.Notification
- func OwnerIDNEQ(v string) predicate.Notification
- func OwnerIDNotIn(vs ...string) predicate.Notification
- func OwnerIDNotNil() predicate.Notification
- func ReadAt(v models.DateTime) predicate.Notification
- func ReadAtEQ(v models.DateTime) predicate.Notification
- func ReadAtGT(v models.DateTime) predicate.Notification
- func ReadAtGTE(v models.DateTime) predicate.Notification
- func ReadAtIn(vs ...models.DateTime) predicate.Notification
- func ReadAtIsNil() predicate.Notification
- func ReadAtLT(v models.DateTime) predicate.Notification
- func ReadAtLTE(v models.DateTime) predicate.Notification
- func ReadAtNEQ(v models.DateTime) predicate.Notification
- func ReadAtNotIn(vs ...models.DateTime) predicate.Notification
- func ReadAtNotNil() predicate.Notification
- func TagsIsNil() predicate.Notification
- func TagsNotNil() predicate.Notification
- func Title(v string) predicate.Notification
- func TitleContains(v string) predicate.Notification
- func TitleContainsFold(v string) predicate.Notification
- func TitleEQ(v string) predicate.Notification
- func TitleEqualFold(v string) predicate.Notification
- func TitleGT(v string) predicate.Notification
- func TitleGTE(v string) predicate.Notification
- func TitleHasPrefix(v string) predicate.Notification
- func TitleHasSuffix(v string) predicate.Notification
- func TitleIn(vs ...string) predicate.Notification
- func TitleLT(v string) predicate.Notification
- func TitleLTE(v string) predicate.Notification
- func TitleNEQ(v string) predicate.Notification
- func TitleNotIn(vs ...string) predicate.Notification
- func Topic(v string) predicate.Notification
- func TopicContains(v string) predicate.Notification
- func TopicContainsFold(v string) predicate.Notification
- func TopicEQ(v string) predicate.Notification
- func TopicEqualFold(v string) predicate.Notification
- func TopicGT(v string) predicate.Notification
- func TopicGTE(v string) predicate.Notification
- func TopicHasPrefix(v string) predicate.Notification
- func TopicHasSuffix(v string) predicate.Notification
- func TopicIn(vs ...string) predicate.Notification
- func TopicIsNil() predicate.Notification
- func TopicLT(v string) predicate.Notification
- func TopicLTE(v string) predicate.Notification
- func TopicNEQ(v string) predicate.Notification
- func TopicNotIn(vs ...string) predicate.Notification
- func TopicNotNil() predicate.Notification
- func UpdatedAt(v time.Time) predicate.Notification
- func UpdatedAtEQ(v time.Time) predicate.Notification
- func UpdatedAtGT(v time.Time) predicate.Notification
- func UpdatedAtGTE(v time.Time) predicate.Notification
- func UpdatedAtIn(vs ...time.Time) predicate.Notification
- func UpdatedAtIsNil() predicate.Notification
- func UpdatedAtLT(v time.Time) predicate.Notification
- func UpdatedAtLTE(v time.Time) predicate.Notification
- func UpdatedAtNEQ(v time.Time) predicate.Notification
- func UpdatedAtNotIn(vs ...time.Time) predicate.Notification
- func UpdatedAtNotNil() predicate.Notification
- func UpdatedBy(v string) predicate.Notification
- func UpdatedByContains(v string) predicate.Notification
- func UpdatedByContainsFold(v string) predicate.Notification
- func UpdatedByEQ(v string) predicate.Notification
- func UpdatedByEqualFold(v string) predicate.Notification
- func UpdatedByGT(v string) predicate.Notification
- func UpdatedByGTE(v string) predicate.Notification
- func UpdatedByHasPrefix(v string) predicate.Notification
- func UpdatedByHasSuffix(v string) predicate.Notification
- func UpdatedByIn(vs ...string) predicate.Notification
- func UpdatedByIsNil() predicate.Notification
- func UpdatedByLT(v string) predicate.Notification
- func UpdatedByLTE(v string) predicate.Notification
- func UpdatedByNEQ(v string) predicate.Notification
- func UpdatedByNotIn(vs ...string) predicate.Notification
- func UpdatedByNotNil() predicate.Notification
- func UserID(v string) predicate.Notification
- func UserIDContains(v string) predicate.Notification
- func UserIDContainsFold(v string) predicate.Notification
- func UserIDEQ(v string) predicate.Notification
- func UserIDEqualFold(v string) predicate.Notification
- func UserIDGT(v string) predicate.Notification
- func UserIDGTE(v string) predicate.Notification
- func UserIDHasPrefix(v string) predicate.Notification
- func UserIDHasSuffix(v string) predicate.Notification
- func UserIDIn(vs ...string) predicate.Notification
- func UserIDIsNil() predicate.Notification
- func UserIDLT(v string) predicate.Notification
- func UserIDLTE(v string) predicate.Notification
- func UserIDNEQ(v string) predicate.Notification
- func UserIDNotIn(vs ...string) predicate.Notification
- func UserIDNotNil() predicate.Notification
- func ValidColumn(column string) bool
- type OrderOption
- func ByBody(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNotificationType(opts ...sql.OrderTermOption) OrderOption
- func ByObjectType(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByReadAt(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByTopic(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
Constants ¶
const ( // Label holds the string label denoting the notification type in the database. Label = "notification" // 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" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // 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" // FieldNotificationType holds the string denoting the notification_type field in the database. FieldNotificationType = "notification_type" // FieldObjectType holds the string denoting the object_type field in the database. FieldObjectType = "object_type" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldData holds the string denoting the data field in the database. FieldData = "data" // FieldReadAt holds the string denoting the read_at field in the database. FieldReadAt = "read_at" // FieldChannels holds the string denoting the channels field in the database. FieldChannels = "channels" // FieldTopic holds the string denoting the topic field in the database. FieldTopic = "topic" // 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" // Table holds the table name of the notification in the database. Table = "notifications" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "notifications" // 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 = "notifications" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var ( Hooks [6]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 // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // ObjectTypeValidator is a validator for the "object_type" field. It is called by the builders before save. ObjectTypeValidator func(string) error // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // BodyValidator is a validator for the "body" field. It is called by the builders before save. BodyValidator func(string) error // 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, FieldTags, FieldOwnerID, FieldUserID, FieldNotificationType, FieldObjectType, FieldTitle, FieldBody, FieldData, FieldReadAt, FieldChannels, FieldTopic, }
Columns holds all SQL columns for notification fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Notification) predicate.Notification
And groups predicates with the AND operator between them.
func Body ¶
func Body(v string) predicate.Notification
Body applies equality check predicate on the "body" field. It's identical to BodyEQ.
func BodyContains ¶
func BodyContains(v string) predicate.Notification
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
func BodyContainsFold(v string) predicate.Notification
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEQ ¶
func BodyEQ(v string) predicate.Notification
BodyEQ applies the EQ predicate on the "body" field.
func BodyEqualFold ¶
func BodyEqualFold(v string) predicate.Notification
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyGT ¶
func BodyGT(v string) predicate.Notification
BodyGT applies the GT predicate on the "body" field.
func BodyGTE ¶
func BodyGTE(v string) predicate.Notification
BodyGTE applies the GTE predicate on the "body" field.
func BodyHasPrefix ¶
func BodyHasPrefix(v string) predicate.Notification
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
func BodyHasSuffix(v string) predicate.Notification
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func BodyIn ¶
func BodyIn(vs ...string) predicate.Notification
BodyIn applies the In predicate on the "body" field.
func BodyLT ¶
func BodyLT(v string) predicate.Notification
BodyLT applies the LT predicate on the "body" field.
func BodyLTE ¶
func BodyLTE(v string) predicate.Notification
BodyLTE applies the LTE predicate on the "body" field.
func BodyNEQ ¶
func BodyNEQ(v string) predicate.Notification
BodyNEQ applies the NEQ predicate on the "body" field.
func BodyNotIn ¶
func BodyNotIn(vs ...string) predicate.Notification
BodyNotIn applies the NotIn predicate on the "body" field.
func ChannelsIsNil ¶
func ChannelsIsNil() predicate.Notification
ChannelsIsNil applies the IsNil predicate on the "channels" field.
func ChannelsNotNil ¶
func ChannelsNotNil() predicate.Notification
ChannelsNotNil applies the NotNil predicate on the "channels" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Notification
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Notification
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Notification
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Notification
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Notification
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.Notification
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Notification
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Notification
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Notification
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Notification
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.Notification
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.Notification
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.Notification
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.Notification
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.Notification
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.Notification
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.Notification
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.Notification
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.Notification
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.Notification
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.Notification
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.Notification
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.Notification
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.Notification
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.Notification
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.Notification
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.Notification
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DataIsNil ¶
func DataIsNil() predicate.Notification
DataIsNil applies the IsNil predicate on the "data" field.
func DataNotNil ¶
func DataNotNil() predicate.Notification
DataNotNil applies the NotNil predicate on the "data" field.
func HasOwner ¶
func HasOwner() predicate.Notification
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Notification
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.Notification
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Notification
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.Notification
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.Notification
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.Notification
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.Notification
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.Notification
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.Notification
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.Notification
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.Notification
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.Notification
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.Notification
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Notification) predicate.Notification
Not applies the not operator on the given predicate.
func NotificationTypeEQ ¶
func NotificationTypeEQ(v enums.NotificationType) predicate.Notification
NotificationTypeEQ applies the EQ predicate on the "notification_type" field.
func NotificationTypeIn ¶
func NotificationTypeIn(vs ...enums.NotificationType) predicate.Notification
NotificationTypeIn applies the In predicate on the "notification_type" field.
func NotificationTypeNEQ ¶
func NotificationTypeNEQ(v enums.NotificationType) predicate.Notification
NotificationTypeNEQ applies the NEQ predicate on the "notification_type" field.
func NotificationTypeNotIn ¶
func NotificationTypeNotIn(vs ...enums.NotificationType) predicate.Notification
NotificationTypeNotIn applies the NotIn predicate on the "notification_type" field.
func NotificationTypeValidator ¶
func NotificationTypeValidator(nt enums.NotificationType) error
NotificationTypeValidator is a validator for the "notification_type" field enum values. It is called by the builders before save.
func ObjectType ¶
func ObjectType(v string) predicate.Notification
ObjectType applies equality check predicate on the "object_type" field. It's identical to ObjectTypeEQ.
func ObjectTypeContains ¶
func ObjectTypeContains(v string) predicate.Notification
ObjectTypeContains applies the Contains predicate on the "object_type" field.
func ObjectTypeContainsFold ¶
func ObjectTypeContainsFold(v string) predicate.Notification
ObjectTypeContainsFold applies the ContainsFold predicate on the "object_type" field.
func ObjectTypeEQ ¶
func ObjectTypeEQ(v string) predicate.Notification
ObjectTypeEQ applies the EQ predicate on the "object_type" field.
func ObjectTypeEqualFold ¶
func ObjectTypeEqualFold(v string) predicate.Notification
ObjectTypeEqualFold applies the EqualFold predicate on the "object_type" field.
func ObjectTypeGT ¶
func ObjectTypeGT(v string) predicate.Notification
ObjectTypeGT applies the GT predicate on the "object_type" field.
func ObjectTypeGTE ¶
func ObjectTypeGTE(v string) predicate.Notification
ObjectTypeGTE applies the GTE predicate on the "object_type" field.
func ObjectTypeHasPrefix ¶
func ObjectTypeHasPrefix(v string) predicate.Notification
ObjectTypeHasPrefix applies the HasPrefix predicate on the "object_type" field.
func ObjectTypeHasSuffix ¶
func ObjectTypeHasSuffix(v string) predicate.Notification
ObjectTypeHasSuffix applies the HasSuffix predicate on the "object_type" field.
func ObjectTypeIn ¶
func ObjectTypeIn(vs ...string) predicate.Notification
ObjectTypeIn applies the In predicate on the "object_type" field.
func ObjectTypeLT ¶
func ObjectTypeLT(v string) predicate.Notification
ObjectTypeLT applies the LT predicate on the "object_type" field.
func ObjectTypeLTE ¶
func ObjectTypeLTE(v string) predicate.Notification
ObjectTypeLTE applies the LTE predicate on the "object_type" field.
func ObjectTypeNEQ ¶
func ObjectTypeNEQ(v string) predicate.Notification
ObjectTypeNEQ applies the NEQ predicate on the "object_type" field.
func ObjectTypeNotIn ¶
func ObjectTypeNotIn(vs ...string) predicate.Notification
ObjectTypeNotIn applies the NotIn predicate on the "object_type" field.
func Or ¶
func Or(predicates ...predicate.Notification) predicate.Notification
Or groups predicates with the OR operator between them.
func OwnerID ¶
func OwnerID(v string) predicate.Notification
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
func OwnerIDContains(v string) predicate.Notification
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
func OwnerIDContainsFold(v string) predicate.Notification
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶
func OwnerIDEQ(v string) predicate.Notification
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
func OwnerIDEqualFold(v string) predicate.Notification
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶
func OwnerIDGT(v string) predicate.Notification
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶
func OwnerIDGTE(v string) predicate.Notification
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
func OwnerIDHasPrefix(v string) predicate.Notification
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
func OwnerIDHasSuffix(v string) predicate.Notification
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶
func OwnerIDIn(vs ...string) predicate.Notification
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIsNil ¶
func OwnerIDIsNil() predicate.Notification
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLT ¶
func OwnerIDLT(v string) predicate.Notification
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶
func OwnerIDLTE(v string) predicate.Notification
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
func OwnerIDNEQ(v string) predicate.Notification
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
func OwnerIDNotIn(vs ...string) predicate.Notification
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
func OwnerIDNotNil() predicate.Notification
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func ReadAt ¶
func ReadAt(v models.DateTime) predicate.Notification
ReadAt applies equality check predicate on the "read_at" field. It's identical to ReadAtEQ.
func ReadAtEQ ¶
func ReadAtEQ(v models.DateTime) predicate.Notification
ReadAtEQ applies the EQ predicate on the "read_at" field.
func ReadAtGT ¶
func ReadAtGT(v models.DateTime) predicate.Notification
ReadAtGT applies the GT predicate on the "read_at" field.
func ReadAtGTE ¶
func ReadAtGTE(v models.DateTime) predicate.Notification
ReadAtGTE applies the GTE predicate on the "read_at" field.
func ReadAtIn ¶
func ReadAtIn(vs ...models.DateTime) predicate.Notification
ReadAtIn applies the In predicate on the "read_at" field.
func ReadAtIsNil ¶
func ReadAtIsNil() predicate.Notification
ReadAtIsNil applies the IsNil predicate on the "read_at" field.
func ReadAtLT ¶
func ReadAtLT(v models.DateTime) predicate.Notification
ReadAtLT applies the LT predicate on the "read_at" field.
func ReadAtLTE ¶
func ReadAtLTE(v models.DateTime) predicate.Notification
ReadAtLTE applies the LTE predicate on the "read_at" field.
func ReadAtNEQ ¶
func ReadAtNEQ(v models.DateTime) predicate.Notification
ReadAtNEQ applies the NEQ predicate on the "read_at" field.
func ReadAtNotIn ¶
func ReadAtNotIn(vs ...models.DateTime) predicate.Notification
ReadAtNotIn applies the NotIn predicate on the "read_at" field.
func ReadAtNotNil ¶
func ReadAtNotNil() predicate.Notification
ReadAtNotNil applies the NotNil predicate on the "read_at" field.
func TagsIsNil ¶
func TagsIsNil() predicate.Notification
TagsIsNil applies the IsNil predicate on the "tags" field.
func TagsNotNil ¶
func TagsNotNil() predicate.Notification
TagsNotNil applies the NotNil predicate on the "tags" field.
func Title ¶
func Title(v string) predicate.Notification
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
func TitleContains(v string) predicate.Notification
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
func TitleContainsFold(v string) predicate.Notification
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEQ ¶
func TitleEQ(v string) predicate.Notification
TitleEQ applies the EQ predicate on the "title" field.
func TitleEqualFold ¶
func TitleEqualFold(v string) predicate.Notification
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleGT ¶
func TitleGT(v string) predicate.Notification
TitleGT applies the GT predicate on the "title" field.
func TitleGTE ¶
func TitleGTE(v string) predicate.Notification
TitleGTE applies the GTE predicate on the "title" field.
func TitleHasPrefix ¶
func TitleHasPrefix(v string) predicate.Notification
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
func TitleHasSuffix(v string) predicate.Notification
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIn ¶
func TitleIn(vs ...string) predicate.Notification
TitleIn applies the In predicate on the "title" field.
func TitleLT ¶
func TitleLT(v string) predicate.Notification
TitleLT applies the LT predicate on the "title" field.
func TitleLTE ¶
func TitleLTE(v string) predicate.Notification
TitleLTE applies the LTE predicate on the "title" field.
func TitleNEQ ¶
func TitleNEQ(v string) predicate.Notification
TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNotIn ¶
func TitleNotIn(vs ...string) predicate.Notification
TitleNotIn applies the NotIn predicate on the "title" field.
func Topic ¶ added in v0.46.1
func Topic(v string) predicate.Notification
Topic applies equality check predicate on the "topic" field. It's identical to TopicEQ.
func TopicContains ¶ added in v0.46.1
func TopicContains(v string) predicate.Notification
TopicContains applies the Contains predicate on the "topic" field.
func TopicContainsFold ¶ added in v0.46.1
func TopicContainsFold(v string) predicate.Notification
TopicContainsFold applies the ContainsFold predicate on the "topic" field.
func TopicEQ ¶ added in v0.46.1
func TopicEQ(v string) predicate.Notification
TopicEQ applies the EQ predicate on the "topic" field.
func TopicEqualFold ¶ added in v0.46.1
func TopicEqualFold(v string) predicate.Notification
TopicEqualFold applies the EqualFold predicate on the "topic" field.
func TopicGT ¶ added in v0.46.1
func TopicGT(v string) predicate.Notification
TopicGT applies the GT predicate on the "topic" field.
func TopicGTE ¶ added in v0.46.1
func TopicGTE(v string) predicate.Notification
TopicGTE applies the GTE predicate on the "topic" field.
func TopicHasPrefix ¶ added in v0.46.1
func TopicHasPrefix(v string) predicate.Notification
TopicHasPrefix applies the HasPrefix predicate on the "topic" field.
func TopicHasSuffix ¶ added in v0.46.1
func TopicHasSuffix(v string) predicate.Notification
TopicHasSuffix applies the HasSuffix predicate on the "topic" field.
func TopicIn ¶ added in v0.46.1
func TopicIn(vs ...string) predicate.Notification
TopicIn applies the In predicate on the "topic" field.
func TopicIsNil ¶ added in v0.46.1
func TopicIsNil() predicate.Notification
TopicIsNil applies the IsNil predicate on the "topic" field.
func TopicLT ¶ added in v0.46.1
func TopicLT(v string) predicate.Notification
TopicLT applies the LT predicate on the "topic" field.
func TopicLTE ¶ added in v0.46.1
func TopicLTE(v string) predicate.Notification
TopicLTE applies the LTE predicate on the "topic" field.
func TopicNEQ ¶ added in v0.46.1
func TopicNEQ(v string) predicate.Notification
TopicNEQ applies the NEQ predicate on the "topic" field.
func TopicNotIn ¶ added in v0.46.1
func TopicNotIn(vs ...string) predicate.Notification
TopicNotIn applies the NotIn predicate on the "topic" field.
func TopicNotNil ¶ added in v0.46.1
func TopicNotNil() predicate.Notification
TopicNotNil applies the NotNil predicate on the "topic" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Notification
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Notification
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Notification
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Notification
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Notification
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.Notification
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Notification
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Notification
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Notification
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Notification
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.Notification
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.Notification
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.Notification
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.Notification
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.Notification
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.Notification
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.Notification
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.Notification
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.Notification
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.Notification
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.Notification
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.Notification
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.Notification
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.Notification
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.Notification
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.Notification
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.Notification
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v string) predicate.Notification
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.Notification
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.Notification
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.Notification
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.Notification
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.Notification
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.Notification
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.Notification
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.Notification
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.Notification
UserIDIn applies the In predicate on the "user_id" field.
func UserIDIsNil ¶
func UserIDIsNil() predicate.Notification
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.Notification
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.Notification
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.Notification
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.Notification
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
func UserIDNotNil() predicate.Notification
UserIDNotNil applies the NotNil predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Notification queries.
func ByBody ¶
func ByBody(opts ...sql.OrderTermOption) OrderOption
ByBody orders the results by the body 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNotificationType ¶
func ByNotificationType(opts ...sql.OrderTermOption) OrderOption
ByNotificationType orders the results by the notification_type field.
func ByObjectType ¶
func ByObjectType(opts ...sql.OrderTermOption) OrderOption
ByObjectType orders the results by the object_type 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 ByReadAt ¶
func ByReadAt(opts ...sql.OrderTermOption) OrderOption
ByReadAt orders the results by the read_at field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByTopic ¶ added in v0.46.1
func ByTopic(opts ...sql.OrderTermOption) OrderOption
ByTopic orders the results by the topic 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.