Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AuthTokens) predicate.AuthTokens
- func CreatedAt(v time.Time) predicate.AuthTokens
- func CreatedAtEQ(v time.Time) predicate.AuthTokens
- func CreatedAtGT(v time.Time) predicate.AuthTokens
- func CreatedAtGTE(v time.Time) predicate.AuthTokens
- func CreatedAtIn(vs ...time.Time) predicate.AuthTokens
- func CreatedAtLT(v time.Time) predicate.AuthTokens
- func CreatedAtLTE(v time.Time) predicate.AuthTokens
- func CreatedAtNEQ(v time.Time) predicate.AuthTokens
- func CreatedAtNotIn(vs ...time.Time) predicate.AuthTokens
- func ExpiresAt(v time.Time) predicate.AuthTokens
- func ExpiresAtEQ(v time.Time) predicate.AuthTokens
- func ExpiresAtGT(v time.Time) predicate.AuthTokens
- func ExpiresAtGTE(v time.Time) predicate.AuthTokens
- func ExpiresAtIn(vs ...time.Time) predicate.AuthTokens
- func ExpiresAtLT(v time.Time) predicate.AuthTokens
- func ExpiresAtLTE(v time.Time) predicate.AuthTokens
- func ExpiresAtNEQ(v time.Time) predicate.AuthTokens
- func ExpiresAtNotIn(vs ...time.Time) predicate.AuthTokens
- func HasRoles() predicate.AuthTokens
- func HasRolesWith(preds ...predicate.AuthRoles) predicate.AuthTokens
- func HasUser() predicate.AuthTokens
- func HasUserWith(preds ...predicate.User) predicate.AuthTokens
- func ID(id uuid.UUID) predicate.AuthTokens
- func IDEQ(id uuid.UUID) predicate.AuthTokens
- func IDGT(id uuid.UUID) predicate.AuthTokens
- func IDGTE(id uuid.UUID) predicate.AuthTokens
- func IDIn(ids ...uuid.UUID) predicate.AuthTokens
- func IDLT(id uuid.UUID) predicate.AuthTokens
- func IDLTE(id uuid.UUID) predicate.AuthTokens
- func IDNEQ(id uuid.UUID) predicate.AuthTokens
- func IDNotIn(ids ...uuid.UUID) predicate.AuthTokens
- func Not(p predicate.AuthTokens) predicate.AuthTokens
- func Or(predicates ...predicate.AuthTokens) predicate.AuthTokens
- func Token(v []byte) predicate.AuthTokens
- func TokenEQ(v []byte) predicate.AuthTokens
- func TokenGT(v []byte) predicate.AuthTokens
- func TokenGTE(v []byte) predicate.AuthTokens
- func TokenIn(vs ...[]byte) predicate.AuthTokens
- func TokenLT(v []byte) predicate.AuthTokens
- func TokenLTE(v []byte) predicate.AuthTokens
- func TokenNEQ(v []byte) predicate.AuthTokens
- func TokenNotIn(vs ...[]byte) predicate.AuthTokens
- func UpdatedAt(v time.Time) predicate.AuthTokens
- func UpdatedAtEQ(v time.Time) predicate.AuthTokens
- func UpdatedAtGT(v time.Time) predicate.AuthTokens
- func UpdatedAtGTE(v time.Time) predicate.AuthTokens
- func UpdatedAtIn(vs ...time.Time) predicate.AuthTokens
- func UpdatedAtLT(v time.Time) predicate.AuthTokens
- func UpdatedAtLTE(v time.Time) predicate.AuthTokens
- func UpdatedAtNEQ(v time.Time) predicate.AuthTokens
- func UpdatedAtNotIn(vs ...time.Time) predicate.AuthTokens
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRolesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the authtokens type in the database. Label = "auth_tokens" // 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" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // Table holds the table name of the authtokens in the database. Table = "auth_tokens" // UserTable is the table that holds the user relation/edge. UserTable = "auth_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_auth_tokens" // RolesTable is the table that holds the roles relation/edge. RolesTable = "auth_roles" // RolesInverseTable is the table name for the AuthRoles entity. // It exists in this package in order to avoid circular dependency with the "authroles" package. RolesInverseTable = "auth_roles" // RolesColumn is the table column denoting the roles relation/edge. RolesColumn = "auth_tokens_roles" )
Variables ¶
var ( // 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 // DefaultExpiresAt holds the default value on creation for the "expires_at" field. DefaultExpiresAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldToken, FieldExpiresAt, }
Columns holds all SQL columns for authtokens fields.
var ForeignKeys = []string{
"user_auth_tokens",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "auth_tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.AuthTokens) predicate.AuthTokens
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AuthTokens
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AuthTokens
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AuthTokens
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AuthTokens
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AuthTokens
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AuthTokens
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AuthTokens
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AuthTokens
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AuthTokens
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.AuthTokens
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.AuthTokens
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.AuthTokens
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.AuthTokens
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.AuthTokens
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.AuthTokens
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.AuthTokens
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.AuthTokens
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.AuthTokens
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasRoles ¶
func HasRoles() predicate.AuthTokens
HasRoles applies the HasEdge predicate on the "roles" edge.
func HasRolesWith ¶
func HasRolesWith(preds ...predicate.AuthRoles) predicate.AuthTokens
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.AuthTokens
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.AuthTokens
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.AuthTokens
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.AuthTokens
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.AuthTokens
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.AuthTokens
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.AuthTokens
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.AuthTokens
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.AuthTokens
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.AuthTokens
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AuthTokens) predicate.AuthTokens
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AuthTokens) predicate.AuthTokens
Or groups predicates with the OR operator between them.
func Token ¶
func Token(v []byte) predicate.AuthTokens
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenEQ ¶
func TokenEQ(v []byte) predicate.AuthTokens
TokenEQ applies the EQ predicate on the "token" field.
func TokenGT ¶
func TokenGT(v []byte) predicate.AuthTokens
TokenGT applies the GT predicate on the "token" field.
func TokenGTE ¶
func TokenGTE(v []byte) predicate.AuthTokens
TokenGTE applies the GTE predicate on the "token" field.
func TokenIn ¶
func TokenIn(vs ...[]byte) predicate.AuthTokens
TokenIn applies the In predicate on the "token" field.
func TokenLT ¶
func TokenLT(v []byte) predicate.AuthTokens
TokenLT applies the LT predicate on the "token" field.
func TokenLTE ¶
func TokenLTE(v []byte) predicate.AuthTokens
TokenLTE applies the LTE predicate on the "token" field.
func TokenNEQ ¶
func TokenNEQ(v []byte) predicate.AuthTokens
TokenNEQ applies the NEQ predicate on the "token" field.
func TokenNotIn ¶
func TokenNotIn(vs ...[]byte) predicate.AuthTokens
TokenNotIn applies the NotIn predicate on the "token" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.AuthTokens
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.AuthTokens
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.AuthTokens
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.AuthTokens
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.AuthTokens
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.AuthTokens
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.AuthTokens
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.AuthTokens
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.AuthTokens
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 AuthTokens queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 ByRolesField ¶
func ByRolesField(field string, opts ...sql.OrderTermOption) OrderOption
ByRolesField orders the results by roles field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.