mailthread

package
v0.0.0-...-65c6c44 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the mailthread type in the database.
	Label = "mail_thread"
	// 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"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldProviderThreadID holds the string denoting the provider_thread_id field in the database.
	FieldProviderThreadID = "provider_thread_id"
	// FieldSubject holds the string denoting the subject field in the database.
	FieldSubject = "subject"
	// FieldCounterpartyEmail holds the string denoting the counterparty_email field in the database.
	FieldCounterpartyEmail = "counterparty_email"
	// FieldAccountDomain holds the string denoting the account_domain field in the database.
	FieldAccountDomain = "account_domain"
	// FieldLabels holds the string denoting the labels field in the database.
	FieldLabels = "labels"
	// FieldReplyState holds the string denoting the reply_state field in the database.
	FieldReplyState = "reply_state"
	// FieldLastDirection holds the string denoting the last_direction field in the database.
	FieldLastDirection = "last_direction"
	// FieldLastActivityAt holds the string denoting the last_activity_at field in the database.
	FieldLastActivityAt = "last_activity_at"
	// FieldMessageCount holds the string denoting the message_count field in the database.
	FieldMessageCount = "message_count"
	// FieldOutboundCount holds the string denoting the outbound_count field in the database.
	FieldOutboundCount = "outbound_count"
	// FieldInboundCount holds the string denoting the inbound_count field in the database.
	FieldInboundCount = "inbound_count"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeRelationship holds the string denoting the relationship edge name in mutations.
	EdgeRelationship = "relationship"
	// EdgeMessages holds the string denoting the messages edge name in mutations.
	EdgeMessages = "messages"
	// EdgeSignal holds the string denoting the signal edge name in mutations.
	EdgeSignal = "signal"
	// Table holds the table name of the mailthread in the database.
	Table = "mail_threads"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "mail_threads"
	// 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_mail_threads"
	// RelationshipTable is the table that holds the relationship relation/edge.
	RelationshipTable = "mail_threads"
	// RelationshipInverseTable is the table name for the Relationship entity.
	// It exists in this package in order to avoid circular dependency with the "relationship" package.
	RelationshipInverseTable = "relationships"
	// RelationshipColumn is the table column denoting the relationship relation/edge.
	RelationshipColumn = "relationship_id"
	// MessagesTable is the table that holds the messages relation/edge.
	MessagesTable = "mail_message_meta"
	// MessagesInverseTable is the table name for the MailMessageMeta entity.
	// It exists in this package in order to avoid circular dependency with the "mailmessagemeta" package.
	MessagesInverseTable = "mail_message_meta"
	// MessagesColumn is the table column denoting the messages relation/edge.
	MessagesColumn = "mail_thread_id"
	// SignalTable is the table that holds the signal relation/edge.
	SignalTable = "mail_signals"
	// SignalInverseTable is the table name for the MailSignal entity.
	// It exists in this package in order to avoid circular dependency with the "mailsignal" package.
	SignalInverseTable = "mail_signals"
	// SignalColumn is the table column denoting the signal relation/edge.
	SignalColumn = "mail_thread_id"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	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
	// DefaultProvider holds the default value on creation for the "provider" field.
	DefaultProvider string
	// ProviderValidator is a validator for the "provider" field. It is called by the builders before save.
	ProviderValidator func(string) error
	// ProviderThreadIDValidator is a validator for the "provider_thread_id" field. It is called by the builders before save.
	ProviderThreadIDValidator func(string) error
	// DefaultLabels holds the default value on creation for the "labels" field.
	DefaultLabels []string
	// DefaultReplyState holds the default value on creation for the "reply_state" field.
	DefaultReplyState string
	// ReplyStateValidator is a validator for the "reply_state" field. It is called by the builders before save.
	ReplyStateValidator func(string) error
	// LastDirectionValidator is a validator for the "last_direction" field. It is called by the builders before save.
	LastDirectionValidator func(string) error
	// DefaultMessageCount holds the default value on creation for the "message_count" field.
	DefaultMessageCount int
	// MessageCountValidator is a validator for the "message_count" field. It is called by the builders before save.
	MessageCountValidator func(int) error
	// DefaultOutboundCount holds the default value on creation for the "outbound_count" field.
	DefaultOutboundCount int
	// OutboundCountValidator is a validator for the "outbound_count" field. It is called by the builders before save.
	OutboundCountValidator func(int) error
	// DefaultInboundCount holds the default value on creation for the "inbound_count" field.
	DefaultInboundCount int
	// InboundCountValidator is a validator for the "inbound_count" field. It is called by the builders before save.
	InboundCountValidator func(int) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

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/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"

