apikey

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the apikey type in the database.
	Label = "api_key"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedByID holds the string denoting the created_by_id field in the database.
	FieldCreatedByID = "created_by_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedByID holds the string denoting the updated_by_id field in the database.
	FieldUpdatedByID = "updated_by_id"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedByID holds the string denoting the deleted_by_id field in the database.
	FieldDeletedByID = "deleted_by_id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldPublishedAt holds the string denoting the published_at field in the database.
	FieldPublishedAt = "published_at"
	// FieldArchivedAt holds the string denoting the archived_at field in the database.
	FieldArchivedAt = "archived_at"
	// FieldOwnerDomainID holds the string denoting the owner_domain_id field in the database.
	FieldOwnerDomainID = "owner_domain_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldSecretHash holds the string denoting the secret_hash field in the database.
	FieldSecretHash = "secret_hash"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldPermissions holds the string denoting the permissions field in the database.
	FieldPermissions = "permissions"
	// FieldDataFilters holds the string denoting the data_filters field in the database.
	FieldDataFilters = "data_filters"
	// FieldRateLimit holds the string denoting the rate_limit field in the database.
	FieldRateLimit = "rate_limit"
	// FieldDailyLimit holds the string denoting the daily_limit field in the database.
	FieldDailyLimit = "daily_limit"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldUsageCount holds the string denoting the usage_count field in the database.
	FieldUsageCount = "usage_count"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// FieldLastUsedIP holds the string denoting the last_used_ip field in the database.
	FieldLastUsedIP = "last_used_ip"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeRole holds the string denoting the role edge name in mutations.
	EdgeRole = "role"
	// Table holds the table name of the apikey in the database.
	Table = "api_keys"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "api_keys"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_api_keys"
	// RoleTable is the table that holds the role relation/edge.
	RoleTable = "api_keys"
	// RoleInverseTable is the table name for the Role entity.
	// It exists in this package in order to avoid circular dependency with the "role" package.
	RoleInverseTable = "roles"
	// RoleColumn is the table column denoting the role relation/edge.
	RoleColumn = "api_key_role"
)

Variables

View Source
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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// SecretHashValidator is a validator for the "secret_hash" field. It is called by the builders before save.
	SecretHashValidator func(string) error
	// DefaultRateLimit holds the default value on creation for the "rate_limit" field.
	DefaultRateLimit int
	// DefaultDailyLimit holds the default value on creation for the "daily_limit" field.
	DefaultDailyLimit int
	// DefaultUsageCount holds the default value on creation for the "usage_count" field.
	DefaultUsageCount int64
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for apikey fields.

View Source
var ForeignKeys = []string{
	"api_key_role",
	"role_api_keys",
	"user_api_keys",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "api_keys" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.ApiKey) predicate.ApiKey

And groups predicates with the AND operator between them.

func ArchivedAt

func ArchivedAt(v time.Time) predicate.ApiKey

ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.

func ArchivedAtEQ

func ArchivedAtEQ(v time.Time) predicate.ApiKey

ArchivedAtEQ applies the EQ predicate on the "archived_at" field.

func ArchivedAtGT

func ArchivedAtGT(v time.Time) predicate.ApiKey

ArchivedAtGT applies the GT predicate on the "archived_at" field.

func ArchivedAtGTE

func ArchivedAtGTE(v time.Time) predicate.ApiKey

ArchivedAtGTE applies the GTE predicate on the "archived_at" field.

func ArchivedAtIn

func ArchivedAtIn(vs ...time.Time) predicate.ApiKey

ArchivedAtIn applies the In predicate on the "archived_at" field.

func ArchivedAtIsNil

func ArchivedAtIsNil() predicate.ApiKey

ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.

func ArchivedAtLT

func ArchivedAtLT(v time.Time) predicate.ApiKey

ArchivedAtLT applies the LT predicate on the "archived_at" field.

func ArchivedAtLTE

func ArchivedAtLTE(v time.Time) predicate.ApiKey

ArchivedAtLTE applies the LTE predicate on the "archived_at" field.

func ArchivedAtNEQ

func ArchivedAtNEQ(v time.Time) predicate.ApiKey

ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.

func ArchivedAtNotIn

func ArchivedAtNotIn(vs ...time.Time) predicate.ApiKey

ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.

