Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.APIToken) predicate.APIToken
- func CreatedAt(v time.Time) predicate.APIToken
- func CreatedAtEQ(v time.Time) predicate.APIToken
- func CreatedAtGT(v time.Time) predicate.APIToken
- func CreatedAtGTE(v time.Time) predicate.APIToken
- func CreatedAtIn(vs ...time.Time) predicate.APIToken
- func CreatedAtLT(v time.Time) predicate.APIToken
- func CreatedAtLTE(v time.Time) predicate.APIToken
- func CreatedAtNEQ(v time.Time) predicate.APIToken
- func CreatedAtNotIn(vs ...time.Time) predicate.APIToken
- func Description(v string) predicate.APIToken
- func DescriptionContains(v string) predicate.APIToken
- func DescriptionContainsFold(v string) predicate.APIToken
- func DescriptionEQ(v string) predicate.APIToken
- func DescriptionEqualFold(v string) predicate.APIToken
- func DescriptionGT(v string) predicate.APIToken
- func DescriptionGTE(v string) predicate.APIToken
- func DescriptionHasPrefix(v string) predicate.APIToken
- func DescriptionHasSuffix(v string) predicate.APIToken
- func DescriptionIn(vs ...string) predicate.APIToken
- func DescriptionIsNil() predicate.APIToken
- func DescriptionLT(v string) predicate.APIToken
- func DescriptionLTE(v string) predicate.APIToken
- func DescriptionNEQ(v string) predicate.APIToken
- func DescriptionNotIn(vs ...string) predicate.APIToken
- func DescriptionNotNil() predicate.APIToken
- func ExpiresAt(v time.Time) predicate.APIToken
- func ExpiresAtEQ(v time.Time) predicate.APIToken
- func ExpiresAtGT(v time.Time) predicate.APIToken
- func ExpiresAtGTE(v time.Time) predicate.APIToken
- func ExpiresAtIn(vs ...time.Time) predicate.APIToken
- func ExpiresAtIsNil() predicate.APIToken
- func ExpiresAtLT(v time.Time) predicate.APIToken
- func ExpiresAtLTE(v time.Time) predicate.APIToken
- func ExpiresAtNEQ(v time.Time) predicate.APIToken
- func ExpiresAtNotIn(vs ...time.Time) predicate.APIToken
- func ExpiresAtNotNil() predicate.APIToken
- func HasOrganization() predicate.APIToken
- func HasOrganizationWith(preds ...predicate.Organization) predicate.APIToken
- func ID(id uuid.UUID) predicate.APIToken
- func IDEQ(id uuid.UUID) predicate.APIToken
- func IDGT(id uuid.UUID) predicate.APIToken
- func IDGTE(id uuid.UUID) predicate.APIToken
- func IDIn(ids ...uuid.UUID) predicate.APIToken
- func IDLT(id uuid.UUID) predicate.APIToken
- func IDLTE(id uuid.UUID) predicate.APIToken
- func IDNEQ(id uuid.UUID) predicate.APIToken
- func IDNotIn(ids ...uuid.UUID) predicate.APIToken
- func Not(p predicate.APIToken) predicate.APIToken
- func Or(predicates ...predicate.APIToken) predicate.APIToken
- func OrganizationID(v uuid.UUID) predicate.APIToken
- func OrganizationIDEQ(v uuid.UUID) predicate.APIToken
- func OrganizationIDIn(vs ...uuid.UUID) predicate.APIToken
- func OrganizationIDNEQ(v uuid.UUID) predicate.APIToken
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.APIToken
- func RevokedAt(v time.Time) predicate.APIToken
- func RevokedAtEQ(v time.Time) predicate.APIToken
- func RevokedAtGT(v time.Time) predicate.APIToken
- func RevokedAtGTE(v time.Time) predicate.APIToken
- func RevokedAtIn(vs ...time.Time) predicate.APIToken
- func RevokedAtIsNil() predicate.APIToken
- func RevokedAtLT(v time.Time) predicate.APIToken
- func RevokedAtLTE(v time.Time) predicate.APIToken
- func RevokedAtNEQ(v time.Time) predicate.APIToken
- func RevokedAtNotIn(vs ...time.Time) predicate.APIToken
- func RevokedAtNotNil() predicate.APIToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the apitoken type in the database. Label = "api_token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldRevokedAt holds the string denoting the revoked_at field in the database. FieldRevokedAt = "revoked_at" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // Table holds the table name of the apitoken in the database. Table = "api_tokens" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "api_tokens" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" )
Variables ¶
var ( // 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, FieldDescription, FieldCreatedAt, FieldExpiresAt, FieldRevokedAt, FieldOrganizationID, }
Columns holds all SQL columns for apitoken fields.
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasOrganization ¶
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.APIToken
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func RevokedAt ¶
RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.
func RevokedAtEQ ¶
RevokedAtEQ applies the EQ predicate on the "revoked_at" field.
func RevokedAtGT ¶
RevokedAtGT applies the GT predicate on the "revoked_at" field.
func RevokedAtGTE ¶
RevokedAtGTE applies the GTE predicate on the "revoked_at" field.
func RevokedAtIn ¶
RevokedAtIn applies the In predicate on the "revoked_at" field.
func RevokedAtIsNil ¶
RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.
func RevokedAtLT ¶
RevokedAtLT applies the LT predicate on the "revoked_at" field.
func RevokedAtLTE ¶
RevokedAtLTE applies the LTE predicate on the "revoked_at" field.
func RevokedAtNEQ ¶
RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.
func RevokedAtNotIn ¶
RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.
func RevokedAtNotNil ¶
RevokedAtNotNil applies the NotNil predicate on the "revoked_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 APIToken queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByRevokedAt ¶
func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
ByRevokedAt orders the results by the revoked_at field.