Columns holds all SQL columns for mailthread fields.

View Source
var ForeignKeys = []string{
	"relationship_id",
	"user_mail_threads",
}

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

Functions

func AccountDomain

func AccountDomain(v string) predicate.MailThread

AccountDomain applies equality check predicate on the "account_domain" field. It's identical to AccountDomainEQ.

func AccountDomainContains

func AccountDomainContains(v string) predicate.MailThread

AccountDomainContains applies the Contains predicate on the "account_domain" field.

func AccountDomainContainsFold

func AccountDomainContainsFold(v string) predicate.MailThread

AccountDomainContainsFold applies the ContainsFold predicate on the "account_domain" field.

func AccountDomainEQ

func AccountDomainEQ(v string) predicate.MailThread

AccountDomainEQ applies the EQ predicate on the "account_domain" field.

func AccountDomainEqualFold

func AccountDomainEqualFold(v string) predicate.MailThread

AccountDomainEqualFold applies the EqualFold predicate on the "account_domain" field.

func AccountDomainGT

func AccountDomainGT(v string) predicate.MailThread

AccountDomainGT applies the GT predicate on the "account_domain" field.

func AccountDomainGTE

func AccountDomainGTE(v string) predicate.MailThread

AccountDomainGTE applies the GTE predicate on the "account_domain" field.

func AccountDomainHasPrefix

func AccountDomainHasPrefix(v string) predicate.MailThread

AccountDomainHasPrefix applies the HasPrefix predicate on the "account_domain" field.

func AccountDomainHasSuffix

func AccountDomainHasSuffix(v string) predicate.MailThread

AccountDomainHasSuffix applies the HasSuffix predicate on the "account_domain" field.

func AccountDomainIn

func AccountDomainIn(vs ...string) predicate.MailThread

AccountDomainIn applies the In predicate on the "account_domain" field.

func AccountDomainIsNil

func AccountDomainIsNil() predicate.MailThread

AccountDomainIsNil applies the IsNil predicate on the "account_domain" field.

func AccountDomainLT

func AccountDomainLT(v string) predicate.MailThread

AccountDomainLT applies the LT predicate on the "account_domain" field.

func AccountDomainLTE

func AccountDomainLTE(v string) predicate.MailThread

AccountDomainLTE applies the LTE predicate on the "account_domain" field.

func AccountDomainNEQ

func AccountDomainNEQ(v string) predicate.MailThread

AccountDomainNEQ applies the NEQ predicate on the "account_domain" field.

func AccountDomainNotIn

func AccountDomainNotIn(vs ...string) predicate.MailThread

AccountDomainNotIn applies the NotIn predicate on the "account_domain" field.

func AccountDomainNotNil

func AccountDomainNotNil() predicate.MailThread

AccountDomainNotNil applies the NotNil predicate on the "account_domain" field.

func And

func And(predicates ...predicate.MailThread) predicate.MailThread

And groups predicates with the AND operator between them.

func CounterpartyEmail

func CounterpartyEmail(v string) predicate.MailThread

CounterpartyEmail applies equality check predicate on the "counterparty_email" field. It's identical to CounterpartyEmailEQ.

func CounterpartyEmailContains

func CounterpartyEmailContains(v string) predicate.MailThread

CounterpartyEmailContains applies the Contains predicate on the "counterparty_email" field.

func CounterpartyEmailContainsFold

func CounterpartyEmailContainsFold(v string) predicate.MailThread

CounterpartyEmailContainsFold applies the ContainsFold predicate on the "counterparty_email" field.

func CounterpartyEmailEQ

func CounterpartyEmailEQ(v string) predicate.MailThread

CounterpartyEmailEQ applies the EQ predicate on the "counterparty_email" field.

func CounterpartyEmailEqualFold

func CounterpartyEmailEqualFold(v string) predicate.MailThread

CounterpartyEmailEqualFold applies the EqualFold predicate on the "counterparty_email" field.

