Skip to content

EntityStorageUsage

EntityStorageUsage Schema

Description: Running per-(entity, source) storage total.

Source of truth for usage reporting. Skynet rows are maintained
transactionally as objects are stored/deleted; afterglow rows are a cache
populated by pulling Afterglow's usage report (§4.5). Reconciled nightly
against an object-store prefix inventory.

Properties

Name Type Description
entity_id Integer The billable owning entity.
source Enum(skynet, afterglow) Which system stored these bytes (skynet
stored_bytes Integer Running total of logical bytes stored (non-negative).
object_count Integer Running count of stored objects.
last_reconciled_at DateTime (Optional) When this row was last reconciled against an object-store inventory.
updated_on DateTime No description

Relationships

Relationship Name Type
entity Entity