invite

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 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"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldInviterPrincipalID holds the string denoting the inviter_principal_id field in the database.
	FieldInviterPrincipalID = "inviter_principal_id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldAcceptedAt holds the string denoting the accepted_at field in the database.
	FieldAcceptedAt = "accepted_at"
	// FieldAcceptedByPrincipalID holds the string denoting the accepted_by_principal_id field in the database.
	FieldAcceptedByPrincipalID = "accepted_by_principal_id"
	// FieldResendCount holds the string denoting the resend_count field in the database.
	FieldResendCount = "resend_count"
	// FieldLastSentAt holds the string denoting the last_sent_at field in the database.
	FieldLastSentAt = "last_sent_at"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeInviter holds the string denoting the inviter edge name in mutations.
	EdgeInviter = "inviter"
	// Table holds the table name of the invite in the database.
	Table = "cf_invites"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "cf_invites"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "cf_organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// InviterTable is the table that holds the inviter relation/edge.
	InviterTable = "cf_invites"
	// InviterInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	InviterInverseTable = "cf_principals"
	// InviterColumn is the table column denoting the inviter relation/edge.
	InviterColumn = "inviter_principal_id"
)
View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

View Source
var (
	// 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
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// DefaultRole holds the default value on creation for the "role" field.
	DefaultRole string
	// RoleValidator is a validator for the "role" field. It is called by the builders before save.
	RoleValidator func(string) error
	// TokenValidator is a validator for the "token" field. It is called by the builders before save.
	TokenValidator func(string) error
	// DefaultResendCount holds the default value on creation for the "resend_count" field.
	DefaultResendCount int
	// DefaultLastSentAt holds the default value on creation for the "last_sent_at" field.
	DefaultLastSentAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for invite fields.

Functions

func AcceptedAt

func AcceptedAt(v time.Time) predicate.Invite

AcceptedAt applies equality check predicate on the "accepted_at" field. It's identical to AcceptedAtEQ.

func AcceptedAtEQ

func AcceptedAtEQ(v time.Time) predicate.Invite

AcceptedAtEQ applies the EQ predicate on the "accepted_at" field.

func AcceptedAtGT

func AcceptedAtGT(v time.Time) predicate.Invite

AcceptedAtGT applies the GT predicate on the "accepted_at" field.

func AcceptedAtGTE

func AcceptedAtGTE(v time.Time) predicate.Invite

AcceptedAtGTE applies the GTE predicate on the "accepted_at" field.

func AcceptedAtIn

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

AcceptedAtIn applies the In predicate on the "accepted_at" field.

func AcceptedAtIsNil

func AcceptedAtIsNil() predicate.Invite

AcceptedAtIsNil applies the IsNil predicate on the "accepted_at" field.

func AcceptedAtLT

func AcceptedAtLT(v time.Time) predicate.Invite

AcceptedAtLT applies the LT predicate on the "accepted_at" field.

func AcceptedAtLTE

func AcceptedAtLTE(v time.Time) predicate.Invite

AcceptedAtLTE applies the LTE predicate on the "accepted_at" field.

func AcceptedAtNEQ

func AcceptedAtNEQ(v time.Time) predicate.Invite

AcceptedAtNEQ applies the NEQ predicate on the "accepted_at" field.

func AcceptedAtNotIn

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

AcceptedAtNotIn applies the NotIn predicate on the "accepted_at" field.

func AcceptedAtNotNil

func AcceptedAtNotNil() predicate.Invite

AcceptedAtNotNil applies the NotNil predicate on the "accepted_at" field.

func AcceptedByPrincipalID

func AcceptedByPrincipalID(v uuid.UUID) predicate.Invite

AcceptedByPrincipalID applies equality check predicate on the "accepted_by_principal_id" field. It's identical to AcceptedByPrincipalIDEQ.

func AcceptedByPrincipalIDEQ

func AcceptedByPrincipalIDEQ(v uuid.UUID) predicate.Invite

AcceptedByPrincipalIDEQ applies the EQ predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDGT

func AcceptedByPrincipalIDGT(v uuid.UUID) predicate.Invite

AcceptedByPrincipalIDGT applies the GT predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDGTE

func AcceptedByPrincipalIDGTE(v uuid.UUID) predicate.Invite

AcceptedByPrincipalIDGTE applies the GTE predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDIn

func AcceptedByPrincipalIDIn(vs ...uuid.UUID) predicate.Invite

AcceptedByPrincipalIDIn applies the In predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDIsNil

func AcceptedByPrincipalIDIsNil() predicate.Invite

AcceptedByPrincipalIDIsNil applies the IsNil predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDLT

func AcceptedByPrincipalIDLT(v uuid.UUID) predicate.Invite

AcceptedByPrincipalIDLT applies the LT predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDLTE

func AcceptedByPrincipalIDLTE(v uuid.UUID) predicate.Invite

AcceptedByPrincipalIDLTE applies the LTE predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDNEQ

func AcceptedByPrincipalIDNEQ(v uuid.UUID) predicate.Invite

AcceptedByPrincipalIDNEQ applies the NEQ predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDNotIn

func AcceptedByPrincipalIDNotIn(vs ...uuid.UUID) predicate.Invite

AcceptedByPrincipalIDNotIn applies the NotIn predicate on the "accepted_by_principal_id" field.

func AcceptedByPrincipalIDNotNil

func AcceptedByPrincipalIDNotNil() predicate.Invite

AcceptedByPrincipalIDNotNil applies the NotNil predicate on the "accepted_by_principal_id" field.

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 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 Email

func Email(v string) predicate.Invite

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Invite

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Invite

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Invite

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Invite

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Invite

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Invite

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Invite

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Invite

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

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

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Invite

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Invite

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Invite

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

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

EmailNotIn applies the NotIn predicate on the "email" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Invite

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Invite

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Invite

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Invite

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

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

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Invite

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Invite

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Invite

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

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

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func HasInviter

func HasInviter() predicate.Invite

HasInviter applies the HasEdge predicate on the "inviter" edge.

func HasInviterWith

func HasInviterWith(preds ...predicate.Principal) predicate.Invite

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

func HasOrganization

func HasOrganization() predicate.Invite

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

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

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

func ID

func ID(id uuid.UUID) predicate.Invite

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Invite

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Invite

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Invite

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Invite

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Invite

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Invite

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InviterPrincipalID

func InviterPrincipalID(v uuid.UUID) predicate.Invite

InviterPrincipalID applies equality check predicate on the "inviter_principal_id" field. It's identical to InviterPrincipalIDEQ.

func InviterPrincipalIDEQ

func InviterPrincipalIDEQ(v uuid.UUID) predicate.Invite

InviterPrincipalIDEQ applies the EQ predicate on the "inviter_principal_id" field.

func InviterPrincipalIDIn

func InviterPrincipalIDIn(vs ...uuid.UUID) predicate.Invite

InviterPrincipalIDIn applies the In predicate on the "inviter_principal_id" field.

func InviterPrincipalIDNEQ

func InviterPrincipalIDNEQ(v uuid.UUID) predicate.Invite

InviterPrincipalIDNEQ applies the NEQ predicate on the "inviter_principal_id" field.

func InviterPrincipalIDNotIn

func InviterPrincipalIDNotIn(vs ...uuid.UUID) predicate.Invite

InviterPrincipalIDNotIn applies the NotIn predicate on the "inviter_principal_id" field.

func LastSentAt

func LastSentAt(v time.Time) predicate.Invite

LastSentAt applies equality check predicate on the "last_sent_at" field. It's identical to LastSentAtEQ.

func LastSentAtEQ

func LastSentAtEQ(v time.Time) predicate.Invite

LastSentAtEQ applies the EQ predicate on the "last_sent_at" field.

func LastSentAtGT

func LastSentAtGT(v time.Time) predicate.Invite

LastSentAtGT applies the GT predicate on the "last_sent_at" field.

func LastSentAtGTE

func LastSentAtGTE(v time.Time) predicate.Invite

LastSentAtGTE applies the GTE predicate on the "last_sent_at" field.

func LastSentAtIn

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

LastSentAtIn applies the In predicate on the "last_sent_at" field.

func LastSentAtLT

func LastSentAtLT(v time.Time) predicate.Invite

LastSentAtLT applies the LT predicate on the "last_sent_at" field.

func LastSentAtLTE

func LastSentAtLTE(v time.Time) predicate.Invite

LastSentAtLTE applies the LTE predicate on the "last_sent_at" field.

func LastSentAtNEQ

func LastSentAtNEQ(v time.Time) predicate.Invite

LastSentAtNEQ applies the NEQ predicate on the "last_sent_at" field.

func LastSentAtNotIn

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

LastSentAtNotIn applies the NotIn predicate on the "last_sent_at" field.

func Message

func Message(v string) predicate.Invite

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Invite

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Invite

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Invite

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Invite

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Invite

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Invite

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Invite

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Invite

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

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

MessageIn applies the In predicate on the "message" field.

func MessageIsNil

func MessageIsNil() predicate.Invite

MessageIsNil applies the IsNil predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Invite

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Invite

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Invite

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

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

MessageNotIn applies the NotIn predicate on the "message" field.

func MessageNotNil

func MessageNotNil() predicate.Invite

MessageNotNil applies the NotNil predicate on the "message" 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 OrganizationID

func OrganizationID(v uuid.UUID) predicate.Invite

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Invite

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.Invite

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Invite

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Invite

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func ResendCount

func ResendCount(v int) predicate.Invite

ResendCount applies equality check predicate on the "resend_count" field. It's identical to ResendCountEQ.

func ResendCountEQ

func ResendCountEQ(v int) predicate.Invite

ResendCountEQ applies the EQ predicate on the "resend_count" field.

func ResendCountGT

func ResendCountGT(v int) predicate.Invite

ResendCountGT applies the GT predicate on the "resend_count" field.

func ResendCountGTE

func ResendCountGTE(v int) predicate.Invite

ResendCountGTE applies the GTE predicate on the "resend_count" field.

func ResendCountIn

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

ResendCountIn applies the In predicate on the "resend_count" field.

func ResendCountLT

func ResendCountLT(v int) predicate.Invite

ResendCountLT applies the LT predicate on the "resend_count" field.

func ResendCountLTE

func ResendCountLTE(v int) predicate.Invite

ResendCountLTE applies the LTE predicate on the "resend_count" field.

func ResendCountNEQ

func ResendCountNEQ(v int) predicate.Invite

ResendCountNEQ applies the NEQ predicate on the "resend_count" field.

func ResendCountNotIn

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

ResendCountNotIn applies the NotIn predicate on the "resend_count" field.

func Role

func Role(v string) predicate.Invite

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.Invite

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.Invite

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v string) predicate.Invite

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