func CounterpartyEmailGT

func CounterpartyEmailGT(v string) predicate.MailThread

CounterpartyEmailGT applies the GT predicate on the "counterparty_email" field.

func CounterpartyEmailGTE

func CounterpartyEmailGTE(v string) predicate.MailThread

CounterpartyEmailGTE applies the GTE predicate on the "counterparty_email" field.

func CounterpartyEmailHasPrefix

func CounterpartyEmailHasPrefix(v string) predicate.MailThread

CounterpartyEmailHasPrefix applies the HasPrefix predicate on the "counterparty_email" field.

func CounterpartyEmailHasSuffix

func CounterpartyEmailHasSuffix(v string) predicate.MailThread

CounterpartyEmailHasSuffix applies the HasSuffix predicate on the "counterparty_email" field.

func CounterpartyEmailIn

func CounterpartyEmailIn(vs ...string) predicate.MailThread

CounterpartyEmailIn applies the In predicate on the "counterparty_email" field.

func CounterpartyEmailIsNil

func CounterpartyEmailIsNil() predicate.MailThread

CounterpartyEmailIsNil applies the IsNil predicate on the "counterparty_email" field.

func CounterpartyEmailLT

func CounterpartyEmailLT(v string) predicate.MailThread

CounterpartyEmailLT applies the LT predicate on the "counterparty_email" field.

func CounterpartyEmailLTE

func CounterpartyEmailLTE(v string) predicate.MailThread

CounterpartyEmailLTE applies the LTE predicate on the "counterparty_email" field.

func CounterpartyEmailNEQ

func CounterpartyEmailNEQ(v string) predicate.MailThread

CounterpartyEmailNEQ applies the NEQ predicate on the "counterparty_email" field.

func CounterpartyEmailNotIn

func CounterpartyEmailNotIn(vs ...string) predicate.MailThread

CounterpartyEmailNotIn applies the NotIn predicate on the "counterparty_email" field.

func CounterpartyEmailNotNil

func CounterpartyEmailNotNil() predicate.MailThread

CounterpartyEmailNotNil applies the NotNil predicate on the "counterparty_email" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.MailThread

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MailThread

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MailThread

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MailThread

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MailThread

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MailThread

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MailThread

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

func CreatedAtNotIn

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

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

func HasMessages

func HasMessages() predicate.MailThread

HasMessages applies the HasEdge predicate on the "messages" edge.

func HasMessagesWith

func HasMessagesWith(preds ...predicate.MailMessageMeta) predicate.MailThread

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

func HasRelationship

func HasRelationship() predicate.MailThread

HasRelationship applies the HasEdge predicate on the "relationship" edge.

func HasRelationshipWith

func HasRelationshipWith(preds ...predicate.Relationship) predicate.MailThread

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

func HasSignal

func HasSignal() predicate.MailThread

HasSignal applies the HasEdge predicate on the "signal" edge.

func HasSignalWith

func HasSignalWith(preds ...predicate.MailSignal) predicate.MailThread

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

func HasUser

func HasUser() predicate.MailThread

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

func HasUserWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.MailThread

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.MailThread

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.MailThread

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.MailThread

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.MailThread

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.MailThread

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.MailThread

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.MailThread

IDNotIn applies the NotIn predicate on the ID field.

func InboundCount

func InboundCount(v int) predicate.MailThread

InboundCount applies equality check predicate on the "inbound_count" field. It's identical to InboundCountEQ.

func InboundCountEQ

func InboundCountEQ(v int) predicate.MailThread

InboundCountEQ applies the EQ predicate on the "inbound_count" field.

func InboundCountGT

func InboundCountGT(v int) predicate.MailThread

InboundCountGT applies the GT predicate on the "inbound_count" field.

func InboundCountGTE

func InboundCountGTE(v int) predicate.MailThread

InboundCountGTE applies the GTE predicate on the "inbound_count" field.

func InboundCountIn

func InboundCountIn(vs ...int) predicate.MailThread

InboundCountIn applies the In predicate on the "inbound_count" field.

func InboundCountLT

func InboundCountLT(v int) predicate.MailThread

InboundCountLT applies the LT predicate on the "inbound_count" field.

func InboundCountLTE

func InboundCountLTE(v int) predicate.MailThread

