Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgInvitation) predicate.OrgInvitation
- func CreatedAt(v time.Time) predicate.OrgInvitation
- func CreatedAtEQ(v time.Time) predicate.OrgInvitation
- func CreatedAtGT(v time.Time) predicate.OrgInvitation
- func CreatedAtGTE(v time.Time) predicate.OrgInvitation
- func CreatedAtIn(vs ...time.Time) predicate.OrgInvitation
- func CreatedAtLT(v time.Time) predicate.OrgInvitation
- func CreatedAtLTE(v time.Time) predicate.OrgInvitation
- func CreatedAtNEQ(v time.Time) predicate.OrgInvitation
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgInvitation
- func DeletedAt(v time.Time) predicate.OrgInvitation
- func DeletedAtEQ(v time.Time) predicate.OrgInvitation
- func DeletedAtGT(v time.Time) predicate.OrgInvitation
- func DeletedAtGTE(v time.Time) predicate.OrgInvitation
- func DeletedAtIn(vs ...time.Time) predicate.OrgInvitation
- func DeletedAtIsNil() predicate.OrgInvitation
- func DeletedAtLT(v time.Time) predicate.OrgInvitation
- func DeletedAtLTE(v time.Time) predicate.OrgInvitation
- func DeletedAtNEQ(v time.Time) predicate.OrgInvitation
- func DeletedAtNotIn(vs ...time.Time) predicate.OrgInvitation
- func DeletedAtNotNil() predicate.OrgInvitation
- func HasOrganization() predicate.OrgInvitation
- func HasOrganizationWith(preds ...predicate.Organization) predicate.OrgInvitation
- func HasSender() predicate.OrgInvitation
- func HasSenderWith(preds ...predicate.User) predicate.OrgInvitation
- func ID(id uuid.UUID) predicate.OrgInvitation
- func IDEQ(id uuid.UUID) predicate.OrgInvitation
- func IDGT(id uuid.UUID) predicate.OrgInvitation
- func IDGTE(id uuid.UUID) predicate.OrgInvitation
- func IDIn(ids ...uuid.UUID) predicate.OrgInvitation
- func IDLT(id uuid.UUID) predicate.OrgInvitation
- func IDLTE(id uuid.UUID) predicate.OrgInvitation
- func IDNEQ(id uuid.UUID) predicate.OrgInvitation
- func IDNotIn(ids ...uuid.UUID) predicate.OrgInvitation
- func Not(p predicate.OrgInvitation) predicate.OrgInvitation
- func Or(predicates ...predicate.OrgInvitation) predicate.OrgInvitation
- func OrganizationID(v uuid.UUID) predicate.OrgInvitation
- func OrganizationIDEQ(v uuid.UUID) predicate.OrgInvitation
- func OrganizationIDIn(vs ...uuid.UUID) predicate.OrgInvitation
- func OrganizationIDNEQ(v uuid.UUID) predicate.OrgInvitation
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.OrgInvitation
- func ReceiverEmail(v string) predicate.OrgInvitation
- func ReceiverEmailContains(v string) predicate.OrgInvitation
- func ReceiverEmailContainsFold(v string) predicate.OrgInvitation
- func ReceiverEmailEQ(v string) predicate.OrgInvitation
- func ReceiverEmailEqualFold(v string) predicate.OrgInvitation
- func ReceiverEmailGT(v string) predicate.OrgInvitation
- func ReceiverEmailGTE(v string) predicate.OrgInvitation
- func ReceiverEmailHasPrefix(v string) predicate.OrgInvitation
- func ReceiverEmailHasSuffix(v string) predicate.OrgInvitation
- func ReceiverEmailIn(vs ...string) predicate.OrgInvitation
- func ReceiverEmailLT(v string) predicate.OrgInvitation
- func ReceiverEmailLTE(v string) predicate.OrgInvitation
- func ReceiverEmailNEQ(v string) predicate.OrgInvitation
- func ReceiverEmailNotIn(vs ...string) predicate.OrgInvitation
- func SenderID(v uuid.UUID) predicate.OrgInvitation
- func SenderIDEQ(v uuid.UUID) predicate.OrgInvitation
- func SenderIDIn(vs ...uuid.UUID) predicate.OrgInvitation
- func SenderIDNEQ(v uuid.UUID) predicate.OrgInvitation
- func SenderIDNotIn(vs ...uuid.UUID) predicate.OrgInvitation
- func StatusEQ(v biz.OrgInvitationStatus) predicate.OrgInvitation
- func StatusIn(vs ...biz.OrgInvitationStatus) predicate.OrgInvitation
- func StatusNEQ(v biz.OrgInvitationStatus) predicate.OrgInvitation
- func StatusNotIn(vs ...biz.OrgInvitationStatus) predicate.OrgInvitation
- func StatusValidator(s biz.OrgInvitationStatus) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByReceiverEmail(opts ...sql.OrderTermOption) OrderOption
- func BySenderField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySenderID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // 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" )
const DefaultStatus biz.OrgInvitationStatus = "pending"
Variables ¶
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 )
var Columns = []string{ FieldID, FieldReceiverEmail, FieldStatus, FieldCreatedAt, FieldDeletedAt, FieldOrganizationID, FieldSenderID, }
Columns holds all SQL columns for orginvitation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.OrgInvitation) predicate.OrgInvitation
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 ¶
func ID(id uuid.UUID) predicate.OrgInvitation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.OrgInvitation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.OrgInvitation
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 ¶
func IDLT(id uuid.UUID) predicate.OrgInvitation
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 ¶
func Not(p predicate.OrgInvitation) predicate.OrgInvitation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.OrgInvitation) predicate.OrgInvitation
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 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 ¶
func StatusEQ(v biz.OrgInvitationStatus) predicate.OrgInvitation
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...biz.OrgInvitationStatus) predicate.OrgInvitation
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v biz.OrgInvitationStatus) predicate.OrgInvitation
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...biz.OrgInvitationStatus) predicate.OrgInvitation
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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 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.