Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Invite) predicate.Invite
- func CreateTime(v time.Time) predicate.Invite
- func CreateTimeEQ(v time.Time) predicate.Invite
- func CreateTimeGT(v time.Time) predicate.Invite
- func CreateTimeGTE(v time.Time) predicate.Invite
- func CreateTimeIn(vs ...time.Time) predicate.Invite
- func CreateTimeLT(v time.Time) predicate.Invite
- func CreateTimeLTE(v time.Time) predicate.Invite
- func CreateTimeNEQ(v time.Time) predicate.Invite
- func CreateTimeNotIn(vs ...time.Time) predicate.Invite
- func Email(v string) predicate.Invite
- func EmailContains(v string) predicate.Invite
- func EmailContainsFold(v string) predicate.Invite
- func EmailEQ(v string) predicate.Invite
- func EmailEqualFold(v string) predicate.Invite
- func EmailGT(v string) predicate.Invite
- func EmailGTE(v string) predicate.Invite
- func EmailHasPrefix(v string) predicate.Invite
- func EmailHasSuffix(v string) predicate.Invite
- func EmailIn(vs ...string) predicate.Invite
- func EmailIsNil() predicate.Invite
- func EmailLT(v string) predicate.Invite
- func EmailLTE(v string) predicate.Invite
- func EmailNEQ(v string) predicate.Invite
- func EmailNotIn(vs ...string) predicate.Invite
- func EmailNotNil() predicate.Invite
- func ExpiresAt(v time.Time) predicate.Invite
- func ExpiresAtEQ(v time.Time) predicate.Invite
- func ExpiresAtGT(v time.Time) predicate.Invite
- func ExpiresAtGTE(v time.Time) predicate.Invite
- func ExpiresAtIn(vs ...time.Time) predicate.Invite
- func ExpiresAtLT(v time.Time) predicate.Invite
- func ExpiresAtLTE(v time.Time) predicate.Invite
- func ExpiresAtNEQ(v time.Time) predicate.Invite
- func ExpiresAtNotIn(vs ...time.Time) predicate.Invite
- func HasCreatedBy() predicate.Invite
- func HasCreatedByWith(preds ...predicate.User) predicate.Invite
- func HasUsedBy() predicate.Invite
- func HasUsedByWith(preds ...predicate.User) predicate.Invite
- func ID(id uint32) predicate.Invite
- func IDEQ(id uint32) predicate.Invite
- func IDGT(id uint32) predicate.Invite
- func IDGTE(id uint32) predicate.Invite
- func IDIn(ids ...uint32) predicate.Invite
- func IDLT(id uint32) predicate.Invite
- func IDLTE(id uint32) predicate.Invite
- func IDNEQ(id uint32) predicate.Invite
- func IDNotIn(ids ...uint32) predicate.Invite
- func Not(p predicate.Invite) predicate.Invite
- func Or(predicates ...predicate.Invite) predicate.Invite
- func RoleEQ(v Role) predicate.Invite
- func RoleIn(vs ...Role) predicate.Invite
- func RoleNEQ(v Role) predicate.Invite
- func RoleNotIn(vs ...Role) predicate.Invite
- func RoleValidator(r Role) error
- func TokenHash(v string) predicate.Invite
- func TokenHashContains(v string) predicate.Invite
- func TokenHashContainsFold(v string) predicate.Invite
- func TokenHashEQ(v string) predicate.Invite
- func TokenHashEqualFold(v string) predicate.Invite
- func TokenHashGT(v string) predicate.Invite
- func TokenHashGTE(v string) predicate.Invite
- func TokenHashHasPrefix(v string) predicate.Invite
- func TokenHashHasSuffix(v string) predicate.Invite
- func TokenHashIn(vs ...string) predicate.Invite
- func TokenHashLT(v string) predicate.Invite
- func TokenHashLTE(v string) predicate.Invite
- func TokenHashNEQ(v string) predicate.Invite
- func TokenHashNotIn(vs ...string) predicate.Invite
- func UpdateTime(v time.Time) predicate.Invite
- func UpdateTimeEQ(v time.Time) predicate.Invite
- func UpdateTimeGT(v time.Time) predicate.Invite
- func UpdateTimeGTE(v time.Time) predicate.Invite
- func UpdateTimeIn(vs ...time.Time) predicate.Invite
- func UpdateTimeLT(v time.Time) predicate.Invite
- func UpdateTimeLTE(v time.Time) predicate.Invite
- func UpdateTimeNEQ(v time.Time) predicate.Invite
- func UpdateTimeNotIn(vs ...time.Time) predicate.Invite
- func UsedAt(v time.Time) predicate.Invite
- func UsedAtEQ(v time.Time) predicate.Invite
- func UsedAtGT(v time.Time) predicate.Invite
- func UsedAtGTE(v time.Time) predicate.Invite
- func UsedAtIn(vs ...time.Time) predicate.Invite
- func UsedAtIsNil() predicate.Invite
- func UsedAtLT(v time.Time) predicate.Invite
- func UsedAtLTE(v time.Time) predicate.Invite
- func UsedAtNEQ(v time.Time) predicate.Invite
- func UsedAtNotIn(vs ...time.Time) predicate.Invite
- func UsedAtNotNil() predicate.Invite
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedByField(field string, opts ...sql.OrderTermOption) OrderOption
- type Role
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" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldTokenHash holds the string denoting the token_hash field in the database. FieldTokenHash = "token_hash" // 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" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldUsedAt holds the string denoting the used_at field in the database. FieldUsedAt = "used_at" // EdgeCreatedBy holds the string denoting the created_by edge name in mutations. EdgeCreatedBy = "created_by" // EdgeUsedBy holds the string denoting the used_by edge name in mutations. EdgeUsedBy = "used_by" // Table holds the table name of the invite in the database. Table = "invites" // CreatedByTable is the table that holds the created_by relation/edge. CreatedByTable = "invites" // CreatedByInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatedByInverseTable = "users" // CreatedByColumn is the table column denoting the created_by relation/edge. CreatedByColumn = "invite_created_by" // UsedByTable is the table that holds the used_by relation/edge. UsedByTable = "invites" // UsedByInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsedByInverseTable = "users" // UsedByColumn is the table column denoting the used_by relation/edge. UsedByColumn = "invite_used_by" )
const DefaultRole = RoleMember
RoleMember is the default value of the Role enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TokenHashValidator is a validator for the "token_hash" field. It is called by the builders before save. TokenHashValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldTokenHash, FieldEmail, FieldRole, FieldExpiresAt, FieldUsedAt, }
Columns holds all SQL columns for invite fields.
var ForeignKeys = []string{
"invite_created_by",
"invite_used_by",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "invites" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasCreatedBy ¶
HasCreatedBy applies the HasEdge predicate on the "created_by" edge.
func HasCreatedByWith ¶
HasCreatedByWith applies the HasEdge predicate on the "created_by" edge with a given conditions (other predicates).
func HasUsedByWith ¶
HasUsedByWith applies the HasEdge predicate on the "used_by" edge with a given conditions (other predicates).
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func TokenHash ¶
TokenHash applies equality check predicate on the "token_hash" field. It's identical to TokenHashEQ.
func TokenHashContains ¶
TokenHashContains applies the Contains predicate on the "token_hash" field.
func TokenHashContainsFold ¶
TokenHashContainsFold applies the ContainsFold predicate on the "token_hash" field.
func TokenHashEQ ¶
TokenHashEQ applies the EQ predicate on the "token_hash" field.
func TokenHashEqualFold ¶
TokenHashEqualFold applies the EqualFold predicate on the "token_hash" field.
func TokenHashGT ¶
TokenHashGT applies the GT predicate on the "token_hash" field.
func TokenHashGTE ¶
TokenHashGTE applies the GTE predicate on the "token_hash" field.
func TokenHashHasPrefix ¶
TokenHashHasPrefix applies the HasPrefix predicate on the "token_hash" field.
func TokenHashHasSuffix ¶
TokenHashHasSuffix applies the HasSuffix predicate on the "token_hash" field.
func TokenHashIn ¶
TokenHashIn applies the In predicate on the "token_hash" field.
func TokenHashLT ¶
TokenHashLT applies the LT predicate on the "token_hash" field.
func TokenHashLTE ¶
TokenHashLTE applies the LTE predicate on the "token_hash" field.
func TokenHashNEQ ¶
TokenHashNEQ applies the NEQ predicate on the "token_hash" field.
func TokenHashNotIn ¶
TokenHashNotIn applies the NotIn predicate on the "token_hash" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UsedAt ¶
UsedAt applies equality check predicate on the "used_at" field. It's identical to UsedAtEQ.
func UsedAtIsNil ¶
UsedAtIsNil applies the IsNil predicate on the "used_at" field.
func UsedAtNotIn ¶
UsedAtNotIn applies the NotIn predicate on the "used_at" field.
func UsedAtNotNil ¶
UsedAtNotNil applies the NotNil predicate on the "used_at" 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 ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByCreatedByField ¶
func ByCreatedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatedByField orders the results by created_by 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 ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByTokenHash ¶
func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
ByTokenHash orders the results by the token_hash field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUsedAt ¶
func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
ByUsedAt orders the results by the used_at field.
func ByUsedByField ¶
func ByUsedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByUsedByField orders the results by used_by field.