InboundCountLTE applies the LTE predicate on the "inbound_count" field.

func InboundCountNEQ

func InboundCountNEQ(v int) predicate.MailThread

InboundCountNEQ applies the NEQ predicate on the "inbound_count" field.

func InboundCountNotIn

func InboundCountNotIn(vs ...int) predicate.MailThread

InboundCountNotIn applies the NotIn predicate on the "inbound_count" field.

func LastActivityAt

func LastActivityAt(v time.Time) predicate.MailThread

LastActivityAt applies equality check predicate on the "last_activity_at" field. It's identical to LastActivityAtEQ.

func LastActivityAtEQ

func LastActivityAtEQ(v time.Time) predicate.MailThread

LastActivityAtEQ applies the EQ predicate on the "last_activity_at" field.

func LastActivityAtGT

func LastActivityAtGT(v time.Time) predicate.MailThread

LastActivityAtGT applies the GT predicate on the "last_activity_at" field.

func LastActivityAtGTE

func LastActivityAtGTE(v time.Time) predicate.MailThread

LastActivityAtGTE applies the GTE predicate on the "last_activity_at" field.

func LastActivityAtIn

func LastActivityAtIn(vs ...time.Time) predicate.MailThread

LastActivityAtIn applies the In predicate on the "last_activity_at" field.

func LastActivityAtIsNil

func LastActivityAtIsNil() predicate.MailThread

LastActivityAtIsNil applies the IsNil predicate on the "last_activity_at" field.

func LastActivityAtLT

func LastActivityAtLT(v time.Time) predicate.MailThread

LastActivityAtLT applies the LT predicate on the "last_activity_at" field.

func LastActivityAtLTE

func LastActivityAtLTE(v time.Time) predicate.MailThread

LastActivityAtLTE applies the LTE predicate on the "last_activity_at" field.

func LastActivityAtNEQ

func LastActivityAtNEQ(v time.Time) predicate.MailThread

LastActivityAtNEQ applies the NEQ predicate on the "last_activity_at" field.

func LastActivityAtNotIn

func LastActivityAtNotIn(vs ...time.Time) predicate.MailThread

LastActivityAtNotIn applies the NotIn predicate on the "last_activity_at" field.

func LastActivityAtNotNil

func LastActivityAtNotNil() predicate.MailThread

LastActivityAtNotNil applies the NotNil predicate on the "last_activity_at" field.

func LastDirection

func LastDirection(v string) predicate.MailThread

LastDirection applies equality check predicate on the "last_direction" field. It's identical to LastDirectionEQ.

func LastDirectionContains

func LastDirectionContains(v string) predicate.MailThread

LastDirectionContains applies the Contains predicate on the "last_direction" field.

func LastDirectionContainsFold

func LastDirectionContainsFold(v string) predicate.MailThread

LastDirectionContainsFold applies the ContainsFold predicate on the "last_direction" field.

func LastDirectionEQ

func LastDirectionEQ(v string) predicate.MailThread

LastDirectionEQ applies the EQ predicate on the "last_direction" field.

func LastDirectionEqualFold

func LastDirectionEqualFold(v string) predicate.MailThread

LastDirectionEqualFold applies the EqualFold predicate on the "last_direction" field.

func LastDirectionGT

func LastDirectionGT(v string) predicate.MailThread

LastDirectionGT applies the GT predicate on the "last_direction" field.

func LastDirectionGTE

func LastDirectionGTE(v string) predicate.MailThread

LastDirectionGTE applies the GTE predicate on the "last_direction" field.

func LastDirectionHasPrefix

func LastDirectionHasPrefix(v string) predicate.MailThread

LastDirectionHasPrefix applies the HasPrefix predicate on the "last_direction" field.

func LastDirectionHasSuffix

func LastDirectionHasSuffix(v string) predicate.MailThread

LastDirectionHasSuffix applies the HasSuffix predicate on the "last_direction" field.

func LastDirectionIn

func LastDirectionIn(vs ...string) predicate.MailThread

LastDirectionIn applies the In predicate on the "last_direction" field.

func LastDirectionIsNil

func LastDirectionIsNil() predicate.MailThread

LastDirectionIsNil applies the IsNil predicate on the "last_direction" field.

func LastDirectionLT

func LastDirectionLT(v string) predicate.MailThread

