🧭✨ Future Tariff Period Groups (NEW)
✨ NEW TABLE - December 2025
🛠️ Partner API Alignment Migration
🧭 This table represents the post-migration state for
tariff_period_groups.1️⃣ Migrate to this table by April 2026
2️⃣ Between April 2026 and July 2026, remove FUTURE__ prefix
Contains tariff period group data enriched with related tariff information and deletion timestamps. Provides a comprehensive view of tariff period groups by joining core period group data with corresponding tariff records, enabling analysis of period group lifecycle and associated tariff status. Filters results to only include period groups that have corresponding tariff records.
SQL: FUTURE__tariff_period_groups
Schema
| Column Name | Data Type | Description |
|---|---|---|
| Primary ID | ||
| id | INTEGER | Primary key |
| Other IDs | ||
| tariff_id | INTEGER | Foreign key reference to the associated tariff record |
| Timestamps | ||
| created_at | TIMESTAMP_NTZ | Timestamp when the tariff period group record was originally created |
| updated_at | TIMESTAMP_NTZ | Timestamp when the tariff period group record was last modified |
| deleted_at | TIMESTAMP_NTZ | Timestamp when the tariff period group was soft deleted, null if still active |
| tariff_deleted_at | TIMESTAMP_NTZ | Deletion timestamp from the associated tariff record, null if tariff is still active |
| tariff_operator_deleted_at | TIMESTAMP_NTZ | Operator-initiated deletion timestamp from the associated tariff record |
| Attributes | ||
| active_from | TIMESTAMP_NTZ | Start timestamp when the tariff period group becomes effective |
| active_to | TIMESTAMP_NTZ | End timestamp when the tariff period group expires, null if indefinite |
| description | VARCHAR | Human-readable description or label for the tariff period group |
Changes from Last Version
Added columns (3)
Timestamps (Deletion Tracking):
- deleted_at (tariff period group deletion status)
- tariff_deleted_at (parent tariff deletion status)
- tariff_operator_deleted_at (tariff's operator deletion status)
Removed columns (0)
Renamed Columns (2)
- tariff_period_group_id → id
Data inclusion criteria
This table includes period groups that belong to tariffs included in the operator's FUTURE__tariffs table
Data flow
| Upstream tables | Downstream tables |
|---|---|
FUTURE__tariffs | --- |
Alignment
Partner API
- Aligns with Partner API get/tariff-period-groups endpoint
tariff_period_groups table
tariff_period_groups tableExclude rows where the period group is deleted, tariff is deleted, or operator is deleted
where deleted_at is null
and tariff_deleted_at is null
and tariff_operator_deleted_at is null
Updated about 22 hours ago
