Entity relationships
Nectar organizes utility data in a hierarchical structure:Entity definitions
Data processing behavior
When a document enters Nectar, it moves through an external lifecycle: Key behaviors:- Core bill fields, usage data, and line items are extracted from source documents.
- Meter/account/site associations are applied to organize data in the API model.
- Validation checks run before data is published to improve quality and consistency.
- Electricity demand values are included when present in source documents.
Key data fields
Document
UsageData
Document-level revision fields stay compatible for full-document revisions. Usage and emissions exclusions are per usage row; sibling usage without a revision link still contributes. For site cost, superseded rows preserve the earlier document’s historical meter and site allocation.
Meter
Calendarization algorithm
Nectar converts billing period data to calendar months using daily proration:- Inclusive date counting: Both start and end dates are included (closed interval)
- Computed at query time: Raw data preserved; calendarization applied dynamically
- Net metering exports: Export meters multiply by -1 during aggregation
Cost attribution algorithm
For multi-meter bills, Nectar first assigns line items linked only to one site. It then allocates the remaining net current charges:- Uses net current charges so carried balances are not counted again
- Falls back to an equal split only when no eligible row has positive usage
- Retains superseded rows for historical site cost allocation
- Normalizes cross-bill portfolio cost analytics to USD; bill audit views retain native currency
Annotations and computed fields
Several fields are computed at query time rather than stored:Next steps
Document processing details
Document-processing behavior and expected outputs
Meter organization
Meter, account, and site relationships