func RoleEqualFold

func RoleEqualFold(v string) predicate.Invite

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v string) predicate.Invite

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v string) predicate.Invite

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.Invite

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.Invite

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

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

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

func RoleLT

func RoleLT(v string) predicate.Invite

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v string) predicate.Invite

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v string) predicate.Invite

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

func RoleNotIn

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

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

func StatusEQ

func StatusEQ(v Status) predicate.Invite

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

func StatusIn

func StatusIn(vs ...Status) predicate.Invite

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Invite

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

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Invite

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

func StatusValidator

func StatusValidator(s Status) 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 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 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 ByAcceptedAt

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

ByAcceptedAt orders the results by the accepted_at field.

func ByAcceptedByPrincipalID

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

ByAcceptedByPrincipalID orders the results by the accepted_by_principal_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByInviterField

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

ByInviterField orders the results by inviter field.

func ByInviterPrincipalID

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

ByInviterPrincipalID orders the results by the inviter_principal_id field.

func ByLastSentAt

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

ByLastSentAt orders the results by the last_sent_at field.

func ByMessage

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

ByMessage orders the results by the message field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByResendCount

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

ByResendCount orders the results by the resend_count field.

func ByRole

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

ByRole orders the results by the role 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.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending  Status = "pending"
	StatusAccepted Status = "accepted"
	StatusDeclined Status = "declined"
	StatusExpired  Status = "expired"
	StatusRevoked  Status = "revoked"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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