orginvitation

package
v0.101.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orginvitation type in the database.
	Label = "org_invitation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldReceiverEmail holds the string denoting the receiver_email field in the database.
	FieldReceiverEmail = "receiver_email"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldSenderID holds the string denoting the sender_id field in the database.
	FieldSenderID = "sender_id"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeSender holds the string denoting the sender edge name in mutations.
	EdgeSender = "sender"
	// Table holds the table name of the orginvitation in the database.
	Table = "org_invitations"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "org_invitations"
	// 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 = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// SenderTable is the table that holds the sender relation/edge.
	SenderTable = "org_invitations"
	// SenderInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	SenderInverseTable = "users"
	// SenderColumn is the table column denoting the sender relation/edge.
	SenderColumn = "sender_id"
)
View Source
const DefaultStatus biz.OrgInvitationStatus = "pending"

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for orginvitation fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.OrgInvitation

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OrgInvitation

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OrgInvitation

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OrgInvitation

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OrgInvitation

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OrgInvitation

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OrgInvitation

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.OrgInvitation

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.OrgInvitation

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.OrgInvitation

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.OrgInvitation

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.OrgInvitation

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.OrgInvitation

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.OrgInvitation

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.OrgInvitation

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.OrgInvitation

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

func HasOrganization

func HasOrganization() predicate.OrgInvitation

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

func HasOrganizationWith

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

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

func HasSender

func HasSender() predicate.OrgInvitation

HasSender applies the HasEdge predicate on the "sender" edge.

func HasSenderWith

func HasSenderWith(preds ...predicate.User) predicate.OrgInvitation

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.OrgInvitation

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.OrgInvitation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.OrgInvitation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.OrgInvitation

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

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.OrgInvitation

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

func OrganizationIDIn

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

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

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.OrgInvitation

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

func OrganizationIDNotIn

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

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

func ReceiverEmail

func ReceiverEmail(v string) predicate.OrgInvitation

ReceiverEmail applies equality check predicate on the "receiver_email" field. It's identical to ReceiverEmailEQ.

func ReceiverEmailContains

func ReceiverEmailContains(v string) predicate.OrgInvitation

ReceiverEmailContains applies the Contains predicate on the "receiver_email" field.

func ReceiverEmailContainsFold

func ReceiverEmailContainsFold(v string) predicate.OrgInvitation

ReceiverEmailContainsFold applies the ContainsFold predicate on the "receiver_email" field.

func ReceiverEmailEQ

func ReceiverEmailEQ(v string) predicate.OrgInvitation

ReceiverEmailEQ applies the EQ predicate on the "receiver_email" field.

func ReceiverEmailEqualFold

func ReceiverEmailEqualFold(v string) predicate.OrgInvitation

ReceiverEmailEqualFold applies the EqualFold predicate on the "receiver_email" field.

func ReceiverEmailGT

func ReceiverEmailGT(v string) predicate.OrgInvitation

ReceiverEmailGT applies the GT predicate on the "receiver_email" field.

func ReceiverEmailGTE

func ReceiverEmailGTE(v string) predicate.OrgInvitation

ReceiverEmailGTE applies the GTE predicate on the "receiver_email" field.

func ReceiverEmailHasPrefix

func ReceiverEmailHasPrefix(v string) predicate.OrgInvitation

ReceiverEmailHasPrefix applies the HasPrefix predicate on the "receiver_email" field.

func ReceiverEmailHasSuffix

func ReceiverEmailHasSuffix(v string) predicate.OrgInvitation

ReceiverEmailHasSuffix applies the HasSuffix predicate on the "receiver_email" field.

func ReceiverEmailIn

func ReceiverEmailIn(vs ...string) predicate.OrgInvitation

ReceiverEmailIn applies the In predicate on the "receiver_email" field.

func ReceiverEmailLT

func ReceiverEmailLT(v string) predicate.OrgInvitation

ReceiverEmailLT applies the LT predicate on the "receiver_email" field.

func ReceiverEmailLTE

func ReceiverEmailLTE(v string) predicate.OrgInvitation

ReceiverEmailLTE applies the LTE predicate on the "receiver_email" field.

func ReceiverEmailNEQ

func ReceiverEmailNEQ(v string) predicate.OrgInvitation

ReceiverEmailNEQ applies the NEQ predicate on the "receiver_email" field.

func ReceiverEmailNotIn

func ReceiverEmailNotIn(vs ...string) predicate.OrgInvitation

ReceiverEmailNotIn applies the NotIn predicate on the "receiver_email" field.

func RoleEQ

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

func RoleIn

func RoleIn(vs ...authz.Role) predicate.OrgInvitation

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

func RoleIsNil

func RoleIsNil() predicate.OrgInvitation

RoleIsNil applies the IsNil predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v authz.Role) predicate.OrgInvitation

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

func RoleNotIn

func RoleNotIn(vs ...authz.Role) predicate.OrgInvitation

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

func RoleNotNil

func RoleNotNil() predicate.OrgInvitation

RoleNotNil applies the NotNil predicate on the "role" field.

func RoleValidator

func RoleValidator(r authz.Role) error

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

func SenderID

func SenderID(v uuid.UUID) predicate.OrgInvitation

SenderID applies equality check predicate on the "sender_id" field. It's identical to SenderIDEQ.

func SenderIDEQ

func SenderIDEQ(v uuid.UUID) predicate.OrgInvitation

SenderIDEQ applies the EQ predicate on the "sender_id" field.

func SenderIDIn

func SenderIDIn(vs ...uuid.UUID) predicate.OrgInvitation

SenderIDIn applies the In predicate on the "sender_id" field.

func SenderIDNEQ

func SenderIDNEQ(v uuid.UUID) predicate.OrgInvitation

SenderIDNEQ applies the NEQ predicate on the "sender_id" field.

func SenderIDNotIn

func SenderIDNotIn(vs ...uuid.UUID) predicate.OrgInvitation

SenderIDNotIn applies the NotIn predicate on the "sender_id" field.

func StatusEQ

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

func StatusIn

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

func StatusNEQ

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

func StatusNotIn

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

func StatusValidator

func StatusValidator(s biz.OrgInvitationStatus) error

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

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 OrgInvitation queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByID

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

ByID orders the results by the id 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 ByReceiverEmail

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

ByReceiverEmail orders the results by the receiver_email field.

func ByRole

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

ByRole orders the results by the role field.

func BySenderField

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

BySenderField orders the results by sender field.

func BySenderID

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

BySenderID orders the results by the sender_id field.

func ByStatus

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

ByStatus orders the results by the status field.

Jump to

Keyboard shortcuts

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