Skip to content

ObservingAccount

ObservingAccount Schema

Properties

Name Type Description
id Integer Unique identifier of the observing account.
owner_id Integer No description
managing_group_id Integer (Optional) No description
name String(256) (Optional) No description
slug String(256) (Optional) No description
source_account_id Integer (Optional) The ID of the parent node in the hierarchy. Null if this node is a root.
source_account_grant_id Integer (Optional) The ID of the delegated observing grant that links this subaccount to its parent. Composite FK in table_args enforces that the grant's account_id matches source_account_id.
path LtreeType() (Optional) The materialized path using the PostgreSQL ltree type, representing the hierarchical structure for efficient querying. [Automatically set by trigger]
credits_used Float No description
is_deleted Boolean Whether the observing account has been archived.
order Integer The order used to prioritize the account among its siblings. Lower values are higher priority.
last_activity_on DateTime (Optional) No description
observing_policy_id Integer (Optional) No description

Relationships

Relationship Name Type
observing_policy ObservingPolicy
owner Entity
managing_group Group
observing_grants ObservingGrant
quotas ObservingQuota
queue_access_grants ObservingQueueAccessGrant
source_account_grant DelegatedObservingGrant
source_account ObservingAccount
subaccounts ObservingAccount
ancestors ObservingAccount
descendants ObservingAccount
root_account ObservingAccount