LastDirectionLT applies the LT predicate on the "last_direction" field.

func LastDirectionLTE

func LastDirectionLTE(v string) predicate.MailThread

LastDirectionLTE applies the LTE predicate on the "last_direction" field.

func LastDirectionNEQ

func LastDirectionNEQ(v string) predicate.MailThread

LastDirectionNEQ applies the NEQ predicate on the "last_direction" field.

func LastDirectionNotIn

func LastDirectionNotIn(vs ...string) predicate.MailThread

LastDirectionNotIn applies the NotIn predicate on the "last_direction" field.

func LastDirectionNotNil

func LastDirectionNotNil() predicate.MailThread

LastDirectionNotNil applies the NotNil predicate on the "last_direction" field.

func MessageCount

func MessageCount(v int) predicate.MailThread

MessageCount applies equality check predicate on the "message_count" field. It's identical to MessageCountEQ.

func MessageCountEQ

func MessageCountEQ(v int) predicate.MailThread

MessageCountEQ applies the EQ predicate on the "message_count" field.

func MessageCountGT

func MessageCountGT(v int) predicate.MailThread

MessageCountGT applies the GT predicate on the "message_count" field.

func MessageCountGTE

func MessageCountGTE(v int) predicate.MailThread

MessageCountGTE applies the GTE predicate on the "message_count" field.

func MessageCountIn

func MessageCountIn(vs ...int) predicate.MailThread

MessageCountIn applies the In predicate on the "message_count" field.

func MessageCountLT

func MessageCountLT(v int) predicate.MailThread

MessageCountLT applies the LT predicate on the "message_count" field.

func MessageCountLTE

func MessageCountLTE(v int) predicate.MailThread

MessageCountLTE applies the LTE predicate on the "message_count" field.

func MessageCountNEQ

func MessageCountNEQ(v int) predicate.MailThread

MessageCountNEQ applies the NEQ predicate on the "message_count" field.

func MessageCountNotIn

func MessageCountNotIn(vs ...int) predicate.MailThread

MessageCountNotIn applies the NotIn predicate on the "message_count" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.MailThread) predicate.MailThread

Or groups predicates with the OR operator between them.

func OutboundCount

func OutboundCount(v int) predicate.MailThread

OutboundCount applies equality check predicate on the "outbound_count" field. It's identical to OutboundCountEQ.

func OutboundCountEQ

func OutboundCountEQ(v int) predicate.MailThread

OutboundCountEQ applies the EQ predicate on the "outbound_count" field.

func OutboundCountGT

func OutboundCountGT(v int) predicate.MailThread

OutboundCountGT applies the GT predicate on the "outbound_count" field.

func OutboundCountGTE

func OutboundCountGTE(v int) predicate.MailThread

OutboundCountGTE applies the GTE predicate on the "outbound_count" field.

func OutboundCountIn

func OutboundCountIn(vs ...int) predicate.MailThread

OutboundCountIn applies the In predicate on the "outbound_count" field.

func OutboundCountLT

func OutboundCountLT(v int) predicate.MailThread

OutboundCountLT applies the LT predicate on the "outbound_count" field.

func OutboundCountLTE

func OutboundCountLTE(v int) predicate.MailThread

OutboundCountLTE applies the LTE predicate on the "outbound_count" field.

func OutboundCountNEQ

func OutboundCountNEQ(v int) predicate.MailThread

OutboundCountNEQ applies the NEQ predicate on the "outbound_count" field.

func OutboundCountNotIn

func OutboundCountNotIn(vs ...int) predicate.MailThread

OutboundCountNotIn applies the NotIn predicate on the "outbound_count" field.

func Provider

func Provider(v string) predicate.MailThread

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

func ProviderContains

func ProviderContains(v string) predicate.MailThread

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

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.MailThread

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

func ProviderEQ

func ProviderEQ(v string) predicate.MailThread

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

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.MailThread

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

func ProviderGT

func ProviderGT(v string) predicate.MailThread

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

func ProviderGTE

func ProviderGTE(v string) predicate.MailThread

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

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.MailThread

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

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.MailThread

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

func ProviderIn

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

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

func ProviderLT

func ProviderLT(v string) predicate.MailThread

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

func ProviderLTE

func ProviderLTE(v string) predicate.MailThread

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

