Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AccessToken) predicate.AccessToken
- func CreatedAt(v time.Time) predicate.AccessToken
- func CreatedAtEQ(v time.Time) predicate.AccessToken
- func CreatedAtGT(v time.Time) predicate.AccessToken
- func CreatedAtGTE(v time.Time) predicate.AccessToken
- func CreatedAtIn(vs ...time.Time) predicate.AccessToken
- func CreatedAtLT(v time.Time) predicate.AccessToken
- func CreatedAtLTE(v time.Time) predicate.AccessToken
- func CreatedAtNEQ(v time.Time) predicate.AccessToken
- func CreatedAtNotIn(vs ...time.Time) predicate.AccessToken
- func DeletedAt(v time.Time) predicate.AccessToken
- func DeletedAtEQ(v time.Time) predicate.AccessToken
- func DeletedAtGT(v time.Time) predicate.AccessToken
- func DeletedAtGTE(v time.Time) predicate.AccessToken
- func DeletedAtIn(vs ...time.Time) predicate.AccessToken
- func DeletedAtIsNil() predicate.AccessToken
- func DeletedAtLT(v time.Time) predicate.AccessToken
- func DeletedAtLTE(v time.Time) predicate.AccessToken
- func DeletedAtNEQ(v time.Time) predicate.AccessToken
- func DeletedAtNotIn(vs ...time.Time) predicate.AccessToken
- func DeletedAtNotNil() predicate.AccessToken
- func Email(v string) predicate.AccessToken
- func EmailContains(v string) predicate.AccessToken
- func EmailContainsFold(v string) predicate.AccessToken
- func EmailEQ(v string) predicate.AccessToken
- func EmailEqualFold(v string) predicate.AccessToken
- func EmailGT(v string) predicate.AccessToken
- func EmailGTE(v string) predicate.AccessToken
- func EmailHasPrefix(v string) predicate.AccessToken
- func EmailHasSuffix(v string) predicate.AccessToken
- func EmailIn(vs ...string) predicate.AccessToken
- func EmailLT(v string) predicate.AccessToken
- func EmailLTE(v string) predicate.AccessToken
- func EmailNEQ(v string) predicate.AccessToken
- func EmailNotIn(vs ...string) predicate.AccessToken
- func ExpiredAt(v time.Time) predicate.AccessToken
- func ExpiredAtEQ(v time.Time) predicate.AccessToken
- func ExpiredAtGT(v time.Time) predicate.AccessToken
- func ExpiredAtGTE(v time.Time) predicate.AccessToken
- func ExpiredAtIn(vs ...time.Time) predicate.AccessToken
- func ExpiredAtIsNil() predicate.AccessToken
- func ExpiredAtLT(v time.Time) predicate.AccessToken
- func ExpiredAtLTE(v time.Time) predicate.AccessToken
- func ExpiredAtNEQ(v time.Time) predicate.AccessToken
- func ExpiredAtNotIn(vs ...time.Time) predicate.AccessToken
- func ExpiredAtNotNil() predicate.AccessToken
- func ID(id int) predicate.AccessToken
- func IDEQ(id int) predicate.AccessToken
- func IDGT(id int) predicate.AccessToken
- func IDGTE(id int) predicate.AccessToken
- func IDIn(ids ...int) predicate.AccessToken
- func IDLT(id int) predicate.AccessToken
- func IDLTE(id int) predicate.AccessToken
- func IDNEQ(id int) predicate.AccessToken
- func IDNotIn(ids ...int) predicate.AccessToken
- func LastUsedAt(v time.Time) predicate.AccessToken
- func LastUsedAtEQ(v time.Time) predicate.AccessToken
- func LastUsedAtGT(v time.Time) predicate.AccessToken
- func LastUsedAtGTE(v time.Time) predicate.AccessToken
- func LastUsedAtIn(vs ...time.Time) predicate.AccessToken
- func LastUsedAtIsNil() predicate.AccessToken
- func LastUsedAtLT(v time.Time) predicate.AccessToken
- func LastUsedAtLTE(v time.Time) predicate.AccessToken
- func LastUsedAtNEQ(v time.Time) predicate.AccessToken
- func LastUsedAtNotIn(vs ...time.Time) predicate.AccessToken
- func LastUsedAtNotNil() predicate.AccessToken
- func Not(p predicate.AccessToken) predicate.AccessToken
- func Or(predicates ...predicate.AccessToken) predicate.AccessToken
- func Token(v string) predicate.AccessToken
- func TokenContains(v string) predicate.AccessToken
- func TokenContainsFold(v string) predicate.AccessToken
- func TokenEQ(v string) predicate.AccessToken
- func TokenEqualFold(v string) predicate.AccessToken
- func TokenGT(v string) predicate.AccessToken
- func TokenGTE(v string) predicate.AccessToken
- func TokenHasPrefix(v string) predicate.AccessToken
- func TokenHasSuffix(v string) predicate.AccessToken
- func TokenIn(vs ...string) predicate.AccessToken
- func TokenLT(v string) predicate.AccessToken
- func TokenLTE(v string) predicate.AccessToken
- func TokenNEQ(v string) predicate.AccessToken
- func TokenNotIn(vs ...string) predicate.AccessToken
- func UpdatedAt(v time.Time) predicate.AccessToken
- func UpdatedAtEQ(v time.Time) predicate.AccessToken
- func UpdatedAtGT(v time.Time) predicate.AccessToken
- func UpdatedAtGTE(v time.Time) predicate.AccessToken
- func UpdatedAtIn(vs ...time.Time) predicate.AccessToken
- func UpdatedAtLT(v time.Time) predicate.AccessToken
- func UpdatedAtLTE(v time.Time) predicate.AccessToken
- func UpdatedAtNEQ(v time.Time) predicate.AccessToken
- func UpdatedAtNotIn(vs ...time.Time) predicate.AccessToken
- func Usage(v string) predicate.AccessToken
- func UsageContains(v string) predicate.AccessToken
- func UsageContainsFold(v string) predicate.AccessToken
- func UsageEQ(v string) predicate.AccessToken
- func UsageEqualFold(v string) predicate.AccessToken
- func UsageGT(v string) predicate.AccessToken
- func UsageGTE(v string) predicate.AccessToken
- func UsageHasPrefix(v string) predicate.AccessToken
- func UsageHasSuffix(v string) predicate.AccessToken
- func UsageIn(vs ...string) predicate.AccessToken
- func UsageLT(v string) predicate.AccessToken
- func UsageLTE(v string) predicate.AccessToken
- func UsageNEQ(v string) predicate.AccessToken
- func UsageNotIn(vs ...string) predicate.AccessToken
- func UserInfoIsNil() predicate.AccessToken
- func UserInfoNotNil() predicate.AccessToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsage(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the accesstoken type in the database. Label = "access_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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldUsage holds the string denoting the usage field in the database. FieldUsage = "usage" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // FieldLastUsedAt holds the string denoting the last_used_at field in the database. FieldLastUsedAt = "last_used_at" // FieldUserInfo holds the string denoting the user_info field in the database. FieldUserInfo = "user_info" // Table holds the table name of the accesstoken in the database. Table = "access_tokens" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error // UsageValidator is a validator for the "usage" field. It is called by the builders before save. UsageValidator func(string) error // DefaultEmail holds the default value on creation for the "email" field. DefaultEmail string // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error )
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/duc-cnzj/mars/v5/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldToken, FieldUsage, FieldEmail, FieldExpiredAt, FieldLastUsedAt, FieldUserInfo, }
Columns holds all SQL columns for accesstoken fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AccessToken) predicate.AccessToken
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AccessToken
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AccessToken
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AccessToken
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AccessToken
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AccessToken
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AccessToken
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AccessToken
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AccessToken
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AccessToken
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.AccessToken
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.AccessToken
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.AccessToken
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.AccessToken
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.AccessToken
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.AccessToken
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.AccessToken
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.AccessToken
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.AccessToken
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.AccessToken
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.AccessToken
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Email ¶
func Email(v string) predicate.AccessToken
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
func EmailContains(v string) predicate.AccessToken
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
func EmailContainsFold(v string) predicate.AccessToken
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEQ ¶
func EmailEQ(v string) predicate.AccessToken
EmailEQ applies the EQ predicate on the "email" field.
func EmailEqualFold ¶
func EmailEqualFold(v string) predicate.AccessToken
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailGT ¶
func EmailGT(v string) predicate.AccessToken
EmailGT applies the GT predicate on the "email" field.
func EmailGTE ¶
func EmailGTE(v string) predicate.AccessToken
EmailGTE applies the GTE predicate on the "email" field.
func EmailHasPrefix ¶
func EmailHasPrefix(v string) predicate.AccessToken
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
func EmailHasSuffix(v string) predicate.AccessToken
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIn ¶
func EmailIn(vs ...string) predicate.AccessToken
EmailIn applies the In predicate on the "email" field.
func EmailLT ¶
func EmailLT(v string) predicate.AccessToken
EmailLT applies the LT predicate on the "email" field.
func EmailLTE ¶
func EmailLTE(v string) predicate.AccessToken
EmailLTE applies the LTE predicate on the "email" field.
func EmailNEQ ¶
func EmailNEQ(v string) predicate.AccessToken
EmailNEQ applies the NEQ predicate on the "email" field.
func EmailNotIn ¶
func EmailNotIn(vs ...string) predicate.AccessToken
EmailNotIn applies the NotIn predicate on the "email" field.
func ExpiredAt ¶
func ExpiredAt(v time.Time) predicate.AccessToken
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
func ExpiredAtEQ(v time.Time) predicate.AccessToken
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
func ExpiredAtGT(v time.Time) predicate.AccessToken
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
func ExpiredAtGTE(v time.Time) predicate.AccessToken
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
func ExpiredAtIn(vs ...time.Time) predicate.AccessToken
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtIsNil ¶
func ExpiredAtIsNil() predicate.AccessToken
ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.
func ExpiredAtLT ¶
func ExpiredAtLT(v time.Time) predicate.AccessToken
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
func ExpiredAtLTE(v time.Time) predicate.AccessToken
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
func ExpiredAtNEQ(v time.Time) predicate.AccessToken
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
func ExpiredAtNotIn(vs ...time.Time) predicate.AccessToken
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func ExpiredAtNotNil ¶
func ExpiredAtNotNil() predicate.AccessToken
ExpiredAtNotNil applies the NotNil predicate on the "expired_at" field.
func IDGTE ¶
func IDGTE(id int) predicate.AccessToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.AccessToken
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.AccessToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.AccessToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.AccessToken
IDNotIn applies the NotIn predicate on the ID field.
func LastUsedAt ¶
func LastUsedAt(v time.Time) predicate.AccessToken
LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.
func LastUsedAtEQ ¶
func LastUsedAtEQ(v time.Time) predicate.AccessToken
LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.
func LastUsedAtGT ¶
func LastUsedAtGT(v time.Time) predicate.AccessToken
LastUsedAtGT applies the GT predicate on the "last_used_at" field.
func LastUsedAtGTE ¶
func LastUsedAtGTE(v time.Time) predicate.AccessToken
LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.
func LastUsedAtIn ¶
func LastUsedAtIn(vs ...time.Time) predicate.AccessToken
LastUsedAtIn applies the In predicate on the "last_used_at" field.
func LastUsedAtIsNil ¶
func LastUsedAtIsNil() predicate.AccessToken
LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.
func LastUsedAtLT ¶
func LastUsedAtLT(v time.Time) predicate.AccessToken
LastUsedAtLT applies the LT predicate on the "last_used_at" field.
func LastUsedAtLTE ¶
func LastUsedAtLTE(v time.Time) predicate.AccessToken
LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.
func LastUsedAtNEQ ¶
func LastUsedAtNEQ(v time.Time) predicate.AccessToken
LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.
func LastUsedAtNotIn ¶
func LastUsedAtNotIn(vs ...time.Time) predicate.AccessToken
LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.
func LastUsedAtNotNil ¶
func LastUsedAtNotNil() predicate.AccessToken
LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.
func Not ¶
func Not(p predicate.AccessToken) predicate.AccessToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AccessToken) predicate.AccessToken
Or groups predicates with the OR operator between them.
func Token ¶
func Token(v string) predicate.AccessToken
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
func TokenContains(v string) predicate.AccessToken
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
func TokenContainsFold(v string) predicate.AccessToken
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEQ ¶
func TokenEQ(v string) predicate.AccessToken
TokenEQ applies the EQ predicate on the "token" field.
func TokenEqualFold ¶
func TokenEqualFold(v string) predicate.AccessToken
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenGT ¶
func TokenGT(v string) predicate.AccessToken
TokenGT applies the GT predicate on the "token" field.
func TokenGTE ¶
func TokenGTE(v string) predicate.AccessToken
TokenGTE applies the GTE predicate on the "token" field.
func TokenHasPrefix ¶
func TokenHasPrefix(v string) predicate.AccessToken
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
func TokenHasSuffix(v string) predicate.AccessToken
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenIn ¶
func TokenIn(vs ...string) predicate.AccessToken
TokenIn applies the In predicate on the "token" field.
func TokenLT ¶
func TokenLT(v string) predicate.AccessToken
TokenLT applies the LT predicate on the "token" field.
func TokenLTE ¶
func TokenLTE(v string) predicate.AccessToken
TokenLTE applies the LTE predicate on the "token" field.
func TokenNEQ ¶
func TokenNEQ(v string) predicate.AccessToken
TokenNEQ applies the NEQ predicate on the "token" field.
func TokenNotIn ¶
func TokenNotIn(vs ...string) predicate.AccessToken
TokenNotIn applies the NotIn predicate on the "token" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.AccessToken
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.AccessToken
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.AccessToken
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.AccessToken
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.AccessToken
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.AccessToken
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.AccessToken
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.AccessToken
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.AccessToken
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func Usage ¶
func Usage(v string) predicate.AccessToken
Usage applies equality check predicate on the "usage" field. It's identical to UsageEQ.
func UsageContains ¶
func UsageContains(v string) predicate.AccessToken
UsageContains applies the Contains predicate on the "usage" field.
func UsageContainsFold ¶
func UsageContainsFold(v string) predicate.AccessToken
UsageContainsFold applies the ContainsFold predicate on the "usage" field.
func UsageEQ ¶
func UsageEQ(v string) predicate.AccessToken
UsageEQ applies the EQ predicate on the "usage" field.
func UsageEqualFold ¶
func UsageEqualFold(v string) predicate.AccessToken
UsageEqualFold applies the EqualFold predicate on the "usage" field.
func UsageGT ¶
func UsageGT(v string) predicate.AccessToken
UsageGT applies the GT predicate on the "usage" field.
func UsageGTE ¶
func UsageGTE(v string) predicate.AccessToken
UsageGTE applies the GTE predicate on the "usage" field.
func UsageHasPrefix ¶
func UsageHasPrefix(v string) predicate.AccessToken
UsageHasPrefix applies the HasPrefix predicate on the "usage" field.
func UsageHasSuffix ¶
func UsageHasSuffix(v string) predicate.AccessToken
UsageHasSuffix applies the HasSuffix predicate on the "usage" field.
func UsageIn ¶
func UsageIn(vs ...string) predicate.AccessToken
UsageIn applies the In predicate on the "usage" field.
func UsageLT ¶
func UsageLT(v string) predicate.AccessToken
UsageLT applies the LT predicate on the "usage" field.
func UsageLTE ¶
func UsageLTE(v string) predicate.AccessToken
UsageLTE applies the LTE predicate on the "usage" field.
func UsageNEQ ¶
func UsageNEQ(v string) predicate.AccessToken
UsageNEQ applies the NEQ predicate on the "usage" field.
func UsageNotIn ¶
func UsageNotIn(vs ...string) predicate.AccessToken
UsageNotIn applies the NotIn predicate on the "usage" field.
func UserInfoIsNil ¶
func UserInfoIsNil() predicate.AccessToken
UserInfoIsNil applies the IsNil predicate on the "user_info" field.
func UserInfoNotNil ¶
func UserInfoNotNil() predicate.AccessToken
UserInfoNotNil applies the NotNil predicate on the "user_info" 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 AccessToken queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByExpiredAt ¶
func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
ByExpiredAt orders the results by the expired_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUsedAt ¶
func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
ByLastUsedAt orders the results by the last_used_at 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.
func ByUsage ¶
func ByUsage(opts ...sql.OrderTermOption) OrderOption
ByUsage orders the results by the usage field.