Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Invite) predicate.Invite
- func CreatedAt(v time.Time) predicate.Invite
- func CreatedAtEQ(v time.Time) predicate.Invite
- func CreatedAtGT(v time.Time) predicate.Invite
- func CreatedAtGTE(v time.Time) predicate.Invite
- func CreatedAtIn(vs ...time.Time) predicate.Invite
- func CreatedAtLT(v time.Time) predicate.Invite
- func CreatedAtLTE(v time.Time) predicate.Invite
- func CreatedAtNEQ(v time.Time) predicate.Invite
- func CreatedAtNotIn(vs ...time.Time) predicate.Invite
- func CreatedBy(v string) predicate.Invite
- func CreatedByContains(v string) predicate.Invite
- func CreatedByContainsFold(v string) predicate.Invite
- func CreatedByEQ(v string) predicate.Invite
- func CreatedByEqualFold(v string) predicate.Invite
- func CreatedByGT(v string) predicate.Invite
- func CreatedByGTE(v string) predicate.Invite
- func CreatedByHasPrefix(v string) predicate.Invite
- func CreatedByHasSuffix(v string) predicate.Invite
- func CreatedByIn(vs ...string) predicate.Invite
- func CreatedByIsNil() predicate.Invite
- func CreatedByLT(v string) predicate.Invite
- func CreatedByLTE(v string) predicate.Invite
- func CreatedByNEQ(v string) predicate.Invite
- func CreatedByNotIn(vs ...string) predicate.Invite
- func CreatedByNotNil() predicate.Invite
- func DeletedAt(v time.Time) predicate.Invite
- func DeletedAtEQ(v time.Time) predicate.Invite
- func DeletedAtGT(v time.Time) predicate.Invite
- func DeletedAtGTE(v time.Time) predicate.Invite
- func DeletedAtIn(vs ...time.Time) predicate.Invite
- func DeletedAtIsNil() predicate.Invite
- func DeletedAtLT(v time.Time) predicate.Invite
- func DeletedAtLTE(v time.Time) predicate.Invite
- func DeletedAtNEQ(v time.Time) predicate.Invite
- func DeletedAtNotIn(vs ...time.Time) predicate.Invite
- func DeletedAtNotNil() predicate.Invite
- func DeletedBy(v string) predicate.Invite
- func DeletedByContains(v string) predicate.Invite
- func DeletedByContainsFold(v string) predicate.Invite
- func DeletedByEQ(v string) predicate.Invite
- func DeletedByEqualFold(v string) predicate.Invite
- func DeletedByGT(v string) predicate.Invite
- func DeletedByGTE(v string) predicate.Invite
- func DeletedByHasPrefix(v string) predicate.Invite
- func DeletedByHasSuffix(v string) predicate.Invite
- func DeletedByIn(vs ...string) predicate.Invite
- func DeletedByIsNil() predicate.Invite
- func DeletedByLT(v string) predicate.Invite
- func DeletedByLTE(v string) predicate.Invite
- func DeletedByNEQ(v string) predicate.Invite
- func DeletedByNotIn(vs ...string) predicate.Invite
- func DeletedByNotNil() predicate.Invite
- func Expires(v time.Time) predicate.Invite
- func ExpiresEQ(v time.Time) predicate.Invite
- func ExpiresGT(v time.Time) predicate.Invite
- func ExpiresGTE(v time.Time) predicate.Invite
- func ExpiresIn(vs ...time.Time) predicate.Invite
- func ExpiresLT(v time.Time) predicate.Invite
- func ExpiresLTE(v time.Time) predicate.Invite
- func ExpiresNEQ(v time.Time) predicate.Invite
- func ExpiresNotIn(vs ...time.Time) predicate.Invite
- func HasOwner() predicate.Invite
- func HasOwnerWith(preds ...predicate.Organization) predicate.Invite
- func ID(id string) predicate.Invite
- func IDContainsFold(id string) predicate.Invite
- func IDEQ(id string) predicate.Invite
- func IDEqualFold(id string) predicate.Invite
- func IDGT(id string) predicate.Invite
- func IDGTE(id string) predicate.Invite
- func IDIn(ids ...string) predicate.Invite
- func IDLT(id string) predicate.Invite
- func IDLTE(id string) predicate.Invite
- func IDNEQ(id string) predicate.Invite
- func IDNotIn(ids ...string) predicate.Invite
- func Not(p predicate.Invite) predicate.Invite
- func Or(predicates ...predicate.Invite) predicate.Invite
- func OwnerID(v string) predicate.Invite
- func OwnerIDContains(v string) predicate.Invite
- func OwnerIDContainsFold(v string) predicate.Invite
- func OwnerIDEQ(v string) predicate.Invite
- func OwnerIDEqualFold(v string) predicate.Invite
- func OwnerIDGT(v string) predicate.Invite
- func OwnerIDGTE(v string) predicate.Invite
- func OwnerIDHasPrefix(v string) predicate.Invite
- func OwnerIDHasSuffix(v string) predicate.Invite
- func OwnerIDIn(vs ...string) predicate.Invite
- func OwnerIDLT(v string) predicate.Invite
- func OwnerIDLTE(v string) predicate.Invite
- func OwnerIDNEQ(v string) predicate.Invite
- func OwnerIDNotIn(vs ...string) predicate.Invite
- func Recipient(v string) predicate.Invite
- func RecipientContains(v string) predicate.Invite
- func RecipientContainsFold(v string) predicate.Invite
- func RecipientEQ(v string) predicate.Invite
- func RecipientEqualFold(v string) predicate.Invite
- func RecipientGT(v string) predicate.Invite
- func RecipientGTE(v string) predicate.Invite
- func RecipientHasPrefix(v string) predicate.Invite
- func RecipientHasSuffix(v string) predicate.Invite
- func RecipientIn(vs ...string) predicate.Invite
- func RecipientLT(v string) predicate.Invite
- func RecipientLTE(v string) predicate.Invite
- func RecipientNEQ(v string) predicate.Invite
- func RecipientNotIn(vs ...string) predicate.Invite
- func RequestorID(v string) predicate.Invite
- func RequestorIDContains(v string) predicate.Invite
- func RequestorIDContainsFold(v string) predicate.Invite
- func RequestorIDEQ(v string) predicate.Invite
- func RequestorIDEqualFold(v string) predicate.Invite
- func RequestorIDGT(v string) predicate.Invite
- func RequestorIDGTE(v string) predicate.Invite
- func RequestorIDHasPrefix(v string) predicate.Invite
- func RequestorIDHasSuffix(v string) predicate.Invite
- func RequestorIDIn(vs ...string) predicate.Invite
- func RequestorIDLT(v string) predicate.Invite
- func RequestorIDLTE(v string) predicate.Invite
- func RequestorIDNEQ(v string) predicate.Invite
- func RequestorIDNotIn(vs ...string) predicate.Invite
- func RoleEQ(v enums.Role) predicate.Invite
- func RoleIn(vs ...enums.Role) predicate.Invite
- func RoleNEQ(v enums.Role) predicate.Invite
- func RoleNotIn(vs ...enums.Role) predicate.Invite
- func RoleValidator(r enums.Role) error
- func Secret(v []byte) predicate.Invite
- func SecretEQ(v []byte) predicate.Invite
- func SecretGT(v []byte) predicate.Invite
- func SecretGTE(v []byte) predicate.Invite
- func SecretIn(vs ...[]byte) predicate.Invite
- func SecretLT(v []byte) predicate.Invite
- func SecretLTE(v []byte) predicate.Invite
- func SecretNEQ(v []byte) predicate.Invite
- func SecretNotIn(vs ...[]byte) predicate.Invite
- func SendAttempts(v int) predicate.Invite
- func SendAttemptsEQ(v int) predicate.Invite
- func SendAttemptsGT(v int) predicate.Invite
- func SendAttemptsGTE(v int) predicate.Invite
- func SendAttemptsIn(vs ...int) predicate.Invite
- func SendAttemptsLT(v int) predicate.Invite
- func SendAttemptsLTE(v int) predicate.Invite
- func SendAttemptsNEQ(v int) predicate.Invite
- func SendAttemptsNotIn(vs ...int) predicate.Invite
- func StatusEQ(v enums.InviteStatus) predicate.Invite
- func StatusIn(vs ...enums.InviteStatus) predicate.Invite
- func StatusNEQ(v enums.InviteStatus) predicate.Invite
- func StatusNotIn(vs ...enums.InviteStatus) predicate.Invite
- func StatusValidator(s enums.InviteStatus) error
- func Token(v string) predicate.Invite
- func TokenContains(v string) predicate.Invite
- func TokenContainsFold(v string) predicate.Invite
- func TokenEQ(v string) predicate.Invite
- func TokenEqualFold(v string) predicate.Invite
- func TokenGT(v string) predicate.Invite
- func TokenGTE(v string) predicate.Invite
- func TokenHasPrefix(v string) predicate.Invite
- func TokenHasSuffix(v string) predicate.Invite
- func TokenIn(vs ...string) predicate.Invite
- func TokenLT(v string) predicate.Invite
- func TokenLTE(v string) predicate.Invite
- func TokenNEQ(v string) predicate.Invite
- func TokenNotIn(vs ...string) predicate.Invite
- func UpdatedAt(v time.Time) predicate.Invite
- func UpdatedAtEQ(v time.Time) predicate.Invite
- func UpdatedAtGT(v time.Time) predicate.Invite
- func UpdatedAtGTE(v time.Time) predicate.Invite
- func UpdatedAtIn(vs ...time.Time) predicate.Invite
- func UpdatedAtLT(v time.Time) predicate.Invite
- func UpdatedAtLTE(v time.Time) predicate.Invite
- func UpdatedAtNEQ(v time.Time) predicate.Invite
- func UpdatedAtNotIn(vs ...time.Time) predicate.Invite
- func UpdatedBy(v string) predicate.Invite
- func UpdatedByContains(v string) predicate.Invite
- func UpdatedByContainsFold(v string) predicate.Invite
- func UpdatedByEQ(v string) predicate.Invite
- func UpdatedByEqualFold(v string) predicate.Invite
- func UpdatedByGT(v string) predicate.Invite
- func UpdatedByGTE(v string) predicate.Invite
- func UpdatedByHasPrefix(v string) predicate.Invite
- func UpdatedByHasSuffix(v string) predicate.Invite
- func UpdatedByIn(vs ...string) predicate.Invite
- func UpdatedByIsNil() predicate.Invite
- func UpdatedByLT(v string) predicate.Invite
- func UpdatedByLTE(v string) predicate.Invite
- func UpdatedByNEQ(v string) predicate.Invite
- func UpdatedByNotIn(vs ...string) predicate.Invite
- func UpdatedByNotNil() predicate.Invite
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByExpires(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByRecipient(opts ...sql.OrderTermOption) OrderOption
- func ByRequestorID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySendAttempts(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // 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" // 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" )
const DefaultRole enums.Role = "MEMBER"
const DefaultStatus enums.InviteStatus = "INVITATION_SENT"
Variables ¶
var ( Hooks [5]ent.Hook Interceptors [1]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 // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error // 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/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldOwnerID, FieldToken, FieldExpires, FieldRecipient, FieldStatus, FieldRole, FieldSendAttempts, FieldRequestorID, FieldSecret, }
Columns holds all SQL columns for invite fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Expires ¶
Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ.
func ExpiresGTE ¶
ExpiresGTE applies the GTE predicate on the "expires" field.
func ExpiresLTE ¶
ExpiresLTE applies the LTE predicate on the "expires" field.
func ExpiresNEQ ¶
ExpiresNEQ applies the NEQ predicate on the "expires" field.
func ExpiresNotIn ¶
ExpiresNotIn applies the NotIn predicate on the "expires" field.
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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func Recipient ¶
Recipient applies equality check predicate on the "recipient" field. It's identical to RecipientEQ.
func RecipientContains ¶
RecipientContains applies the Contains predicate on the "recipient" field.
func RecipientContainsFold ¶
RecipientContainsFold applies the ContainsFold predicate on the "recipient" field.
func RecipientEQ ¶
RecipientEQ applies the EQ predicate on the "recipient" field.
func RecipientEqualFold ¶
RecipientEqualFold applies the EqualFold predicate on the "recipient" field.
func RecipientGT ¶
RecipientGT applies the GT predicate on the "recipient" field.
func RecipientGTE ¶
RecipientGTE applies the GTE predicate on the "recipient" field.
func RecipientHasPrefix ¶
RecipientHasPrefix applies the HasPrefix predicate on the "recipient" field.
func RecipientHasSuffix ¶
RecipientHasSuffix applies the HasSuffix predicate on the "recipient" field.
func RecipientIn ¶
RecipientIn applies the In predicate on the "recipient" field.
func RecipientLT ¶
RecipientLT applies the LT predicate on the "recipient" field.
func RecipientLTE ¶
RecipientLTE applies the LTE predicate on the "recipient" field.
func RecipientNEQ ¶
RecipientNEQ applies the NEQ predicate on the "recipient" field.
func RecipientNotIn ¶
RecipientNotIn applies the NotIn predicate on the "recipient" field.
func RequestorID ¶
RequestorID applies equality check predicate on the "requestor_id" field. It's identical to RequestorIDEQ.
func RequestorIDContains ¶
RequestorIDContains applies the Contains predicate on the "requestor_id" field.
func RequestorIDContainsFold ¶
RequestorIDContainsFold applies the ContainsFold predicate on the "requestor_id" field.
func RequestorIDEQ ¶
RequestorIDEQ applies the EQ predicate on the "requestor_id" field.
func RequestorIDEqualFold ¶
RequestorIDEqualFold applies the EqualFold predicate on the "requestor_id" field.
func RequestorIDGT ¶
RequestorIDGT applies the GT predicate on the "requestor_id" field.
func RequestorIDGTE ¶
RequestorIDGTE applies the GTE predicate on the "requestor_id" field.
func RequestorIDHasPrefix ¶
RequestorIDHasPrefix applies the HasPrefix predicate on the "requestor_id" field.
func RequestorIDHasSuffix ¶
RequestorIDHasSuffix applies the HasSuffix predicate on the "requestor_id" field.
func RequestorIDIn ¶
RequestorIDIn applies the In predicate on the "requestor_id" field.
func RequestorIDLT ¶
RequestorIDLT applies the LT predicate on the "requestor_id" field.
func RequestorIDLTE ¶
RequestorIDLTE applies the LTE predicate on the "requestor_id" field.
func RequestorIDNEQ ¶
RequestorIDNEQ applies the NEQ predicate on the "requestor_id" field.
func RequestorIDNotIn ¶
RequestorIDNotIn applies the NotIn predicate on the "requestor_id" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func Secret ¶
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretNotIn ¶
SecretNotIn applies the NotIn predicate on the "secret" field.
func SendAttempts ¶
SendAttempts applies equality check predicate on the "send_attempts" field. It's identical to SendAttemptsEQ.
func SendAttemptsEQ ¶
SendAttemptsEQ applies the EQ predicate on the "send_attempts" field.
func SendAttemptsGT ¶
SendAttemptsGT applies the GT predicate on the "send_attempts" field.
func SendAttemptsGTE ¶
SendAttemptsGTE applies the GTE predicate on the "send_attempts" field.
func SendAttemptsIn ¶
SendAttemptsIn applies the In predicate on the "send_attempts" field.
func SendAttemptsLT ¶
SendAttemptsLT applies the LT predicate on the "send_attempts" field.
func SendAttemptsLTE ¶
SendAttemptsLTE applies the LTE predicate on the "send_attempts" field.
func SendAttemptsNEQ ¶
SendAttemptsNEQ applies the NEQ predicate on the "send_attempts" field.
func SendAttemptsNotIn ¶
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 ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
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 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 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 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.