func ArchivedAtNotNil

func ArchivedAtNotNil() predicate.ApiKey

ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ApiKey

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ApiKey

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ApiKey

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ApiKey

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ApiKey

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.ApiKey

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ApiKey

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ApiKey

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ApiKey

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ApiKey

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.ApiKey

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedByID

func CreatedByID(v uuid.UUID) predicate.ApiKey

CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.

func CreatedByIDEQ

func CreatedByIDEQ(v uuid.UUID) predicate.ApiKey

CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.

func CreatedByIDGT

func CreatedByIDGT(v uuid.UUID) predicate.ApiKey

CreatedByIDGT applies the GT predicate on the "created_by_id" field.

func CreatedByIDGTE

func CreatedByIDGTE(v uuid.UUID) predicate.ApiKey

CreatedByIDGTE applies the GTE predicate on the "created_by_id" field.

func CreatedByIDIn

func CreatedByIDIn(vs ...uuid.UUID) predicate.ApiKey

CreatedByIDIn applies the In predicate on the "created_by_id" field.

func CreatedByIDIsNil

func CreatedByIDIsNil() predicate.ApiKey

CreatedByIDIsNil applies the IsNil predicate on the "created_by_id" field.

func CreatedByIDLT

func CreatedByIDLT(v uuid.UUID) predicate.ApiKey

CreatedByIDLT applies the LT predicate on the "created_by_id" field.

func CreatedByIDLTE

func CreatedByIDLTE(v uuid.UUID) predicate.ApiKey

CreatedByIDLTE applies the LTE predicate on the "created_by_id" field.

func CreatedByIDNEQ

func CreatedByIDNEQ(v uuid.UUID) predicate.ApiKey

CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.

func CreatedByIDNotIn

func CreatedByIDNotIn(vs ...uuid.UUID) predicate.ApiKey

CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.

func CreatedByIDNotNil

func CreatedByIDNotNil() predicate.ApiKey

CreatedByIDNotNil applies the NotNil predicate on the "created_by_id" field.

func DailyLimit

func DailyLimit(v int) predicate.ApiKey

DailyLimit applies equality check predicate on the "daily_limit" field. It's identical to DailyLimitEQ.

func DailyLimitEQ

func DailyLimitEQ(v int) predicate.ApiKey

DailyLimitEQ applies the EQ predicate on the "daily_limit" field.

func DailyLimitGT

func DailyLimitGT(v int) predicate.ApiKey

DailyLimitGT applies the GT predicate on the "daily_limit" field.

func DailyLimitGTE

func DailyLimitGTE(v int) predicate.ApiKey

DailyLimitGTE applies the GTE predicate on the "daily_limit" field.

func DailyLimitIn

func DailyLimitIn(vs ...int) predicate.ApiKey

DailyLimitIn applies the In predicate on the "daily_limit" field.

func DailyLimitLT

func DailyLimitLT(v int) predicate.ApiKey

DailyLimitLT applies the LT predicate on the "daily_limit" field.

func DailyLimitLTE

func DailyLimitLTE(v int) predicate.ApiKey

DailyLimitLTE applies the LTE predicate on the "daily_limit" field.

func DailyLimitNEQ

func DailyLimitNEQ(v int) predicate.ApiKey

DailyLimitNEQ applies the NEQ predicate on the "daily_limit" field.

func DailyLimitNotIn

func DailyLimitNotIn(vs ...int) predicate.ApiKey

DailyLimitNotIn applies the NotIn predicate on the "daily_limit" field.

func DataFiltersIsNil

func DataFiltersIsNil() predicate.ApiKey

DataFiltersIsNil applies the IsNil predicate on the "data_filters" field.

func DataFiltersNotNil

func DataFiltersNotNil() predicate.ApiKey

DataFiltersNotNil applies the NotNil predicate on the "data_filters" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.ApiKey

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.ApiKey

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.ApiKey

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.ApiKey

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.ApiKey

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.ApiKey

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.ApiKey

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.ApiKey

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.ApiKey

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.ApiKey

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.ApiKey

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedByID

func DeletedByID(v uuid.UUID) predicate.ApiKey

DeletedByID applies equality check predicate on the "deleted_by_id" field. It's identical to DeletedByIDEQ.

func DeletedByIDEQ

func DeletedByIDEQ(v uuid.UUID) predicate.ApiKey