func ProviderNEQ

func ProviderNEQ(v string) predicate.MailThread

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

func ProviderNotIn

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

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

func ProviderThreadID

func ProviderThreadID(v string) predicate.MailThread

ProviderThreadID applies equality check predicate on the "provider_thread_id" field. It's identical to ProviderThreadIDEQ.

func ProviderThreadIDContains

func ProviderThreadIDContains(v string) predicate.MailThread

ProviderThreadIDContains applies the Contains predicate on the "provider_thread_id" field.

func ProviderThreadIDContainsFold

func ProviderThreadIDContainsFold(v string) predicate.MailThread

ProviderThreadIDContainsFold applies the ContainsFold predicate on the "provider_thread_id" field.

func ProviderThreadIDEQ

func ProviderThreadIDEQ(v string) predicate.MailThread

ProviderThreadIDEQ applies the EQ predicate on the "provider_thread_id" field.

func ProviderThreadIDEqualFold

func ProviderThreadIDEqualFold(v string) predicate.MailThread

ProviderThreadIDEqualFold applies the EqualFold predicate on the "provider_thread_id" field.

func ProviderThreadIDGT

func ProviderThreadIDGT(v string) predicate.MailThread

ProviderThreadIDGT applies the GT predicate on the "provider_thread_id" field.

func ProviderThreadIDGTE

func ProviderThreadIDGTE(v string) predicate.MailThread

ProviderThreadIDGTE applies the GTE predicate on the "provider_thread_id" field.

func ProviderThreadIDHasPrefix

func ProviderThreadIDHasPrefix(v string) predicate.MailThread

ProviderThreadIDHasPrefix applies the HasPrefix predicate on the "provider_thread_id" field.

func ProviderThreadIDHasSuffix

func ProviderThreadIDHasSuffix(v string) predicate.MailThread

ProviderThreadIDHasSuffix applies the HasSuffix predicate on the "provider_thread_id" field.

func ProviderThreadIDIn

func ProviderThreadIDIn(vs ...string) predicate.MailThread

ProviderThreadIDIn applies the In predicate on the "provider_thread_id" field.

func ProviderThreadIDLT

func ProviderThreadIDLT(v string) predicate.MailThread

ProviderThreadIDLT applies the LT predicate on the "provider_thread_id" field.

func ProviderThreadIDLTE

func ProviderThreadIDLTE(v string) predicate.MailThread

ProviderThreadIDLTE applies the LTE predicate on the "provider_thread_id" field.

func ProviderThreadIDNEQ

func ProviderThreadIDNEQ(v string) predicate.MailThread

ProviderThreadIDNEQ applies the NEQ predicate on the "provider_thread_id" field.

func ProviderThreadIDNotIn

func ProviderThreadIDNotIn(vs ...string) predicate.MailThread

ProviderThreadIDNotIn applies the NotIn predicate on the "provider_thread_id" field.

func ReplyState

func ReplyState(v string) predicate.MailThread

ReplyState applies equality check predicate on the "reply_state" field. It's identical to ReplyStateEQ.

func ReplyStateContains

func ReplyStateContains(v string) predicate.MailThread

ReplyStateContains applies the Contains predicate on the "reply_state" field.

func ReplyStateContainsFold

func ReplyStateContainsFold(v string) predicate.MailThread

ReplyStateContainsFold applies the ContainsFold predicate on the "reply_state" field.

func ReplyStateEQ

func ReplyStateEQ(v string) predicate.MailThread

ReplyStateEQ applies the EQ predicate on the "reply_state" field.

func ReplyStateEqualFold

func ReplyStateEqualFold(v string) predicate.MailThread

ReplyStateEqualFold applies the EqualFold predicate on the "reply_state" field.

func ReplyStateGT

func ReplyStateGT(v string) predicate.MailThread

ReplyStateGT applies the GT predicate on the "reply_state" field.

func ReplyStateGTE

func ReplyStateGTE(v string) predicate.MailThread

ReplyStateGTE applies the GTE predicate on the "reply_state" field.

func ReplyStateHasPrefix

func ReplyStateHasPrefix(v string) predicate.MailThread

ReplyStateHasPrefix applies the HasPrefix predicate on the "reply_state" field.

func ReplyStateHasSuffix

