organizationdailytokenusage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the organizationdailytokenusage type in the database.
	Label = "organization_daily_token_usage"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldUsageDate holds the string denoting the usage_date field in the database.
	FieldUsageDate = "usage_date"
	// FieldInputTokens holds the string denoting the input_tokens field in the database.
	FieldInputTokens = "input_tokens"
	// FieldOutputTokens holds the string denoting the output_tokens field in the database.
	FieldOutputTokens = "output_tokens"
	// FieldCachedInputTokens holds the string denoting the cached_input_tokens field in the database.
	FieldCachedInputTokens = "cached_input_tokens"
	// FieldReasoningTokens holds the string denoting the reasoning_tokens field in the database.
	FieldReasoningTokens = "reasoning_tokens"
	// FieldTotalTokens holds the string denoting the total_tokens field in the database.
	FieldTotalTokens = "total_tokens"
	// FieldFinalizedRunCount holds the string denoting the finalized_run_count field in the database.
	FieldFinalizedRunCount = "finalized_run_count"
	// FieldRecomputedAt holds the string denoting the recomputed_at field in the database.
	FieldRecomputedAt = "recomputed_at"
	// FieldSourceMode holds the string denoting the source_mode field in the database.
	FieldSourceMode = "source_mode"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// Table holds the table name of the organizationdailytokenusage in the database.
	Table = "organization_daily_token_usages"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "organization_daily_token_usages"
	// 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"
)
View Source
const DefaultSourceMode = SourceModeMaterialized

SourceModeMaterialized is the default value of the SourceMode enum.

Variables