DeletedByIDEQ applies the EQ predicate on the "deleted_by_id" field.

func DeletedByIDGT

func DeletedByIDGT(v uuid.UUID) predicate.ApiKey

DeletedByIDGT applies the GT predicate on the "deleted_by_id" field.

func DeletedByIDGTE

func DeletedByIDGTE(v uuid.UUID) predicate.ApiKey

DeletedByIDGTE applies the GTE predicate on the "deleted_by_id" field.

func DeletedByIDIn

func DeletedByIDIn(vs ...uuid.UUID) predicate.ApiKey

DeletedByIDIn applies the In predicate on the "deleted_by_id" field.

func DeletedByIDIsNil

func DeletedByIDIsNil() predicate.ApiKey

DeletedByIDIsNil applies the IsNil predicate on the "deleted_by_id" field.

func DeletedByIDLT

func DeletedByIDLT(v uuid.UUID) predicate.ApiKey

DeletedByIDLT applies the LT predicate on the "deleted_by_id" field.

func DeletedByIDLTE

func DeletedByIDLTE(v uuid.UUID) predicate.ApiKey

DeletedByIDLTE applies the LTE predicate on the "deleted_by_id" field.

func DeletedByIDNEQ

func DeletedByIDNEQ(v uuid.UUID) predicate.ApiKey

DeletedByIDNEQ applies the NEQ predicate on the "deleted_by_id" field.

func DeletedByIDNotIn

func DeletedByIDNotIn(vs ...uuid.UUID) predicate.ApiKey

DeletedByIDNotIn applies the NotIn predicate on the "deleted_by_id" field.

func DeletedByIDNotNil

func DeletedByIDNotNil() predicate.ApiKey

DeletedByIDNotNil applies the NotNil predicate on the "deleted_by_id" field.

func Description

func Description(v string) predicate.ApiKey

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.ApiKey

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ApiKey

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.ApiKey

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ApiKey

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.ApiKey

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.ApiKey

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ApiKey

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ApiKey

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.ApiKey

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.ApiKey

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ApiKey

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.ApiKey

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ApiKey

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.ApiKey

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.ApiKey

DescriptionNotNil applies the NotNil predicate on the "description" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.ApiKey

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.ApiKey

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.ApiKey

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.ApiKey

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.ApiKey

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.ApiKey

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.ApiKey

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.ApiKey

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.ApiKey

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.ApiKey

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.ApiKey

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasOwner

func HasOwner() predicate.ApiKey

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.ApiKey

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasRole

func HasRole() predicate.ApiKey

HasRole applies the HasEdge predicate on the "role" edge.

func HasRoleWith

func HasRoleWith(preds ...predicate.Role) predicate.ApiKey

HasRoleWith applies the HasEdge predicate on the "role" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.ApiKey

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ApiKey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ApiKey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ApiKey

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ApiKey

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ApiKey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ApiKey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ApiKey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ApiKey

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.ApiKey

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.ApiKey

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.ApiKey

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func Key

func Key(v string) predicate.ApiKey

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.ApiKey

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.ApiKey

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.ApiKey

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.ApiKey

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.ApiKey

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.ApiKey

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.ApiKey

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.ApiKey

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.ApiKey

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.ApiKey

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.ApiKey

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.ApiKey

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.ApiKey

KeyNotIn applies the NotIn predicate on the "key" field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.ApiKey

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.ApiKey

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.ApiKey

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.ApiKey

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.ApiKey

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.ApiKey

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.ApiKey

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.ApiKey

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.ApiKey

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.ApiKey

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.ApiKey

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func LastUsedIP

func LastUsedIP(v string) predicate.ApiKey

LastUsedIP applies equality check predicate on the "last_used_ip" field. It's identical to LastUsedIPEQ.

func LastUsedIPContains

func LastUsedIPContains(v string) predicate.ApiKey

LastUsedIPContains applies the Contains predicate on the "last_used_ip" field.

func LastUsedIPContainsFold

func LastUsedIPContainsFold(v string) predicate.ApiKey

LastUsedIPContainsFold applies the ContainsFold predicate on the "last_used_ip" field.

func LastUsedIPEQ

func LastUsedIPEQ(v string) predicate.ApiKey

LastUsedIPEQ applies the EQ predicate on the "last_used_ip" field.