func ReplyStateHasSuffix(v string) predicate.MailThread

ReplyStateHasSuffix applies the HasSuffix predicate on the "reply_state" field.

func ReplyStateIn

func ReplyStateIn(vs ...string) predicate.MailThread

ReplyStateIn applies the In predicate on the "reply_state" field.

func ReplyStateLT

func ReplyStateLT(v string) predicate.MailThread

ReplyStateLT applies the LT predicate on the "reply_state" field.

func ReplyStateLTE

func ReplyStateLTE(v string) predicate.MailThread

ReplyStateLTE applies the LTE predicate on the "reply_state" field.

func ReplyStateNEQ

func ReplyStateNEQ(v string) predicate.MailThread

ReplyStateNEQ applies the NEQ predicate on the "reply_state" field.

func ReplyStateNotIn

func ReplyStateNotIn(vs ...string) predicate.MailThread

ReplyStateNotIn applies the NotIn predicate on the "reply_state" field.

func Subject

func Subject(v string) predicate.MailThread

Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.

func SubjectContains

func SubjectContains(v string) predicate.MailThread

SubjectContains applies the Contains predicate on the "subject" field.

func SubjectContainsFold

func SubjectContainsFold(v string) predicate.MailThread

SubjectContainsFold applies the ContainsFold predicate on the "subject" field.

func SubjectEQ

func SubjectEQ(v string) predicate.MailThread

SubjectEQ applies the EQ predicate on the "subject" field.

func SubjectEqualFold

func SubjectEqualFold(v string) predicate.MailThread

SubjectEqualFold applies the EqualFold predicate on the "subject" field.

func SubjectGT

func SubjectGT(v string) predicate.MailThread

SubjectGT applies the GT predicate on the "subject" field.

func SubjectGTE

func SubjectGTE(v string) predicate.MailThread

SubjectGTE applies the GTE predicate on the "subject" field.

func SubjectHasPrefix

func SubjectHasPrefix(v string) predicate.MailThread

SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.

func SubjectHasSuffix

func SubjectHasSuffix(v string) predicate.MailThread

SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.

func SubjectIn

func SubjectIn(vs ...string) predicate.MailThread

SubjectIn applies the In predicate on the "subject" field.

func SubjectIsNil

func SubjectIsNil() predicate.MailThread

SubjectIsNil applies the IsNil predicate on the "subject" field.

func SubjectLT

func SubjectLT(v string) predicate.MailThread

SubjectLT applies the LT predicate on the "subject" field.

func SubjectLTE

func SubjectLTE(v string) predicate.MailThread

SubjectLTE applies the LTE predicate on the "subject" field.

func SubjectNEQ

func SubjectNEQ(v string) predicate.MailThread

SubjectNEQ applies the NEQ predicate on the "subject" field.

func SubjectNotIn

func SubjectNotIn(vs ...string) predicate.MailThread

SubjectNotIn applies the NotIn predicate on the "subject" field.

func SubjectNotNil

func SubjectNotNil() predicate.MailThread

SubjectNotNil applies the NotNil predicate on the "subject" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MailThread

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MailThread

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MailThread

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MailThread

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MailThread

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MailThread

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MailThread

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the MailThread queries.

func ByAccountDomain

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

ByAccountDomain orders the results by the account_domain field.

func ByCounterpartyEmail

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

ByCounterpartyEmail orders the results by the counterparty_email field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByInboundCount

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

ByInboundCount orders the results by the inbound_count field.

func ByLastActivityAt

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

ByLastActivityAt orders the results by the last_activity_at field.

func ByLastDirection

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

ByLastDirection orders the results by the last_direction field.

func ByMessageCount

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

ByMessageCount orders the results by the message_count field.

func ByMessages

func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMessages orders the results by messages terms.

func ByMessagesCount

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

ByMessagesCount orders the results by messages count.

func ByOutboundCount

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

ByOutboundCount orders the results by the outbound_count field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByProviderThreadID

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

ByProviderThreadID orders the results by the provider_thread_id field.

func ByRelationshipField

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

ByRelationshipField orders the results by relationship field.

func ByReplyState

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

ByReplyState orders the results by the reply_state field.

func BySignalField

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

BySignalField orders the results by signal field.

func BySubject

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

BySubject orders the results by the subject field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

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

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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