invite

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the invite type in the database.
	Label = "invite"
	// 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"
	// FieldMappingID holds the string denoting the mapping_id field in the database.
	FieldMappingID = "mapping_id"
	// 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"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldExpires holds the string denoting the expires field in the database.
	FieldExpires = "expires"
	// FieldRecipient holds the string denoting the recipient field in the database.
	FieldRecipient = "recipient"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldSendAttempts holds the string denoting the send_attempts field in the database.
	FieldSendAttempts = "send_attempts"
	// FieldRequestorID holds the string denoting the requestor_id field in the database.
	FieldRequestorID = "requestor_id"
	// FieldSecret holds the string denoting the secret field in the database.
	FieldSecret = "secret"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// Table holds the table name of the invite in the database.
	Table = "invites"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "invites"
	// 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"
	// EventsTable is the table that holds the events relation/edge. The primary key declared below.
	EventsTable = "invite_events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
)
View Source
const DefaultRole enums.Role = "MEMBER"
View Source
const DefaultStatus enums.InviteStatus = "INVITATION_SENT"

Variables

View Source
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
	// DefaultMappingID holds the default value on creation for the "mapping_id" field.
	DefaultMappingID func() string
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// TokenValidator is a validator for the "token" field. It is called by the builders before save.
	TokenValidator func(string) error
	// DefaultExpires holds the default value on creation for the "expires" field.
	DefaultExpires func() time.Time
	// RecipientValidator is a validator for the "recipient" field. It is called by the builders before save.
	RecipientValidator func(string) error
	// DefaultSendAttempts holds the default value on creation for the "send_attempts" field.
	DefaultSendAttempts int
	// RequestorIDValidator is a validator for the "requestor_id" field. It is called by the builders before save.
	RequestorIDValidator func(string) error
	// SecretValidator is a validator for the "secret" field. It is called by the builders before save.
	SecretValidator func([]byte) 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"

Columns holds all SQL columns for invite fields.

View Source
var (
	// EventsPrimaryKey and EventsColumn2 are the table columns denoting the
	// primary key for the events relation (M2M).
	EventsPrimaryKey = []string{"invite_id", "event_id"}
)

Functions

func And

func And(predicates ...predicate.Invite) predicate.Invite

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Invite

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Invite

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Invite

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Invite

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Invite

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Invite

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Invite

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Invite

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Invite

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

func CreatedBy

func CreatedBy(v string) predicate.Invite

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

func CreatedByContains

func CreatedByContains(v string) predicate.Invite

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Invite

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.Invite

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Invite

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

func CreatedByGT

func CreatedByGT(v string) predicate.Invite

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.Invite

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Invite

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Invite

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.Invite

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

func CreatedByLT

func CreatedByLT(v string) predicate.Invite

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.Invite

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Invite

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.Invite

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Invite

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Invite

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Invite

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Invite

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Invite

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Invite

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Invite

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Invite

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Invite

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

func DeletedBy

func DeletedBy(v string) predicate.Invite

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

func DeletedByContains

func DeletedByContains(v string) predicate.Invite

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

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.Invite

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

func DeletedByEQ

func DeletedByEQ(v string) predicate.Invite

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

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.Invite

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

func DeletedByGT

func DeletedByGT(v string) predicate.Invite

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

func DeletedByGTE

func DeletedByGTE(v string) predicate.Invite

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

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.Invite

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

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.Invite

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

func DeletedByIn

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

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

func DeletedByIsNil

func DeletedByIsNil() predicate.Invite

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

func DeletedByLT

func DeletedByLT(v string) predicate.Invite

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

func DeletedByLTE

func DeletedByLTE(v string) predicate.Invite

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

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.Invite

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

func DeletedByNotIn

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

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

func DeletedByNotNil

func DeletedByNotNil() predicate.Invite

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

func Expires

func Expires(v time.Time) predicate.Invite

Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ.

func ExpiresEQ

func ExpiresEQ(v time.Time) predicate.Invite

ExpiresEQ applies the EQ predicate on the "expires" field.

func ExpiresGT

func ExpiresGT(v time.Time) predicate.Invite

ExpiresGT applies the GT predicate on the "expires" field.

