Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func CreatedAt(v time.Time) predicate.Token
- func CreatedAtEQ(v time.Time) predicate.Token
- func CreatedAtGT(v time.Time) predicate.Token
- func CreatedAtGTE(v time.Time) predicate.Token
- func CreatedAtIn(vs ...time.Time) predicate.Token
- func CreatedAtLT(v time.Time) predicate.Token
- func CreatedAtLTE(v time.Time) predicate.Token
- func CreatedAtNEQ(v time.Time) predicate.Token
- func CreatedAtNotIn(vs ...time.Time) predicate.Token
- func HasUser() predicate.Token
- func HasUserWith(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 IsActive(v bool) predicate.Token
- func IsActiveEQ(v bool) predicate.Token
- func IsActiveNEQ(v bool) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) 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" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the token in the database. Table = "tokens" // UserTable is the table that holds the user relation/edge. UserTable = "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_tokens" )
Variables ¶
var ( // DefaultIsActive holds the default value on creation for the "is_active" field. DefaultIsActive bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldIsActive, FieldCreatedAt, }
Columns holds all SQL columns for token fields.
var ForeignKeys = []string{
"user_tokens",
}
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 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 HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.