func LastUsedIPEqualFold

func LastUsedIPEqualFold(v string) predicate.ApiKey

LastUsedIPEqualFold applies the EqualFold predicate on the "last_used_ip" field.

func LastUsedIPGT

func LastUsedIPGT(v string) predicate.ApiKey

LastUsedIPGT applies the GT predicate on the "last_used_ip" field.

func LastUsedIPGTE

func LastUsedIPGTE(v string) predicate.ApiKey

LastUsedIPGTE applies the GTE predicate on the "last_used_ip" field.

func LastUsedIPHasPrefix

func LastUsedIPHasPrefix(v string) predicate.ApiKey

LastUsedIPHasPrefix applies the HasPrefix predicate on the "last_used_ip" field.

func LastUsedIPHasSuffix

func LastUsedIPHasSuffix(v string) predicate.ApiKey

LastUsedIPHasSuffix applies the HasSuffix predicate on the "last_used_ip" field.

func LastUsedIPIn

func LastUsedIPIn(vs ...string) predicate.ApiKey

LastUsedIPIn applies the In predicate on the "last_used_ip" field.

func LastUsedIPIsNil

func LastUsedIPIsNil() predicate.ApiKey

LastUsedIPIsNil applies the IsNil predicate on the "last_used_ip" field.

func LastUsedIPLT

func LastUsedIPLT(v string) predicate.ApiKey

LastUsedIPLT applies the LT predicate on the "last_used_ip" field.

func LastUsedIPLTE

func LastUsedIPLTE(v string) predicate.ApiKey

LastUsedIPLTE applies the LTE predicate on the "last_used_ip" field.

func LastUsedIPNEQ

func LastUsedIPNEQ(v string) predicate.ApiKey

LastUsedIPNEQ applies the NEQ predicate on the "last_used_ip" field.

func LastUsedIPNotIn

func LastUsedIPNotIn(vs ...string) predicate.ApiKey

LastUsedIPNotIn applies the NotIn predicate on the "last_used_ip" field.

func LastUsedIPNotNil

func LastUsedIPNotNil() predicate.ApiKey

LastUsedIPNotNil applies the NotNil predicate on the "last_used_ip" field.

func Name

func Name(v string) predicate.ApiKey

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.ApiKey

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.ApiKey

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.ApiKey

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.ApiKey

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.ApiKey

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.ApiKey

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.ApiKey

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.ApiKey

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.ApiKey

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.ApiKey

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.ApiKey

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.ApiKey

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.ApiKey

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ApiKey) predicate.ApiKey

Or groups predicates with the OR operator between them.

func OwnerDomainID

func OwnerDomainID(v uuid.UUID) predicate.ApiKey

OwnerDomainID applies equality check predicate on the "owner_domain_id" field. It's identical to OwnerDomainIDEQ.

func OwnerDomainIDEQ

func OwnerDomainIDEQ(v uuid.UUID) predicate.ApiKey

OwnerDomainIDEQ applies the EQ predicate on the "owner_domain_id" field.

func OwnerDomainIDGT

func OwnerDomainIDGT(v uuid.UUID) predicate.ApiKey

OwnerDomainIDGT applies the GT predicate on the "owner_domain_id" field.

func OwnerDomainIDGTE

func OwnerDomainIDGTE(v uuid.UUID) predicate.ApiKey

OwnerDomainIDGTE applies the GTE predicate on the "owner_domain_id" field.

func OwnerDomainIDIn

func OwnerDomainIDIn(vs ...uuid.UUID) predicate.ApiKey

OwnerDomainIDIn applies the In predicate on the "owner_domain_id" field.

func OwnerDomainIDIsNil

func OwnerDomainIDIsNil() predicate.ApiKey

OwnerDomainIDIsNil applies the IsNil predicate on the "owner_domain_id" field.

func OwnerDomainIDLT

func OwnerDomainIDLT(v uuid.UUID) predicate.ApiKey

OwnerDomainIDLT applies the LT predicate on the "owner_domain_id" field.

func OwnerDomainIDLTE

func OwnerDomainIDLTE(v uuid.UUID) predicate.ApiKey

OwnerDomainIDLTE applies the LTE predicate on the "owner_domain_id" field.

func OwnerDomainIDNEQ