View Source
var (
	// DefaultInputTokens holds the default value on creation for the "input_tokens" field.
	DefaultInputTokens int64
	// DefaultOutputTokens holds the default value on creation for the "output_tokens" field.
	DefaultOutputTokens int64
	// DefaultCachedInputTokens holds the default value on creation for the "cached_input_tokens" field.
	DefaultCachedInputTokens int64
	// DefaultReasoningTokens holds the default value on creation for the "reasoning_tokens" field.
	DefaultReasoningTokens int64
	// DefaultTotalTokens holds the default value on creation for the "total_tokens" field.
	DefaultTotalTokens int64
	// DefaultFinalizedRunCount holds the default value on creation for the "finalized_run_count" field.
	DefaultFinalizedRunCount int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for organizationdailytokenusage fields.

Functions

func And

And groups predicates with the AND operator between them.

func CachedInputTokens

func CachedInputTokens(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokens applies equality check predicate on the "cached_input_tokens" field. It's identical to CachedInputTokensEQ.

func CachedInputTokensEQ

func CachedInputTokensEQ(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensEQ applies the EQ predicate on the "cached_input_tokens" field.

func CachedInputTokensGT

func CachedInputTokensGT(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensGT applies the GT predicate on the "cached_input_tokens" field.

func CachedInputTokensGTE

func CachedInputTokensGTE(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensGTE applies the GTE predicate on the "cached_input_tokens" field.

func CachedInputTokensIn

func CachedInputTokensIn(vs ...int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensIn applies the In predicate on the "cached_input_tokens" field.

func CachedInputTokensLT

func CachedInputTokensLT(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensLT applies the LT predicate on the "cached_input_tokens" field.

func CachedInputTokensLTE

func CachedInputTokensLTE(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensLTE applies the LTE predicate on the "cached_input_tokens" field.

func CachedInputTokensNEQ

func CachedInputTokensNEQ(v int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensNEQ applies the NEQ predicate on the "cached_input_tokens" field.

func CachedInputTokensNotIn

func CachedInputTokensNotIn(vs ...int64) predicate.OrganizationDailyTokenUsage

CachedInputTokensNotIn applies the NotIn predicate on the "cached_input_tokens" field.

func FinalizedRunCount

func FinalizedRunCount(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCount applies equality check predicate on the "finalized_run_count" field. It's identical to FinalizedRunCountEQ.

func FinalizedRunCountEQ

func FinalizedRunCountEQ(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountEQ applies the EQ predicate on the "finalized_run_count" field.

func FinalizedRunCountGT

func FinalizedRunCountGT(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountGT applies the GT predicate on the "finalized_run_count" field.

func FinalizedRunCountGTE

func FinalizedRunCountGTE(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountGTE applies the GTE predicate on the "finalized_run_count" field.

func FinalizedRunCountIn

func FinalizedRunCountIn(vs ...int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountIn applies the In predicate on the "finalized_run_count" field.

func FinalizedRunCountLT

func FinalizedRunCountLT(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountLT applies the LT predicate on the "finalized_run_count" field.

func FinalizedRunCountLTE

func FinalizedRunCountLTE(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountLTE applies the LTE predicate on the "finalized_run_count" field.

func FinalizedRunCountNEQ

func FinalizedRunCountNEQ(v int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountNEQ applies the NEQ predicate on the "finalized_run_count" field.

func FinalizedRunCountNotIn

func FinalizedRunCountNotIn(vs ...int) predicate.OrganizationDailyTokenUsage

FinalizedRunCountNotIn applies the NotIn predicate on the "finalized_run_count" field.

func HasOrganization

func HasOrganization() predicate.OrganizationDailyTokenUsage

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.OrganizationDailyTokenUsage

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func InputTokens

InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.

func InputTokensEQ

InputTokensEQ applies the EQ predicate on the "input_tokens" field.

func InputTokensGT

InputTokensGT applies the GT predicate on the "input_tokens" field.

func InputTokensGTE

InputTokensGTE applies the GTE predicate on the "input_tokens" field.

func InputTokensIn

func InputTokensIn(vs ...int64) predicate.OrganizationDailyTokenUsage

InputTokensIn applies the In predicate on the "input_tokens" field.

func InputTokensLT

InputTokensLT applies the LT predicate on the "input_tokens" field.

func InputTokensLTE

InputTokensLTE applies the LTE predicate on the "input_tokens" field.

func InputTokensNEQ

InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.

func InputTokensNotIn

func InputTokensNotIn(vs ...int64) predicate.OrganizationDailyTokenUsage

InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OrganizationID

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.OrganizationDailyTokenUsage

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.OrganizationDailyTokenUsage

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.OrganizationDailyTokenUsage

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.OrganizationDailyTokenUsage

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func OutputTokens

OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.

func OutputTokensEQ

OutputTokensEQ applies the EQ predicate on the "output_tokens" field.

func OutputTokensGT

OutputTokensGT applies the GT predicate on the "output_tokens" field.

func OutputTokensGTE

func OutputTokensGTE(v int64) predicate.OrganizationDailyTokenUsage

OutputTokensGTE applies the GTE predicate on the "output_tokens" field.

func OutputTokensIn

func OutputTokensIn(vs ...int64) predicate.OrganizationDailyTokenUsage

OutputTokensIn applies the In predicate on the "output_tokens" field.

func OutputTokensLT

OutputTokensLT applies the LT predicate on the "output_tokens" field.

func OutputTokensLTE

func OutputTokensLTE(v int64) predicate.OrganizationDailyTokenUsage

OutputTokensLTE applies the LTE predicate on the "output_tokens" field.

func OutputTokensNEQ

func OutputTokensNEQ(v int64) predicate.OrganizationDailyTokenUsage

OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.

func OutputTokensNotIn

func OutputTokensNotIn(vs ...int64) predicate.OrganizationDailyTokenUsage

OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.

func ReasoningTokens

func ReasoningTokens(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokens applies equality check predicate on the "reasoning_tokens" field. It's identical to ReasoningTokensEQ.

func ReasoningTokensEQ

func ReasoningTokensEQ(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensEQ applies the EQ predicate on the "reasoning_tokens" field.

func ReasoningTokensGT

func ReasoningTokensGT(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensGT applies the GT predicate on the "reasoning_tokens" field.

func ReasoningTokensGTE

func ReasoningTokensGTE(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensGTE applies the GTE predicate on the "reasoning_tokens" field.

func ReasoningTokensIn

func ReasoningTokensIn(vs ...int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensIn applies the In predicate on the "reasoning_tokens" field.

func ReasoningTokensLT

func ReasoningTokensLT(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensLT applies the LT predicate on the "reasoning_tokens" field.

func ReasoningTokensLTE

func ReasoningTokensLTE(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensLTE applies the LTE predicate on the "reasoning_tokens" field.

func ReasoningTokensNEQ

func ReasoningTokensNEQ(v int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensNEQ applies the NEQ predicate on the "reasoning_tokens" field.

func ReasoningTokensNotIn

func ReasoningTokensNotIn(vs ...int64) predicate.OrganizationDailyTokenUsage

ReasoningTokensNotIn applies the NotIn predicate on the "reasoning_tokens" field.

func RecomputedAt

RecomputedAt applies equality check predicate on the "recomputed_at" field. It's identical to RecomputedAtEQ.

func RecomputedAtEQ

RecomputedAtEQ applies the EQ predicate on the "recomputed_at" field.

func RecomputedAtGT

RecomputedAtGT applies the GT predicate on the "recomputed_at" field.

func RecomputedAtGTE

RecomputedAtGTE applies the GTE predicate on the "recomputed_at" field.

func RecomputedAtIn

func RecomputedAtIn(vs ...time.Time) predicate.OrganizationDailyTokenUsage

RecomputedAtIn applies the In predicate on the "recomputed_at" field.

func RecomputedAtLT

RecomputedAtLT applies the LT predicate on the "recomputed_at" field.

func RecomputedAtLTE

RecomputedAtLTE applies the LTE predicate on the "recomputed_at" field.

func RecomputedAtNEQ

RecomputedAtNEQ applies the NEQ predicate on the "recomputed_at" field.

func RecomputedAtNotIn

func RecomputedAtNotIn(vs ...time.Time) predicate.OrganizationDailyTokenUsage

RecomputedAtNotIn applies the NotIn predicate on the "recomputed_at" field.

func SourceModeEQ

SourceModeEQ applies the EQ predicate on the "source_mode" field.

func SourceModeIn

SourceModeIn applies the In predicate on the "source_mode" field.

func SourceModeNEQ

SourceModeNEQ applies the NEQ predicate on the "source_mode" field.

func SourceModeNotIn

func SourceModeNotIn(vs ...SourceMode) predicate.OrganizationDailyTokenUsage

SourceModeNotIn applies the NotIn predicate on the "source_mode" field.

func SourceModeValidator

func SourceModeValidator(sm SourceMode) error

SourceModeValidator is a validator for the "source_mode" field enum values. It is called by the builders before save.

func TotalTokens

TotalTokens applies equality check predicate on the "total_tokens" field. It's identical to TotalTokensEQ.

func TotalTokensEQ

TotalTokensEQ applies the EQ predicate on the "total_tokens" field.

func TotalTokensGT

TotalTokensGT applies the GT predicate on the "total_tokens" field.

func TotalTokensGTE

TotalTokensGTE applies the GTE predicate on the "total_tokens" field.

func TotalTokensIn

func TotalTokensIn(vs ...int64) predicate.OrganizationDailyTokenUsage

TotalTokensIn applies the In predicate on the "total_tokens" field.

func TotalTokensLT

TotalTokensLT applies the LT predicate on the "total_tokens" field.

func TotalTokensLTE

TotalTokensLTE applies the LTE predicate on the "total_tokens" field.

func TotalTokensNEQ

TotalTokensNEQ applies the NEQ predicate on the "total_tokens" field.

func TotalTokensNotIn

func TotalTokensNotIn(vs ...int64) predicate.OrganizationDailyTokenUsage

TotalTokensNotIn applies the NotIn predicate on the "total_tokens" field.

func UsageDate

UsageDate applies equality check predicate on the "usage_date" field. It's identical to UsageDateEQ.

func UsageDateEQ

UsageDateEQ applies the EQ predicate on the "usage_date" field.

func UsageDateGT

UsageDateGT applies the GT predicate on the "usage_date" field.

func UsageDateGTE

UsageDateGTE applies the GTE predicate on the "usage_date" field.

func UsageDateIn

UsageDateIn applies the In predicate on the "usage_date" field.

func UsageDateLT

UsageDateLT applies the LT predicate on the "usage_date" field.

func UsageDateLTE

UsageDateLTE applies the LTE predicate on the "usage_date" field.

func UsageDateNEQ

UsageDateNEQ applies the NEQ predicate on the "usage_date" field.

func UsageDateNotIn

func UsageDateNotIn(vs ...time.Time) predicate.OrganizationDailyTokenUsage

UsageDateNotIn applies the NotIn predicate on the "usage_date" 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 OrganizationDailyTokenUsage queries.

func ByCachedInputTokens

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

ByCachedInputTokens orders the results by the cached_input_tokens field.

func ByFinalizedRunCount

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

ByFinalizedRunCount orders the results by the finalized_run_count field.

func ByID

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

ByID orders the results by the id field.

func ByInputTokens

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

ByInputTokens orders the results by the input_tokens 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 ByOutputTokens

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

ByOutputTokens orders the results by the output_tokens field.

func ByReasoningTokens

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

ByReasoningTokens orders the results by the reasoning_tokens field.

func ByRecomputedAt

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

ByRecomputedAt orders the results by the recomputed_at field.

func BySourceMode

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

BySourceMode orders the results by the source_mode field.

func ByTotalTokens

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

ByTotalTokens orders the results by the total_tokens field.

func ByUsageDate

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

ByUsageDate orders the results by the usage_date field.

type SourceMode

type SourceMode string

SourceMode defines the type for the "source_mode" enum field.

const (
	SourceModeMaterialized SourceMode = "materialized"
	SourceModeLazyBackfill SourceMode = "lazy_backfill"
)

SourceMode values.

func (SourceMode) String

func (sm SourceMode) String() string

Jump to

Keyboard shortcuts

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