Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.EnrollmentToken
- func ActiveEQ(v bool) predicate.EnrollmentToken
- func ActiveNEQ(v bool) predicate.EnrollmentToken
- func And(predicates ...predicate.EnrollmentToken) predicate.EnrollmentToken
- func Created(v time.Time) predicate.EnrollmentToken
- func CreatedEQ(v time.Time) predicate.EnrollmentToken
- func CreatedGT(v time.Time) predicate.EnrollmentToken
- func CreatedGTE(v time.Time) predicate.EnrollmentToken
- func CreatedIn(vs ...time.Time) predicate.EnrollmentToken
- func CreatedIsNil() predicate.EnrollmentToken
- func CreatedLT(v time.Time) predicate.EnrollmentToken
- func CreatedLTE(v time.Time) predicate.EnrollmentToken
- func CreatedNEQ(v time.Time) predicate.EnrollmentToken
- func CreatedNotIn(vs ...time.Time) predicate.EnrollmentToken
- func CreatedNotNil() predicate.EnrollmentToken
- func CurrentUses(v int) predicate.EnrollmentToken
- func CurrentUsesEQ(v int) predicate.EnrollmentToken
- func CurrentUsesGT(v int) predicate.EnrollmentToken
- func CurrentUsesGTE(v int) predicate.EnrollmentToken
- func CurrentUsesIn(vs ...int) predicate.EnrollmentToken
- func CurrentUsesLT(v int) predicate.EnrollmentToken
- func CurrentUsesLTE(v int) predicate.EnrollmentToken
- func CurrentUsesNEQ(v int) predicate.EnrollmentToken
- func CurrentUsesNotIn(vs ...int) predicate.EnrollmentToken
- func Description(v string) predicate.EnrollmentToken
- func DescriptionContains(v string) predicate.EnrollmentToken
- func DescriptionContainsFold(v string) predicate.EnrollmentToken
- func DescriptionEQ(v string) predicate.EnrollmentToken
- func DescriptionEqualFold(v string) predicate.EnrollmentToken
- func DescriptionGT(v string) predicate.EnrollmentToken
- func DescriptionGTE(v string) predicate.EnrollmentToken
- func DescriptionHasPrefix(v string) predicate.EnrollmentToken
- func DescriptionHasSuffix(v string) predicate.EnrollmentToken
- func DescriptionIn(vs ...string) predicate.EnrollmentToken
- func DescriptionIsNil() predicate.EnrollmentToken
- func DescriptionLT(v string) predicate.EnrollmentToken
- func DescriptionLTE(v string) predicate.EnrollmentToken
- func DescriptionNEQ(v string) predicate.EnrollmentToken
- func DescriptionNotIn(vs ...string) predicate.EnrollmentToken
- func DescriptionNotNil() predicate.EnrollmentToken
- func ExpiresAt(v time.Time) predicate.EnrollmentToken
- func ExpiresAtEQ(v time.Time) predicate.EnrollmentToken
- func ExpiresAtGT(v time.Time) predicate.EnrollmentToken
- func ExpiresAtGTE(v time.Time) predicate.EnrollmentToken
- func ExpiresAtIn(vs ...time.Time) predicate.EnrollmentToken
- func ExpiresAtIsNil() predicate.EnrollmentToken
- func ExpiresAtLT(v time.Time) predicate.EnrollmentToken
- func ExpiresAtLTE(v time.Time) predicate.EnrollmentToken
- func ExpiresAtNEQ(v time.Time) predicate.EnrollmentToken
- func ExpiresAtNotIn(vs ...time.Time) predicate.EnrollmentToken
- func ExpiresAtNotNil() predicate.EnrollmentToken
- func HasSite() predicate.EnrollmentToken
- func HasSiteWith(preds ...predicate.Site) predicate.EnrollmentToken
- func HasTenant() predicate.EnrollmentToken
- func HasTenantWith(preds ...predicate.Tenant) predicate.EnrollmentToken
- func ID(id int) predicate.EnrollmentToken
- func IDEQ(id int) predicate.EnrollmentToken
- func IDGT(id int) predicate.EnrollmentToken
- func IDGTE(id int) predicate.EnrollmentToken
- func IDIn(ids ...int) predicate.EnrollmentToken
- func IDLT(id int) predicate.EnrollmentToken
- func IDLTE(id int) predicate.EnrollmentToken
- func IDNEQ(id int) predicate.EnrollmentToken
- func IDNotIn(ids ...int) predicate.EnrollmentToken
- func MaxUses(v int) predicate.EnrollmentToken
- func MaxUsesEQ(v int) predicate.EnrollmentToken
- func MaxUsesGT(v int) predicate.EnrollmentToken
- func MaxUsesGTE(v int) predicate.EnrollmentToken
- func MaxUsesIn(vs ...int) predicate.EnrollmentToken
- func MaxUsesLT(v int) predicate.EnrollmentToken
- func MaxUsesLTE(v int) predicate.EnrollmentToken
- func MaxUsesNEQ(v int) predicate.EnrollmentToken
- func MaxUsesNotIn(vs ...int) predicate.EnrollmentToken
- func Modified(v time.Time) predicate.EnrollmentToken
- func ModifiedEQ(v time.Time) predicate.EnrollmentToken
- func ModifiedGT(v time.Time) predicate.EnrollmentToken
- func ModifiedGTE(v time.Time) predicate.EnrollmentToken
- func ModifiedIn(vs ...time.Time) predicate.EnrollmentToken
- func ModifiedIsNil() predicate.EnrollmentToken
- func ModifiedLT(v time.Time) predicate.EnrollmentToken
- func ModifiedLTE(v time.Time) predicate.EnrollmentToken
- func ModifiedNEQ(v time.Time) predicate.EnrollmentToken
- func ModifiedNotIn(vs ...time.Time) predicate.EnrollmentToken
- func ModifiedNotNil() predicate.EnrollmentToken
- func Not(p predicate.EnrollmentToken) predicate.EnrollmentToken
- func Or(predicates ...predicate.EnrollmentToken) predicate.EnrollmentToken
- func Token(v string) predicate.EnrollmentToken
- func TokenContains(v string) predicate.EnrollmentToken
- func TokenContainsFold(v string) predicate.EnrollmentToken
- func TokenEQ(v string) predicate.EnrollmentToken
- func TokenEqualFold(v string) predicate.EnrollmentToken
- func TokenGT(v string) predicate.EnrollmentToken
- func TokenGTE(v string) predicate.EnrollmentToken
- func TokenHasPrefix(v string) predicate.EnrollmentToken
- func TokenHasSuffix(v string) predicate.EnrollmentToken
- func TokenIn(vs ...string) predicate.EnrollmentToken
- func TokenLT(v string) predicate.EnrollmentToken
- func TokenLTE(v string) predicate.EnrollmentToken
- func TokenNEQ(v string) predicate.EnrollmentToken
- func TokenNotIn(vs ...string) predicate.EnrollmentToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByCurrentUses(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxUses(opts ...sql.OrderTermOption) OrderOption
- func ByModified(opts ...sql.OrderTermOption) OrderOption
- func BySiteField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the enrollmenttoken type in the database. Label = "enrollment_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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldMaxUses holds the string denoting the max_uses field in the database. FieldMaxUses = "max_uses" // FieldCurrentUses holds the string denoting the current_uses field in the database. FieldCurrentUses = "current_uses" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldModified holds the string denoting the modified field in the database. FieldModified = "modified" // EdgeTenant holds the string denoting the tenant edge name in mutations. EdgeTenant = "tenant" // EdgeSite holds the string denoting the site edge name in mutations. EdgeSite = "site" // Table holds the table name of the enrollmenttoken in the database. Table = "enrollment_tokens" // TenantTable is the table that holds the tenant relation/edge. TenantTable = "enrollment_tokens" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "tenant_enrollment_tokens" // SiteTable is the table that holds the site relation/edge. SiteTable = "enrollment_tokens" // SiteInverseTable is the table name for the Site entity. // It exists in this package in order to avoid circular dependency with the "site" package. SiteInverseTable = "sites" // SiteColumn is the table column denoting the site relation/edge. SiteColumn = "site_enrollment_tokens" )
Variables ¶
var ( // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error // DefaultMaxUses holds the default value on creation for the "max_uses" field. DefaultMaxUses int // DefaultCurrentUses holds the default value on creation for the "current_uses" field. DefaultCurrentUses int // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultModified holds the default value on creation for the "modified" field. DefaultModified func() time.Time // UpdateDefaultModified holds the default value on update for the "modified" field. UpdateDefaultModified func() time.Time )
var Columns = []string{ FieldID, FieldToken, FieldDescription, FieldMaxUses, FieldCurrentUses, FieldExpiresAt, FieldActive, FieldCreated, FieldModified, }
Columns holds all SQL columns for enrollmenttoken fields.
var ForeignKeys = []string{
"site_enrollment_tokens",
"tenant_enrollment_tokens",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "enrollment_tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func Active ¶
func Active(v bool) predicate.EnrollmentToken
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func ActiveEQ ¶
func ActiveEQ(v bool) predicate.EnrollmentToken
ActiveEQ applies the EQ predicate on the "active" field.
func ActiveNEQ ¶
func ActiveNEQ(v bool) predicate.EnrollmentToken
ActiveNEQ applies the NEQ predicate on the "active" field.
func And ¶
func And(predicates ...predicate.EnrollmentToken) predicate.EnrollmentToken
And groups predicates with the AND operator between them.
func Created ¶
func Created(v time.Time) predicate.EnrollmentToken
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedEQ ¶
func CreatedEQ(v time.Time) predicate.EnrollmentToken
CreatedEQ applies the EQ predicate on the "created" field.
func CreatedGT ¶
func CreatedGT(v time.Time) predicate.EnrollmentToken
CreatedGT applies the GT predicate on the "created" field.
func CreatedGTE ¶
func CreatedGTE(v time.Time) predicate.EnrollmentToken
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIn ¶
func CreatedIn(vs ...time.Time) predicate.EnrollmentToken
CreatedIn applies the In predicate on the "created" field.
func CreatedIsNil ¶
func CreatedIsNil() predicate.EnrollmentToken
CreatedIsNil applies the IsNil predicate on the "created" field.
func CreatedLT ¶
func CreatedLT(v time.Time) predicate.EnrollmentToken
CreatedLT applies the LT predicate on the "created" field.
func CreatedLTE ¶
func CreatedLTE(v time.Time) predicate.EnrollmentToken
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
func CreatedNEQ(v time.Time) predicate.EnrollmentToken
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
func CreatedNotIn(vs ...time.Time) predicate.EnrollmentToken
CreatedNotIn applies the NotIn predicate on the "created" field.
func CreatedNotNil ¶
func CreatedNotNil() predicate.EnrollmentToken
CreatedNotNil applies the NotNil predicate on the "created" field.
func CurrentUses ¶
func CurrentUses(v int) predicate.EnrollmentToken
CurrentUses applies equality check predicate on the "current_uses" field. It's identical to CurrentUsesEQ.
func CurrentUsesEQ ¶
func CurrentUsesEQ(v int) predicate.EnrollmentToken
CurrentUsesEQ applies the EQ predicate on the "current_uses" field.
func CurrentUsesGT ¶
func CurrentUsesGT(v int) predicate.EnrollmentToken
CurrentUsesGT applies the GT predicate on the "current_uses" field.
func CurrentUsesGTE ¶
func CurrentUsesGTE(v int) predicate.EnrollmentToken
CurrentUsesGTE applies the GTE predicate on the "current_uses" field.
func CurrentUsesIn ¶
func CurrentUsesIn(vs ...int) predicate.EnrollmentToken
CurrentUsesIn applies the In predicate on the "current_uses" field.
func CurrentUsesLT ¶
func CurrentUsesLT(v int) predicate.EnrollmentToken
CurrentUsesLT applies the LT predicate on the "current_uses" field.
func CurrentUsesLTE ¶
func CurrentUsesLTE(v int) predicate.EnrollmentToken
CurrentUsesLTE applies the LTE predicate on the "current_uses" field.
func CurrentUsesNEQ ¶
func CurrentUsesNEQ(v int) predicate.EnrollmentToken
CurrentUsesNEQ applies the NEQ predicate on the "current_uses" field.
func CurrentUsesNotIn ¶
func CurrentUsesNotIn(vs ...int) predicate.EnrollmentToken
CurrentUsesNotIn applies the NotIn predicate on the "current_uses" field.
func Description ¶
func Description(v string) predicate.EnrollmentToken
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.EnrollmentToken
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.EnrollmentToken
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.EnrollmentToken
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.EnrollmentToken
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.EnrollmentToken
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.EnrollmentToken
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.EnrollmentToken
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.EnrollmentToken
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.EnrollmentToken
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.EnrollmentToken
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.EnrollmentToken
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.EnrollmentToken
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.EnrollmentToken
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.EnrollmentToken
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.EnrollmentToken
DescriptionNotNil applies the NotNil predicate on the "description" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.EnrollmentToken
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.EnrollmentToken
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.EnrollmentToken
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.EnrollmentToken
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.EnrollmentToken
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
func ExpiresAtIsNil() predicate.EnrollmentToken
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.EnrollmentToken
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.EnrollmentToken
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.EnrollmentToken
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.EnrollmentToken
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
func ExpiresAtNotNil() predicate.EnrollmentToken
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasSite ¶
func HasSite() predicate.EnrollmentToken
HasSite applies the HasEdge predicate on the "site" edge.
func HasSiteWith ¶
func HasSiteWith(preds ...predicate.Site) predicate.EnrollmentToken
HasSiteWith applies the HasEdge predicate on the "site" edge with a given conditions (other predicates).
func HasTenant ¶
func HasTenant() predicate.EnrollmentToken
HasTenant applies the HasEdge predicate on the "tenant" edge.
func HasTenantWith ¶
func HasTenantWith(preds ...predicate.Tenant) predicate.EnrollmentToken
HasTenantWith applies the HasEdge predicate on the "tenant" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.EnrollmentToken
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.EnrollmentToken
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.EnrollmentToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.EnrollmentToken
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.EnrollmentToken
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.EnrollmentToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.EnrollmentToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.EnrollmentToken
IDNotIn applies the NotIn predicate on the ID field.
func MaxUses ¶
func MaxUses(v int) predicate.EnrollmentToken
MaxUses applies equality check predicate on the "max_uses" field. It's identical to MaxUsesEQ.
func MaxUsesEQ ¶
func MaxUsesEQ(v int) predicate.EnrollmentToken
MaxUsesEQ applies the EQ predicate on the "max_uses" field.
func MaxUsesGT ¶
func MaxUsesGT(v int) predicate.EnrollmentToken
MaxUsesGT applies the GT predicate on the "max_uses" field.
func MaxUsesGTE ¶
func MaxUsesGTE(v int) predicate.EnrollmentToken
MaxUsesGTE applies the GTE predicate on the "max_uses" field.
func MaxUsesIn ¶
func MaxUsesIn(vs ...int) predicate.EnrollmentToken
MaxUsesIn applies the In predicate on the "max_uses" field.
func MaxUsesLT ¶
func MaxUsesLT(v int) predicate.EnrollmentToken
MaxUsesLT applies the LT predicate on the "max_uses" field.
func MaxUsesLTE ¶
func MaxUsesLTE(v int) predicate.EnrollmentToken
MaxUsesLTE applies the LTE predicate on the "max_uses" field.
func MaxUsesNEQ ¶
func MaxUsesNEQ(v int) predicate.EnrollmentToken
MaxUsesNEQ applies the NEQ predicate on the "max_uses" field.
func MaxUsesNotIn ¶
func MaxUsesNotIn(vs ...int) predicate.EnrollmentToken
MaxUsesNotIn applies the NotIn predicate on the "max_uses" field.
func Modified ¶
func Modified(v time.Time) predicate.EnrollmentToken
Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
func ModifiedEQ ¶
func ModifiedEQ(v time.Time) predicate.EnrollmentToken
ModifiedEQ applies the EQ predicate on the "modified" field.
func ModifiedGT ¶
func ModifiedGT(v time.Time) predicate.EnrollmentToken
ModifiedGT applies the GT predicate on the "modified" field.
func ModifiedGTE ¶
func ModifiedGTE(v time.Time) predicate.EnrollmentToken
ModifiedGTE applies the GTE predicate on the "modified" field.
func ModifiedIn ¶
func ModifiedIn(vs ...time.Time) predicate.EnrollmentToken
ModifiedIn applies the In predicate on the "modified" field.
func ModifiedIsNil ¶
func ModifiedIsNil() predicate.EnrollmentToken
ModifiedIsNil applies the IsNil predicate on the "modified" field.
func ModifiedLT ¶
func ModifiedLT(v time.Time) predicate.EnrollmentToken
ModifiedLT applies the LT predicate on the "modified" field.
func ModifiedLTE ¶
func ModifiedLTE(v time.Time) predicate.EnrollmentToken
ModifiedLTE applies the LTE predicate on the "modified" field.
func ModifiedNEQ ¶
func ModifiedNEQ(v time.Time) predicate.EnrollmentToken
ModifiedNEQ applies the NEQ predicate on the "modified" field.
func ModifiedNotIn ¶
func ModifiedNotIn(vs ...time.Time) predicate.EnrollmentToken
ModifiedNotIn applies the NotIn predicate on the "modified" field.
func ModifiedNotNil ¶
func ModifiedNotNil() predicate.EnrollmentToken
ModifiedNotNil applies the NotNil predicate on the "modified" field.
func Not ¶
func Not(p predicate.EnrollmentToken) predicate.EnrollmentToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.EnrollmentToken) predicate.EnrollmentToken
Or groups predicates with the OR operator between them.
func Token ¶
func Token(v string) predicate.EnrollmentToken
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
func TokenContains(v string) predicate.EnrollmentToken
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
func TokenContainsFold(v string) predicate.EnrollmentToken
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEQ ¶
func TokenEQ(v string) predicate.EnrollmentToken
TokenEQ applies the EQ predicate on the "token" field.
func TokenEqualFold ¶
func TokenEqualFold(v string) predicate.EnrollmentToken
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenGT ¶
func TokenGT(v string) predicate.EnrollmentToken
TokenGT applies the GT predicate on the "token" field.
func TokenGTE ¶
func TokenGTE(v string) predicate.EnrollmentToken
TokenGTE applies the GTE predicate on the "token" field.
func TokenHasPrefix ¶
func TokenHasPrefix(v string) predicate.EnrollmentToken
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
func TokenHasSuffix(v string) predicate.EnrollmentToken
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenIn ¶
func TokenIn(vs ...string) predicate.EnrollmentToken
TokenIn applies the In predicate on the "token" field.
func TokenLT ¶
func TokenLT(v string) predicate.EnrollmentToken
TokenLT applies the LT predicate on the "token" field.
func TokenLTE ¶
func TokenLTE(v string) predicate.EnrollmentToken
TokenLTE applies the LTE predicate on the "token" field.
func TokenNEQ ¶
func TokenNEQ(v string) predicate.EnrollmentToken
TokenNEQ applies the NEQ predicate on the "token" field.
func TokenNotIn ¶
func TokenNotIn(vs ...string) predicate.EnrollmentToken
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the EnrollmentToken queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByCreated ¶
func ByCreated(opts ...sql.OrderTermOption) OrderOption
ByCreated orders the results by the created field.
func ByCurrentUses ¶
func ByCurrentUses(opts ...sql.OrderTermOption) OrderOption
ByCurrentUses orders the results by the current_uses field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description 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 ByMaxUses ¶
func ByMaxUses(opts ...sql.OrderTermOption) OrderOption
ByMaxUses orders the results by the max_uses field.
func ByModified ¶
func ByModified(opts ...sql.OrderTermOption) OrderOption
ByModified orders the results by the modified field.
func BySiteField ¶
func BySiteField(field string, opts ...sql.OrderTermOption) OrderOption
BySiteField orders the results by site field.
func ByTenantField ¶
func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
ByTenantField orders the results by tenant field.
func ByToken ¶
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.