func OwnerDomainIDNEQ(v uuid.UUID) predicate.ApiKey

OwnerDomainIDNEQ applies the NEQ predicate on the "owner_domain_id" field.

func OwnerDomainIDNotIn

func OwnerDomainIDNotIn(vs ...uuid.UUID) predicate.ApiKey

OwnerDomainIDNotIn applies the NotIn predicate on the "owner_domain_id" field.

func OwnerDomainIDNotNil

func OwnerDomainIDNotNil() predicate.ApiKey

OwnerDomainIDNotNil applies the NotNil predicate on the "owner_domain_id" field.

func PermissionsIsNil

func PermissionsIsNil() predicate.ApiKey

PermissionsIsNil applies the IsNil predicate on the "permissions" field.

func PermissionsNotNil

func PermissionsNotNil() predicate.ApiKey

PermissionsNotNil applies the NotNil predicate on the "permissions" field.

func ProjectID

func ProjectID(v uuid.UUID) predicate.ApiKey

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDEQ

func ProjectIDEQ(v uuid.UUID) predicate.ApiKey

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDGT

func ProjectIDGT(v uuid.UUID) predicate.ApiKey

ProjectIDGT applies the GT predicate on the "project_id" field.

func ProjectIDGTE

func ProjectIDGTE(v uuid.UUID) predicate.ApiKey

ProjectIDGTE applies the GTE predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...uuid.UUID) predicate.ApiKey

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDIsNil

func ProjectIDIsNil() predicate.ApiKey

ProjectIDIsNil applies the IsNil predicate on the "project_id" field.

func ProjectIDLT

func ProjectIDLT(v uuid.UUID) predicate.ApiKey

ProjectIDLT applies the LT predicate on the "project_id" field.

func ProjectIDLTE

func ProjectIDLTE(v uuid.UUID) predicate.ApiKey

ProjectIDLTE applies the LTE predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v uuid.UUID) predicate.ApiKey

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...uuid.UUID) predicate.ApiKey

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func ProjectIDNotNil

func ProjectIDNotNil() predicate.ApiKey

ProjectIDNotNil applies the NotNil predicate on the "project_id" field.

func PublishedAt

func PublishedAt(v time.Time) predicate.ApiKey

PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.

func PublishedAtEQ

func PublishedAtEQ(v time.Time) predicate.ApiKey

PublishedAtEQ applies the EQ predicate on the "published_at" field.

func PublishedAtGT

func PublishedAtGT(v time.Time) predicate.ApiKey

PublishedAtGT applies the GT predicate on the "published_at" field.

func PublishedAtGTE

func PublishedAtGTE(v time.Time) predicate.ApiKey

PublishedAtGTE applies the GTE predicate on the "published_at" field.

func PublishedAtIn

func PublishedAtIn(vs ...time.Time) predicate.ApiKey

PublishedAtIn applies the In predicate on the "published_at" field.

func PublishedAtIsNil

func PublishedAtIsNil() predicate.ApiKey

PublishedAtIsNil applies the IsNil predicate on the "published_at" field.

func PublishedAtLT

func PublishedAtLT(v time.Time) predicate.ApiKey

PublishedAtLT applies the LT predicate on the "published_at" field.

func PublishedAtLTE

func PublishedAtLTE(v time.Time) predicate.ApiKey

PublishedAtLTE applies the LTE predicate on the "published_at" field.

func PublishedAtNEQ

func PublishedAtNEQ(v time.Time) predicate.ApiKey

PublishedAtNEQ applies the NEQ predicate on the "published_at" field.

func PublishedAtNotIn

func PublishedAtNotIn(vs ...time.Time) predicate.ApiKey

PublishedAtNotIn applies the NotIn predicate on the "published_at" field.

func PublishedAtNotNil

func PublishedAtNotNil() predicate.ApiKey

PublishedAtNotNil applies the NotNil predicate on the "published_at" field.

func RateLimit

func RateLimit(v int) predicate.ApiKey

RateLimit applies equality check predicate on the "rate_limit" field. It's identical to RateLimitEQ.

func RateLimitEQ

func RateLimitEQ(v int) predicate.ApiKey

RateLimitEQ applies the EQ predicate on the "rate_limit" field.

func RateLimitGT

func RateLimitGT(v int) predicate.ApiKey