func ExpiresGTE

func ExpiresGTE(v time.Time) predicate.Invite

ExpiresGTE applies the GTE predicate on the "expires" field.

func ExpiresIn

func ExpiresIn(vs ...time.Time) predicate.Invite

ExpiresIn applies the In predicate on the "expires" field.

func ExpiresIsNil

func ExpiresIsNil() predicate.Invite

ExpiresIsNil applies the IsNil predicate on the "expires" field.

func ExpiresLT

func ExpiresLT(v time.Time) predicate.Invite

ExpiresLT applies the LT predicate on the "expires" field.

func ExpiresLTE

func ExpiresLTE(v time.Time) predicate.Invite

ExpiresLTE applies the LTE predicate on the "expires" field.

func ExpiresNEQ

func ExpiresNEQ(v time.Time) predicate.Invite

ExpiresNEQ applies the NEQ predicate on the "expires" field.

func ExpiresNotIn

func ExpiresNotIn(vs ...time.Time) predicate.Invite

ExpiresNotIn applies the NotIn predicate on the "expires" field.

func ExpiresNotNil

func ExpiresNotNil() predicate.Invite

ExpiresNotNil applies the NotNil predicate on the "expires" field.

func HasEvents

func HasEvents() predicate.Invite

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Invite

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

func HasOwner

func HasOwner() predicate.Invite

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Invite

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

func ID

func ID(id string) predicate.Invite

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Invite

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Invite

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Invite

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Invite

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Invite

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Invite

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Invite

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Invite

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Invite

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Invite

IDNotIn applies the NotIn predicate on the ID field.

func MappingID

func MappingID(v string) predicate.Invite

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains

func MappingIDContains(v string) predicate.Invite

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold

func MappingIDContainsFold(v string) predicate.Invite

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ

func MappingIDEQ(v string) predicate.Invite

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold

func MappingIDEqualFold(v string) predicate.Invite

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT

func MappingIDGT(v string) predicate.Invite

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE

func MappingIDGTE(v string) predicate.Invite

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix

func MappingIDHasPrefix(v string) predicate.Invite

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix

func MappingIDHasSuffix(v string) predicate.Invite

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn

func MappingIDIn(vs ...string) predicate.Invite

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT

func MappingIDLT(v string) predicate.Invite

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE

func MappingIDLTE(v string) predicate.Invite

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ

func MappingIDNEQ(v string) predicate.Invite

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn

func MappingIDNotIn(vs ...string) predicate.Invite

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Invite) predicate.Invite

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.Invite

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

func OwnerIDContains

func OwnerIDContains(v string) predicate.Invite

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

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Invite

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

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Invite

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

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Invite

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

func OwnerIDGT

func OwnerIDGT(v string) predicate.Invite

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

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Invite

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

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Invite

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

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Invite

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

func OwnerIDIn

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

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

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Invite

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

func OwnerIDLT

func OwnerIDLT(v string) predicate.Invite

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

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Invite

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

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Invite

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

func OwnerIDNotIn

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

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

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Invite

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

func Recipient

func Recipient(v string) predicate.Invite

Recipient applies equality check predicate on the "recipient" field. It's identical to RecipientEQ.

func RecipientContains

func RecipientContains(v string) predicate.Invite

RecipientContains applies the Contains predicate on the "recipient" field.

func RecipientContainsFold

func RecipientContainsFold(v string) predicate.Invite

RecipientContainsFold applies the ContainsFold predicate on the "recipient" field.

func RecipientEQ

func RecipientEQ(v string) predicate.Invite

RecipientEQ applies the EQ predicate on the "recipient" field.

func RecipientEqualFold

func RecipientEqualFold(v string) predicate.Invite

RecipientEqualFold applies the EqualFold predicate on the "recipient" field.

func RecipientGT

func RecipientGT(v string) predicate.Invite

RecipientGT applies the GT predicate on the "recipient" field.

func RecipientGTE

func RecipientGTE(v string) predicate.Invite

RecipientGTE applies the GTE predicate on the "recipient" field.

func RecipientHasPrefix

func RecipientHasPrefix(v string) predicate.Invite

