Overview of the relationships between resources.
Resource Relationships
Resources can be related to each other in various ways.
-
One-to-Many: A single resource can be associated with multiple instances of another resource.
-
Many-to-One: Multiple instances of a resource can be associated with a single instance of another resource.
-
One-to-One: A single instance of a resource is associated with exactly one instance of another resource.
The following table outlines the relationships between different resources in the system.
Relationship Aliases: When a resource has multiple relationships to the same target, the aliases are shown in parentheses. Use the alias name (not the resource name) in your
withblock. For example,applicationshas three relationships tousers— use"application_owner","business_owner", or"it_owner"instead of"users".
⚠️ Contracts ↔ Applications can be split across two relationships. The direct
applications ↔ contractsjoin works for the common case where a contract is associated with a single application. When a contract spans multiple applications (itscontract_line_itemspoint to different apps), the contract has no singleapplication_idand the direct join will return null for that contract. In that case, the per-app association lives oncontract_line_items.application_idinstead. To answer "which apps have/lack contracts" or "how many contracts does this app have" comprehensively, query both populations (applications → contractsANDapplications → contract_line_items) and combine results. A singleapplications → contractsjoin will silently under-count multi-app contracts. See the Report Builder guide's "Resource-Specific Gotchas" section for worked examples.
| Resource | One-to-Many | Many-to-One | One-to-One |
|---|---|---|---|
| alerts | applications, contracts | ||
| application_licenses | applications, application_users | ||
| application_security | applications | zybrary | |
| application_users | application_licenses | applications, users | |
| applications | alerts, application_licenses, application_users, contract_line_items, contracts, functionalities, payments, po_line_items, savings_events, view_applications, workflow_responses, workflows | application_security, users (application_owner, business_owner, it_owner) | integrations, usage_connect |
| contract_line_items | applications, contracts | ||
| contracts | alerts, contract_line_items | applications | |
| functionalities | applications | ||
| integrations | applications, usage_connect | ||
| payments | applications, po_line_items, users, zybrary | ||
| po_line_items | payments, unmatched_payments | applications, purchase_orders | |
| purchase_orders | po_line_items, unmatched_payments | suppliers | |
| savings_events | applications | ||
| suppliers | purchase_orders | ||
| unmatched_payments | purchase_orders, po_line_items | ||
| usage_connect | applications, integrations | ||
| users | application_users, applications (app_owner_applications, business_owner_applications, it_owner_applications), payments | ||
| view_applications | applications, views | ||
| view_zylo_users | views, zylo_users | ||
| views | view_applications, view_zylo_users | ||
| workflow_responses | applications, workflows | ||
| workflows | workflow_responses | applications | |
| zybrary | payments | application_security | |
| zylo_users | view_zylo_users |