Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func ExpireAt(v int64) predicate.Token
- func ExpireAtEQ(v int64) predicate.Token
- func ExpireAtGT(v int64) predicate.Token
- func ExpireAtGTE(v int64) predicate.Token
- func ExpireAtIn(vs ...int64) predicate.Token
- func ExpireAtLT(v int64) predicate.Token
- func ExpireAtLTE(v int64) predicate.Token
- func ExpireAtNEQ(v int64) predicate.Token
- func ExpireAtNotIn(vs ...int64) predicate.Token
- func HasTokenToUser() predicate.Token
- func HasTokenToUserWith(preds ...predicate.User) predicate.Token
- func ID(id uuid.UUID) predicate.Token
- func IDEQ(id uuid.UUID) predicate.Token
- func IDGT(id uuid.UUID) predicate.Token
- func IDGTE(id uuid.UUID) predicate.Token
- func IDIn(ids ...uuid.UUID) predicate.Token
- func IDLT(id uuid.UUID) predicate.Token
- func IDLTE(id uuid.UUID) predicate.Token
- func IDNEQ(id uuid.UUID) predicate.Token
- func IDNotIn(ids ...uuid.UUID) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func Token(v string) predicate.Token
- func TokenContains(v string) predicate.Token
- func TokenContainsFold(v string) predicate.Token
- func TokenEQ(v string) predicate.Token
- func TokenEqualFold(v string) predicate.Token
- func TokenGT(v string) predicate.Token
- func TokenGTE(v string) predicate.Token
- func TokenHasPrefix(v string) predicate.Token
- func TokenHasSuffix(v string) predicate.Token
- func TokenIn(vs ...string) predicate.Token
- func TokenLT(v string) predicate.Token
- func TokenLTE(v string) predicate.Token
- func TokenNEQ(v string) predicate.Token
- func TokenNotIn(vs ...string) predicate.Token
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the token type in the database. Label = "token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldExpireAt holds the string denoting the expire_at field in the database. FieldExpireAt = "expire_at" // EdgeTokenToUser holds the string denoting the tokentouser edge name in mutations. EdgeTokenToUser = "TokenToUser" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "oid" // Table holds the table name of the token in the database. Table = "tokens" // TokenToUserTable is the table that holds the TokenToUser relation/edge. TokenToUserTable = "tokens" // TokenToUserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. TokenToUserInverseTable = "users" // TokenToUserColumn is the table column denoting the TokenToUser relation/edge. TokenToUserColumn = "user_user_to_token" )
Variables ¶
var Columns = []string{ FieldID, FieldToken, FieldExpireAt, }
Columns holds all SQL columns for token fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ForeignKeys = []string{
"user_user_to_token",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func ExpireAt ¶
ExpireAt applies equality check predicate on the "expire_at" field. It's identical to ExpireAtEQ.
func ExpireAtEQ ¶
ExpireAtEQ applies the EQ predicate on the "expire_at" field.
func ExpireAtGT ¶
ExpireAtGT applies the GT predicate on the "expire_at" field.
func ExpireAtGTE ¶
ExpireAtGTE applies the GTE predicate on the "expire_at" field.
func ExpireAtIn ¶
ExpireAtIn applies the In predicate on the "expire_at" field.
func ExpireAtLT ¶
ExpireAtLT applies the LT predicate on the "expire_at" field.
func ExpireAtLTE ¶
ExpireAtLTE applies the LTE predicate on the "expire_at" field.
func ExpireAtNEQ ¶
ExpireAtNEQ applies the NEQ predicate on the "expire_at" field.
func ExpireAtNotIn ¶
ExpireAtNotIn applies the NotIn predicate on the "expire_at" field.
func HasTokenToUser ¶
HasTokenToUser applies the HasEdge predicate on the "TokenToUser" edge.
func HasTokenToUserWith ¶
HasTokenToUserWith applies the HasEdge predicate on the "TokenToUser" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.