RecipientHasPrefix applies the HasPrefix predicate on the "recipient" field.

func RecipientHasSuffix

func RecipientHasSuffix(v string) predicate.Invite

RecipientHasSuffix applies the HasSuffix predicate on the "recipient" field.

func RecipientIn

func RecipientIn(vs ...string) predicate.Invite

RecipientIn applies the In predicate on the "recipient" field.

func RecipientLT

func RecipientLT(v string) predicate.Invite

RecipientLT applies the LT predicate on the "recipient" field.

func RecipientLTE

func RecipientLTE(v string) predicate.Invite

RecipientLTE applies the LTE predicate on the "recipient" field.

func RecipientNEQ

func RecipientNEQ(v string) predicate.Invite

RecipientNEQ applies the NEQ predicate on the "recipient" field.

func RecipientNotIn

func RecipientNotIn(vs ...string) predicate.Invite

RecipientNotIn applies the NotIn predicate on the "recipient" field.

func RequestorID

func RequestorID(v string) predicate.Invite

RequestorID applies equality check predicate on the "requestor_id" field. It's identical to RequestorIDEQ.

func RequestorIDContains

func RequestorIDContains(v string) predicate.Invite

RequestorIDContains applies the Contains predicate on the "requestor_id" field.

func RequestorIDContainsFold

func RequestorIDContainsFold(v string) predicate.Invite

RequestorIDContainsFold applies the ContainsFold predicate on the "requestor_id" field.

func RequestorIDEQ

func RequestorIDEQ(v string) predicate.Invite

RequestorIDEQ applies the EQ predicate on the "requestor_id" field.

func RequestorIDEqualFold

func RequestorIDEqualFold(v string) predicate.Invite

RequestorIDEqualFold applies the EqualFold predicate on the "requestor_id" field.

func RequestorIDGT

func RequestorIDGT(v string) predicate.Invite

RequestorIDGT applies the GT predicate on the "requestor_id" field.

func RequestorIDGTE

func RequestorIDGTE(v string) predicate.Invite

RequestorIDGTE applies the GTE predicate on the "requestor_id" field.

func RequestorIDHasPrefix

func RequestorIDHasPrefix(v string) predicate.Invite

RequestorIDHasPrefix applies the HasPrefix predicate on the "requestor_id" field.

func RequestorIDHasSuffix

func RequestorIDHasSuffix(v string) predicate.Invite

RequestorIDHasSuffix applies the HasSuffix predicate on the "requestor_id" field.

func RequestorIDIn

func RequestorIDIn(vs ...string) predicate.Invite

RequestorIDIn applies the In predicate on the "requestor_id" field.

func RequestorIDIsNil

func RequestorIDIsNil() predicate.Invite

RequestorIDIsNil applies the IsNil predicate on the "requestor_id" field.

func RequestorIDLT

func RequestorIDLT(v string) predicate.Invite

RequestorIDLT applies the LT predicate on the "requestor_id" field.

func RequestorIDLTE

func RequestorIDLTE(v string) predicate.Invite

RequestorIDLTE applies the LTE predicate on the "requestor_id" field.

func RequestorIDNEQ

func RequestorIDNEQ(v string) predicate.Invite

RequestorIDNEQ applies the NEQ predicate on the "requestor_id" field.

func RequestorIDNotIn

func RequestorIDNotIn(vs ...string) predicate.Invite

RequestorIDNotIn applies the NotIn predicate on the "requestor_id" field.

func RequestorIDNotNil

func RequestorIDNotNil() predicate.Invite

RequestorIDNotNil applies the NotNil predicate on the "requestor_id" field.

func RoleEQ

func RoleEQ(v enums.Role) predicate.Invite

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...enums.Role) predicate.Invite

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v enums.Role) predicate.Invite

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...enums.Role) predicate.Invite

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r enums.Role) error

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

func Secret

func Secret(v []byte) predicate.Invite

Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.

func SecretEQ

func SecretEQ(v []byte) predicate.Invite

SecretEQ applies the EQ predicate on the "secret" field.

func SecretGT

func SecretGT(v []byte) predicate.Invite

SecretGT applies the GT predicate on the "secret" field.