RateLimitGT applies the GT predicate on the "rate_limit" field.

func RateLimitGTE

func RateLimitGTE(v int) predicate.ApiKey

RateLimitGTE applies the GTE predicate on the "rate_limit" field.

func RateLimitIn

func RateLimitIn(vs ...int) predicate.ApiKey

RateLimitIn applies the In predicate on the "rate_limit" field.

func RateLimitLT

func RateLimitLT(v int) predicate.ApiKey

RateLimitLT applies the LT predicate on the "rate_limit" field.

func RateLimitLTE

func RateLimitLTE(v int) predicate.ApiKey

RateLimitLTE applies the LTE predicate on the "rate_limit" field.

func RateLimitNEQ

func RateLimitNEQ(v int) predicate.ApiKey

RateLimitNEQ applies the NEQ predicate on the "rate_limit" field.

func RateLimitNotIn

func RateLimitNotIn(vs ...int) predicate.ApiKey

RateLimitNotIn applies the NotIn predicate on the "rate_limit" field.

func SecretHash

func SecretHash(v string) predicate.ApiKey

SecretHash applies equality check predicate on the "secret_hash" field. It's identical to SecretHashEQ.

func SecretHashContains

func SecretHashContains(v string) predicate.ApiKey

SecretHashContains applies the Contains predicate on the "secret_hash" field.

func SecretHashContainsFold

func SecretHashContainsFold(v string) predicate.ApiKey

SecretHashContainsFold applies the ContainsFold predicate on the "secret_hash" field.

func SecretHashEQ

func SecretHashEQ(v string) predicate.ApiKey

SecretHashEQ applies the EQ predicate on the "secret_hash" field.

func SecretHashEqualFold

func SecretHashEqualFold(v string) predicate.ApiKey

SecretHashEqualFold applies the EqualFold predicate on the "secret_hash" field.

func SecretHashGT

func SecretHashGT(v string) predicate.ApiKey

SecretHashGT applies the GT predicate on the "secret_hash" field.

func SecretHashGTE

func SecretHashGTE(v string) predicate.ApiKey

SecretHashGTE applies the GTE predicate on the "secret_hash" field.

func SecretHashHasPrefix

func SecretHashHasPrefix(v string) predicate.ApiKey

SecretHashHasPrefix applies the HasPrefix predicate on the "secret_hash" field.

func SecretHashHasSuffix

func SecretHashHasSuffix(v string) predicate.ApiKey

SecretHashHasSuffix applies the HasSuffix predicate on the "secret_hash" field.

func SecretHashIn

func SecretHashIn(vs ...string) predicate.ApiKey

SecretHashIn applies the In predicate on the "secret_hash" field.

func SecretHashLT

func SecretHashLT(v string) predicate.ApiKey

SecretHashLT applies the LT predicate on the "secret_hash" field.

func SecretHashLTE

func SecretHashLTE(v string) predicate.ApiKey

SecretHashLTE applies the LTE predicate on the "secret_hash" field.

func SecretHashNEQ

func SecretHashNEQ(v string) predicate.ApiKey

SecretHashNEQ applies the NEQ predicate on the "secret_hash" field.

func SecretHashNotIn

func SecretHashNotIn(vs ...string) predicate.ApiKey

SecretHashNotIn applies the NotIn predicate on the "secret_hash" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ApiKey

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ApiKey

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ApiKey

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ApiKey

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ApiKey

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.ApiKey

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ApiKey

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ApiKey

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ApiKey

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ApiKey

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.ApiKey

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedByID

func UpdatedByID(v uuid.UUID) predicate.ApiKey

UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.

func UpdatedByIDEQ

func UpdatedByIDEQ(v uuid.UUID) predicate.ApiKey

UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.

func UpdatedByIDGT

func UpdatedByIDGT(v uuid.UUID) predicate.ApiKey

UpdatedByIDGT applies the GT predicate on the "updated_by_id" field.

func UpdatedByIDGTE

func UpdatedByIDGTE(v uuid.UUID) predicate.ApiKey

UpdatedByIDGTE applies the GTE predicate on the "updated_by_id" field.

func UpdatedByIDIn

func UpdatedByIDIn(vs ...uuid.UUID) predicate.ApiKey

UpdatedByIDIn applies the In predicate on the "updated_by_id" field.

