Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VerificationToken) predicate.VerificationToken
- func CreatedAt(v time.Time) predicate.VerificationToken
- func CreatedAtEQ(v time.Time) predicate.VerificationToken
- func CreatedAtGT(v time.Time) predicate.VerificationToken
- func CreatedAtGTE(v time.Time) predicate.VerificationToken
- func CreatedAtIn(vs ...time.Time) predicate.VerificationToken
- func CreatedAtLT(v time.Time) predicate.VerificationToken
- func CreatedAtLTE(v time.Time) predicate.VerificationToken
- func CreatedAtNEQ(v time.Time) predicate.VerificationToken
- func CreatedAtNotIn(vs ...time.Time) predicate.VerificationToken
- func ExpiryAt(v time.Time) predicate.VerificationToken
- func ExpiryAtEQ(v time.Time) predicate.VerificationToken
- func ExpiryAtGT(v time.Time) predicate.VerificationToken
- func ExpiryAtGTE(v time.Time) predicate.VerificationToken
- func ExpiryAtIn(vs ...time.Time) predicate.VerificationToken
- func ExpiryAtLT(v time.Time) predicate.VerificationToken
- func ExpiryAtLTE(v time.Time) predicate.VerificationToken
- func ExpiryAtNEQ(v time.Time) predicate.VerificationToken
- func ExpiryAtNotIn(vs ...time.Time) predicate.VerificationToken
- func HasOwner() predicate.VerificationToken
- func HasOwnerWith(preds ...predicate.User) predicate.VerificationToken
- func ID(id uuid.UUID) predicate.VerificationToken
- func IDEQ(id uuid.UUID) predicate.VerificationToken
- func IDGT(id uuid.UUID) predicate.VerificationToken
- func IDGTE(id uuid.UUID) predicate.VerificationToken
- func IDIn(ids ...uuid.UUID) predicate.VerificationToken
- func IDLT(id uuid.UUID) predicate.VerificationToken
- func IDLTE(id uuid.UUID) predicate.VerificationToken
- func IDNEQ(id uuid.UUID) predicate.VerificationToken
- func IDNotIn(ids ...uuid.UUID) predicate.VerificationToken
- func Not(p predicate.VerificationToken) predicate.VerificationToken
- func Or(predicates ...predicate.VerificationToken) predicate.VerificationToken
- func ScopeEQ(v Scope) predicate.VerificationToken
- func ScopeIn(vs ...Scope) predicate.VerificationToken
- func ScopeNEQ(v Scope) predicate.VerificationToken
- func ScopeNotIn(vs ...Scope) predicate.VerificationToken
- func ScopeValidator(s Scope) error
- func Token(v string) predicate.VerificationToken
- func TokenContains(v string) predicate.VerificationToken
- func TokenContainsFold(v string) predicate.VerificationToken
- func TokenEQ(v string) predicate.VerificationToken
- func TokenEqualFold(v string) predicate.VerificationToken
- func TokenGT(v string) predicate.VerificationToken
- func TokenGTE(v string) predicate.VerificationToken
- func TokenHasPrefix(v string) predicate.VerificationToken
- func TokenHasSuffix(v string) predicate.VerificationToken
- func TokenIn(vs ...string) predicate.VerificationToken
- func TokenLT(v string) predicate.VerificationToken
- func TokenLTE(v string) predicate.VerificationToken
- func TokenNEQ(v string) predicate.VerificationToken
- func TokenNotIn(vs ...string) predicate.VerificationToken
- func UpdatedAt(v time.Time) predicate.VerificationToken
- func UpdatedAtEQ(v time.Time) predicate.VerificationToken
- func UpdatedAtGT(v time.Time) predicate.VerificationToken
- func UpdatedAtGTE(v time.Time) predicate.VerificationToken
- func UpdatedAtIn(vs ...time.Time) predicate.VerificationToken
- func UpdatedAtLT(v time.Time) predicate.VerificationToken
- func UpdatedAtLTE(v time.Time) predicate.VerificationToken
- func UpdatedAtNEQ(v time.Time) predicate.VerificationToken
- func UpdatedAtNotIn(vs ...time.Time) predicate.VerificationToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiryAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByScope(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Scope
Constants ¶
const ( // Label holds the string label denoting the verificationtoken type in the database. Label = "verification_token" // 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" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // FieldExpiryAt holds the string denoting the expiry_at field in the database. FieldExpiryAt = "expiry_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the verificationtoken in the database. Table = "verification_tokens" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "verification_tokens" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_verification_token" )
Variables ¶
var ( Hooks [1]ent.Hook // 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 // DefaultExpiryAt holds the default value on creation for the "expiry_at" field. DefaultExpiryAt time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
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/paycrest/aggregator/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldToken, FieldScope, FieldExpiryAt, }
Columns holds all SQL columns for verificationtoken fields.
var ForeignKeys = []string{
"user_verification_token",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "verification_tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.VerificationToken) predicate.VerificationToken
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.VerificationToken
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.VerificationToken
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.VerificationToken
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.VerificationToken
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.VerificationToken
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.VerificationToken
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.VerificationToken
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.VerificationToken
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.VerificationToken
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiryAt ¶
func ExpiryAt(v time.Time) predicate.VerificationToken
ExpiryAt applies equality check predicate on the "expiry_at" field. It's identical to ExpiryAtEQ.
func ExpiryAtEQ ¶
func ExpiryAtEQ(v time.Time) predicate.VerificationToken
ExpiryAtEQ applies the EQ predicate on the "expiry_at" field.
func ExpiryAtGT ¶
func ExpiryAtGT(v time.Time) predicate.VerificationToken
ExpiryAtGT applies the GT predicate on the "expiry_at" field.
func ExpiryAtGTE ¶
func ExpiryAtGTE(v time.Time) predicate.VerificationToken
ExpiryAtGTE applies the GTE predicate on the "expiry_at" field.
func ExpiryAtIn ¶
func ExpiryAtIn(vs ...time.Time) predicate.VerificationToken
ExpiryAtIn applies the In predicate on the "expiry_at" field.
func ExpiryAtLT ¶
func ExpiryAtLT(v time.Time) predicate.VerificationToken
ExpiryAtLT applies the LT predicate on the "expiry_at" field.
func ExpiryAtLTE ¶
func ExpiryAtLTE(v time.Time) predicate.VerificationToken
ExpiryAtLTE applies the LTE predicate on the "expiry_at" field.
func ExpiryAtNEQ ¶
func ExpiryAtNEQ(v time.Time) predicate.VerificationToken
ExpiryAtNEQ applies the NEQ predicate on the "expiry_at" field.
func ExpiryAtNotIn ¶
func ExpiryAtNotIn(vs ...time.Time) predicate.VerificationToken
ExpiryAtNotIn applies the NotIn predicate on the "expiry_at" field.
func HasOwner ¶
func HasOwner() predicate.VerificationToken
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.User) predicate.VerificationToken
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.VerificationToken
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.VerificationToken
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.VerificationToken
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.VerificationToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.VerificationToken
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.VerificationToken
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.VerificationToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.VerificationToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.VerificationToken
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VerificationToken) predicate.VerificationToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VerificationToken) predicate.VerificationToken
Or groups predicates with the OR operator between them.
func ScopeEQ ¶
func ScopeEQ(v Scope) predicate.VerificationToken
ScopeEQ applies the EQ predicate on the "scope" field.
func ScopeIn ¶
func ScopeIn(vs ...Scope) predicate.VerificationToken
ScopeIn applies the In predicate on the "scope" field.
func ScopeNEQ ¶
func ScopeNEQ(v Scope) predicate.VerificationToken
ScopeNEQ applies the NEQ predicate on the "scope" field.
func ScopeNotIn ¶
func ScopeNotIn(vs ...Scope) predicate.VerificationToken
ScopeNotIn applies the NotIn predicate on the "scope" field.
func ScopeValidator ¶
ScopeValidator is a validator for the "scope" field enum values. It is called by the builders before save.
func Token ¶
func Token(v string) predicate.VerificationToken
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
func TokenContains(v string) predicate.VerificationToken
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
func TokenContainsFold(v string) predicate.VerificationToken
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEQ ¶
func TokenEQ(v string) predicate.VerificationToken
TokenEQ applies the EQ predicate on the "token" field.
func TokenEqualFold ¶
func TokenEqualFold(v string) predicate.VerificationToken
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenGT ¶
func TokenGT(v string) predicate.VerificationToken
TokenGT applies the GT predicate on the "token" field.
func TokenGTE ¶
func TokenGTE(v string) predicate.VerificationToken
TokenGTE applies the GTE predicate on the "token" field.
func TokenHasPrefix ¶
func TokenHasPrefix(v string) predicate.VerificationToken
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
func TokenHasSuffix(v string) predicate.VerificationToken
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenIn ¶
func TokenIn(vs ...string) predicate.VerificationToken
TokenIn applies the In predicate on the "token" field.
func TokenLT ¶
func TokenLT(v string) predicate.VerificationToken
TokenLT applies the LT predicate on the "token" field.
func TokenLTE ¶
func TokenLTE(v string) predicate.VerificationToken
TokenLTE applies the LTE predicate on the "token" field.
func TokenNEQ ¶
func TokenNEQ(v string) predicate.VerificationToken
TokenNEQ applies the NEQ predicate on the "token" field.
func TokenNotIn ¶
func TokenNotIn(vs ...string) predicate.VerificationToken
TokenNotIn applies the NotIn predicate on the "token" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.VerificationToken
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.VerificationToken
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.VerificationToken
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.VerificationToken
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.VerificationToken
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.VerificationToken
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.VerificationToken
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.VerificationToken
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.VerificationToken
UpdatedAtNotIn applies the NotIn predicate on the "updated_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 VerificationToken queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiryAt ¶
func ByExpiryAt(opts ...sql.OrderTermOption) OrderOption
ByExpiryAt orders the results by the expiry_at 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 ByScope ¶
func ByScope(opts ...sql.OrderTermOption) OrderOption
ByScope orders the results by the scope 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.