func SecretGTE

func SecretGTE(v []byte) predicate.Invite

SecretGTE applies the GTE predicate on the "secret" field.

func SecretIn

func SecretIn(vs ...[]byte) predicate.Invite

SecretIn applies the In predicate on the "secret" field.

func SecretLT

func SecretLT(v []byte) predicate.Invite

SecretLT applies the LT predicate on the "secret" field.

func SecretLTE

func SecretLTE(v []byte) predicate.Invite

SecretLTE applies the LTE predicate on the "secret" field.

func SecretNEQ

func SecretNEQ(v []byte) predicate.Invite

SecretNEQ applies the NEQ predicate on the "secret" field.

func SecretNotIn

func SecretNotIn(vs ...[]byte) predicate.Invite

SecretNotIn applies the NotIn predicate on the "secret" field.

func SendAttempts

func SendAttempts(v int) predicate.Invite

SendAttempts applies equality check predicate on the "send_attempts" field. It's identical to SendAttemptsEQ.

func SendAttemptsEQ

func SendAttemptsEQ(v int) predicate.Invite

SendAttemptsEQ applies the EQ predicate on the "send_attempts" field.

func SendAttemptsGT

func SendAttemptsGT(v int) predicate.Invite

SendAttemptsGT applies the GT predicate on the "send_attempts" field.

func SendAttemptsGTE

func SendAttemptsGTE(v int) predicate.Invite

SendAttemptsGTE applies the GTE predicate on the "send_attempts" field.

func SendAttemptsIn

func SendAttemptsIn(vs ...int) predicate.Invite

SendAttemptsIn applies the In predicate on the "send_attempts" field.

func SendAttemptsLT

func SendAttemptsLT(v int) predicate.Invite

SendAttemptsLT applies the LT predicate on the "send_attempts" field.

func SendAttemptsLTE

func SendAttemptsLTE(v int) predicate.Invite

SendAttemptsLTE applies the LTE predicate on the "send_attempts" field.

func SendAttemptsNEQ

func SendAttemptsNEQ(v int) predicate.Invite

SendAttemptsNEQ applies the NEQ predicate on the "send_attempts" field.

func SendAttemptsNotIn

func SendAttemptsNotIn(vs ...int) predicate.Invite

SendAttemptsNotIn applies the NotIn predicate on the "send_attempts" field.

func StatusEQ

func StatusEQ(v enums.InviteStatus) predicate.Invite

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

func StatusIn

func StatusIn(vs ...enums.InviteStatus) predicate.Invite

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

func StatusNEQ

func StatusNEQ(v enums.InviteStatus) predicate.Invite

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

func StatusNotIn

func StatusNotIn(vs ...enums.InviteStatus) predicate.Invite

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

func StatusValidator

func StatusValidator(s enums.InviteStatus) error

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

func Token

func Token(v string) predicate.Invite

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.Invite

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.Invite

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.Invite

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.Invite

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.Invite

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.Invite

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Invite

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Invite

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.Invite

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.Invite

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.Invite

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.Invite

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.Invite

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Invite

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Invite

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Invite

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Invite

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Invite

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Invite

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Invite

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Invite

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Invite

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

func UpdatedBy

func UpdatedBy(v string) predicate.Invite

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.Invite

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Invite

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Invite

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Invite

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.Invite

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Invite

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Invite

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Invite

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Invite

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.Invite

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Invite

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Invite

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Invite

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Invite queries.

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 ByEvents

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

ByEvents orders the results by events terms.

func ByEventsCount

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

ByEventsCount orders the results by events count.

func ByExpires

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

ByExpires orders the results by the expires field.

func ByID

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

ByID orders the results by the id field.

func ByMappingID

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

ByMappingID orders the results by the mapping_id 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 ByRecipient

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

ByRecipient orders the results by the recipient field.

func ByRequestorID

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

ByRequestorID orders the results by the requestor_id field.

func ByRole

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

ByRole orders the results by the role field.

func BySendAttempts

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

BySendAttempts orders the results by the send_attempts field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByToken

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

ByToken orders the results by the token 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.

Jump to

Keyboard shortcuts

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