Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserToken) predicate.UserToken
- func HasUser() predicate.UserToken
- func HasUserWith(preds ...predicate.User) predicate.UserToken
- func ID(id int) predicate.UserToken
- func IDEQ(id int) predicate.UserToken
- func IDGT(id int) predicate.UserToken
- func IDGTE(id int) predicate.UserToken
- func IDIn(ids ...int) predicate.UserToken
- func IDLT(id int) predicate.UserToken
- func IDLTE(id int) predicate.UserToken
- func IDNEQ(id int) predicate.UserToken
- func IDNotIn(ids ...int) predicate.UserToken
- func Not(p predicate.UserToken) predicate.UserToken
- func Or(predicates ...predicate.UserToken) predicate.UserToken
- func TokenID(v uint64) predicate.UserToken
- func TokenIDEQ(v uint64) predicate.UserToken
- func TokenIDGT(v uint64) predicate.UserToken
- func TokenIDGTE(v uint64) predicate.UserToken
- func TokenIDIn(vs ...uint64) predicate.UserToken
- func TokenIDLT(v uint64) predicate.UserToken
- func TokenIDLTE(v uint64) predicate.UserToken
- func TokenIDNEQ(v uint64) predicate.UserToken
- func TokenIDNotIn(vs ...uint64) predicate.UserToken
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the usertoken type in the database. Label = "user_token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTokenID holds the string denoting the token_id field in the database. FieldTokenID = "token_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the usertoken in the database. Table = "user_tokens" // UserTable is the table that holds the user relation/edge. UserTable = "user_tokens" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_token" )
Variables ¶
var Columns = []string{ FieldID, FieldTokenID, }
Columns holds all SQL columns for usertoken fields.
var ForeignKeys = []string{
"user_token",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func TokenID ¶
TokenID applies equality check predicate on the "token_id" field. It's identical to TokenIDEQ.
func TokenIDGTE ¶
TokenIDGTE applies the GTE predicate on the "token_id" field.
func TokenIDLTE ¶
TokenIDLTE applies the LTE predicate on the "token_id" field.
func TokenIDNEQ ¶
TokenIDNEQ applies the NEQ predicate on the "token_id" field.
func TokenIDNotIn ¶
TokenIDNotIn applies the NotIn predicate on the "token_id" 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 UserToken queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTokenID ¶
func ByTokenID(opts ...sql.OrderTermOption) OrderOption
ByTokenID orders the results by the token_id field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.