func UpdatedByIDIsNil

func UpdatedByIDIsNil() predicate.ApiKey

UpdatedByIDIsNil applies the IsNil predicate on the "updated_by_id" field.

func UpdatedByIDLT

func UpdatedByIDLT(v uuid.UUID) predicate.ApiKey

UpdatedByIDLT applies the LT predicate on the "updated_by_id" field.

func UpdatedByIDLTE

func UpdatedByIDLTE(v uuid.UUID) predicate.ApiKey

UpdatedByIDLTE applies the LTE predicate on the "updated_by_id" field.

func UpdatedByIDNEQ

func UpdatedByIDNEQ(v uuid.UUID) predicate.ApiKey

UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.

func UpdatedByIDNotIn

func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.ApiKey

UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_id" field.

func UpdatedByIDNotNil

func UpdatedByIDNotNil() predicate.ApiKey

UpdatedByIDNotNil applies the NotNil predicate on the "updated_by_id" field.

func UsageCount

func UsageCount(v int64) predicate.ApiKey

UsageCount applies equality check predicate on the "usage_count" field. It's identical to UsageCountEQ.

func UsageCountEQ

func UsageCountEQ(v int64) predicate.ApiKey

UsageCountEQ applies the EQ predicate on the "usage_count" field.

func UsageCountGT

func UsageCountGT(v int64) predicate.ApiKey

UsageCountGT applies the GT predicate on the "usage_count" field.

func UsageCountGTE

func UsageCountGTE(v int64) predicate.ApiKey

UsageCountGTE applies the GTE predicate on the "usage_count" field.

func UsageCountIn

func UsageCountIn(vs ...int64) predicate.ApiKey

UsageCountIn applies the In predicate on the "usage_count" field.

func UsageCountLT

func UsageCountLT(v int64) predicate.ApiKey

UsageCountLT applies the LT predicate on the "usage_count" field.

func UsageCountLTE

func UsageCountLTE(v int64) predicate.ApiKey

UsageCountLTE applies the LTE predicate on the "usage_count" field.

func UsageCountNEQ

func UsageCountNEQ(v int64) predicate.ApiKey

UsageCountNEQ applies the NEQ predicate on the "usage_count" field.

func UsageCountNotIn

func UsageCountNotIn(vs ...int64) predicate.ApiKey

UsageCountNotIn applies the NotIn predicate on the "usage_count" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ApiKey queries.

func ByArchivedAt

func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption

ByArchivedAt orders the results by the archived_at field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedByID

func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption

ByCreatedByID orders the results by the created_by_id field.

func ByDailyLimit

func ByDailyLimit(opts ...sql.OrderTermOption) OrderOption

ByDailyLimit orders the results by the daily_limit field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedByID

func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption

ByDeletedByID orders the results by the deleted_by_id 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 ByIsActive

func ByIsActive(opts ...sql.OrderTermOption) OrderOption

ByIsActive orders the results by the is_active field.

func ByKey

func ByKey(opts ...sql.OrderTermOption) OrderOption

ByKey orders the results by the key field.

func ByLastUsedAt

func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption

ByLastUsedAt orders the results by the last_used_at field.

func ByLastUsedIP

func ByLastUsedIP(opts ...sql.OrderTermOption) OrderOption

ByLastUsedIP orders the results by the last_used_ip field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOwnerDomainID

func ByOwnerDomainID(opts ...sql.OrderTermOption) OrderOption

ByOwnerDomainID orders the results by the owner_domain_id field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByProjectID

func ByProjectID(opts ...sql.OrderTermOption) OrderOption

ByProjectID orders the results by the project_id field.

func ByPublishedAt

func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption

ByPublishedAt orders the results by the published_at field.

func ByRateLimit

func ByRateLimit(opts ...sql.OrderTermOption) OrderOption

ByRateLimit orders the results by the rate_limit field.

func ByRoleField

func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption

ByRoleField orders the results by role field.

func BySecretHash

func BySecretHash(opts ...sql.OrderTermOption) OrderOption

BySecretHash orders the results by the secret_hash field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedByID

func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption

ByUpdatedByID orders the results by the updated_by_id field.

func ByUsageCount

func ByUsageCount(opts ...sql.OrderTermOption) OrderOption

ByUsageCount orders the results by the usage_count field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL