File size: 11,610 Bytes
9ee9723
b885d46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# Solstice Residential Energy Simulation Pack - Schema

This pack is a relational synthetic dataset for residential solar-plus-storage operations, VPP dispatch, outage resilience, and subscriber economics. It is designed for dashboarding, workflow testing, and predictive-model validation without customer-data exposure.

The schema is optimized around:

- household archetypes and contract structure
- solar and battery asset metadata
- utility tariff and savings logic
- dispatch participation and incentives
- outage resilience and backup performance
- billing, churn, and subscriber value
- fleet operations and portfolio KPIs

## Top-level design

This is a multi-table pack with daily and monthly fact tables. The canonical release format should be Parquet, with CSV mirrors for easier import and demos.

## Entity model

### `households`

One row per synthetic customer home.

| Field | Type | Notes |
|---|---|---|
| `household_id` | string | Stable household key |
| `state` | string | Two-letter state code |
| `utility_territory` | string | Synthetic utility-territory name |
| `climate_zone` | enum | `coastal`, `desert`, `temperate`, `humid_subtropical`, `mountain`, `island` |
| `home_type` | enum | `single_family`, `townhome`, `small_multifamily` |
| `roof_profile` | enum | `ideal`, `good`, `constrained`, `shaded` |
| `income_band` | enum | `lower`, `middle`, `upper_middle`, `higher` |
| `ev_owner_flag` | bool | EV adoption proxy |
| `electrification_profile` | enum | `baseline`, `heat_pump`, `ev_ready`, `full_electrified` |
| `outage_risk_band` | enum | `low`, `moderate`, `high` |

### `subscriber_contracts`

One row per active or historical contract.

| Field | Type | Notes |
|---|---|---|
| `contract_id` | string | Stable contract key |
| `household_id` | string | FK -> `households.household_id` |
| `subscription_type` | enum | `ppa`, `lease`, `subscription_flex`, `loan_like` |
| `term_years` | int | Contract term length |
| `contract_start_date` | date | Start date |
| `monthly_minimum_payment` | float | Minimum monthly payment |
| `flex_rate_per_kwh` | float | Usage-based overage or flex price |
| `escalator_pct` | float | Annual escalator |
| `battery_included_flag` | bool | Battery attachment |
| `vpp_eligible_flag` | bool | Program eligibility |
| `status` | enum | `active`, `renewed`, `churned` |
| `renewal_flag` | bool | Renewal signal |
| `churn_flag` | bool | Churn signal |

### `installation_pipeline`

Sales-to-activation project timeline.

| Field | Type | Notes |
|---|---|---|
| `project_id` | string | Stable project key |
| `household_id` | string | FK -> `households.household_id` |
| `lead_source` | enum | `direct`, `partner`, `referral`, `digital`, `field_sales` |
| `signed_date` | date | Customer signature date |
| `permit_ready_date` | date | Permit-complete date |
| `install_date` | date | Install date |
| `pto_date` | date | Permission-to-operate date |
| `battery_attachment_flag` | bool | Attached battery |
| `project_cycle_days` | int | Signed-to-PTO duration |
| `cancellation_flag` | bool | Cancellation signal |
| `cancellation_reason` | enum/null | Cancellation category |

### `solar_systems`

Installed solar metadata.

| Field | Type | Notes |
|---|---|---|
| `system_id` | string | Stable system key |
| `household_id` | string | FK -> `households.household_id` |
| `kw_dc` | float | Nameplate DC size |
| `module_count` | int | Module count |
| `inverter_type` | enum | `string`, `microinverter`, `hybrid` |
| `azimuth_band` | enum | `south`, `southwest`, `east_west`, `mixed` |
| `shading_band` | enum | `low`, `moderate`, `high` |
| `expected_annual_kwh` | float | Modeled annual generation |
| `commission_date` | date | System commission date |

### `battery_systems`

Installed battery metadata.

| Field | Type | Notes |
|---|---|---|
| `battery_id` | string | Stable battery key |
| `household_id` | string | FK -> `households.household_id` |
| `usable_kwh` | float | Usable energy capacity |
| `power_kw` | float | Power rating |
| `chemistry` | enum | `lithium_iron_phosphate`, `lithium_nmc` |
| `reserve_setting_pct` | float | Customer reserve floor |
| `vpp_enabled_flag` | bool | Dispatch participation enabled |
| `install_date` | date | Install date |
| `replacement_due_year` | int | Expected replacement year |

### `utility_tariffs`

Tariff metadata by territory and plan.

| Field | Type | Notes |
|---|---|---|
| `tariff_id` | string | Stable tariff key |
| `utility_territory` | string | Territory name |
| `state` | string | State code |
| `tariff_name` | string | Synthetic tariff plan |
| `tariff_type` | enum | `flat`, `tou`, `demand_like`, `export_sensitive` |
| `peak_start_hour` | int | Peak start hour |
| `peak_end_hour` | int | Peak end hour |
| `summer_peak_rate` | float | Peak import rate |
| `offpeak_rate` | float | Off-peak import rate |
| `fixed_monthly_charge` | float | Fixed charge |
| `net_billing_export_rate` | float | Export compensation |

### `daily_generation_consumption`

Daily energy and savings fact table.

| Field | Type | Notes |
|---|---|---|
| `date` | date | Day grain |
| `household_id` | string | FK -> `households.household_id` |
| `solar_generation_kwh` | float | Daily generation |
| `home_load_kwh` | float | Daily load |
| `grid_import_kwh` | float | Net import |
| `grid_export_kwh` | float | Net export |
| `battery_charge_kwh` | float | Battery charging |
| `battery_discharge_kwh` | float | Battery discharging |
| `state_of_charge_end_pct` | float | End-of-day battery state |
| `bill_without_system_usd` | float | Counterfactual utility bill |
| `bill_with_system_usd` | float | Utility bill with DERs |
| `customer_savings_usd` | float | Daily customer savings |

### `dispatch_events`

Program dispatch fact table.

| Field | Type | Notes |
|---|---|---|
| `dispatch_event_id` | string | Stable dispatch key |
| `date` | date | Event date |
| `household_id` | string | FK -> `households.household_id` |
| `program_id` | string | Program name/id |
| `dispatch_type` | enum | `peak_shave`, `capacity_event`, `emergency_event`, `market_dispatch` |
| `requested_kwh` | float | Requested delivery |
| `delivered_kwh` | float | Actual delivery |
| `duration_minutes` | int | Event length |
| `participated_flag` | bool | Participation signal |
| `non_participation_reason` | enum/null | Reason when not participating |
| `customer_incentive_usd` | float | Event incentive value |
| `grid_value_usd` | float | Program value estimate |

### `vpp_program_enrollment`

Program enrollment metadata.

| Field | Type | Notes |
|---|---|---|
| `enrollment_id` | string | Stable enrollment key |
| `household_id` | string | FK -> `households.household_id` |
| `program_name` | string | Program label |
| `market_type` | enum | `utility`, `iso`, `aggregator`, `resilience` |
| `enrollment_date` | date | Enrollment date |
| `opt_out_flag` | bool | Customer opt-out |
| `participation_score` | float | Participation likelihood proxy |
| `seasonal_availability_band` | enum | `low`, `moderate`, `high` |

### `outage_events`

Backup and resilience table.

| Field | Type | Notes |
|---|---|---|
| `outage_event_id` | string | Stable outage key |
| `date` | date | Outage date |
| `household_id` | string | FK -> `households.household_id` |
| `outage_duration_minutes` | int | Duration |
| `critical_load_served_kwh` | float | Critical load supported |
| `backup_duration_hours` | float | Backup runtime |
| `grid_down_flag` | bool | Grid-down event |
| `customer_outage_avoided_flag` | bool | Whether backup protected load |
| `unserved_load_kwh` | float | Unserved energy |

### `billing_and_savings`

Monthly economics table.

| Field | Type | Notes |
|---|---|---|
| `billing_month` | string | `YYYY-MM` month |
| `household_id` | string | FK -> `households.household_id` |
| `contract_id` | string | FK -> `subscriber_contracts.contract_id` |
| `utility_bill_without_system_usd` | float | Counterfactual monthly bill |
| `utility_bill_with_system_usd` | float | Monthly utility bill with system |
| `subscription_payment_usd` | float | Subscription payment |
| `vpp_credits_usd` | float | Dispatch or participation credits |
| `net_customer_value_usd` | float | Net monthly customer value |
| `overage_kwh` | float | Usage overage proxy |

### `service_tickets`

Fleet reliability and support.

| Field | Type | Notes |
|---|---|---|
| `ticket_id` | string | Stable ticket key |
| `household_id` | string | FK -> `households.household_id` |
| `open_date` | date | Ticket open date |
| `issue_category` | enum | `battery_alert`, `inverter_fault`, `connectivity`, `production_drop`, `customer_question` |
| `severity_band` | enum | `low`, `moderate`, `high` |
| `truck_roll_required_flag` | bool | Truck roll requirement |
| `resolution_days` | int | Resolution duration |
| `equipment_replaced_flag` | bool | Replacement event |

### `channel_attribution`

Acquisition channel summary.

| Field | Type | Notes |
|---|---|---|
| `household_id` | string | FK -> `households.household_id` |
| `channel` | enum | `partner`, `digital`, `referral`, `direct`, `field_sales` |
| `campaign_type` | enum | Acquisition campaign type |
| `cac_usd` | float | Customer acquisition cost proxy |
| `conversion_days` | int | Lead-to-sign duration |
| `sales_motion` | enum | `inside_sales`, `field`, `partner_led`, `self_serve_assisted` |

### `portfolio_kpis_daily`

Fleet-level KPI rollup.

| Field | Type | Notes |
|---|---|---|
| `date` | date | Day grain |
| `state` | string | State rollup |
| `active_households` | int | Active subscribed homes |
| `active_batteries` | int | Active batteries |
| `dispatch_events_count` | int | Daily dispatch events |
| `total_dispatched_kwh` | float | Total delivered dispatch |
| `participation_rate` | float | Daily participation rate |
| `avg_customer_savings_usd` | float | Daily average savings |
| `avg_bill_reduction_pct` | float | Average bill reduction |
| `outages_supported_count` | int | Outages supported |
| `service_ticket_rate` | float | Daily service ticket rate |
| `estimated_grid_value_usd` | float | Portfolio-level dispatch value |

## Key relationships

- `households.household_id` joins to contracts, assets, timeseries, outage, service, and attribution tables
- `subscriber_contracts.contract_id` joins to `billing_and_savings`
- `utility_tariffs.utility_territory` joins to `households.utility_territory`
- `households.state` joins to `portfolio_kpis_daily.state`

## Invariants

- `bill_without_system_usd >= bill_with_system_usd` for most rows, though some low-value days may be near zero savings
- `grid_import_kwh >= 0` and `grid_export_kwh >= 0`
- `delivered_kwh <= requested_kwh` on dispatch rows
- `customer_outage_avoided_flag == true` implies `critical_load_served_kwh > 0`
- `active_batteries <= active_households`

## Causal realism targets

The generator should preserve:

- higher cooling load and EV ownership -> higher evening battery value
- high-rate tariffs -> higher apparent savings opportunity
- battery-equipped homes -> higher outage resilience and dispatch eligibility
- high participation score -> stronger dispatch response
- more service burden -> lower net customer value and higher churn likelihood
- outage-prone markets -> stronger resilience event value

## MVP release recommendation

For the first production-ready pack:

- 5,000 households
- 12 months
- daily grain
- all tables included

## Premium expansion

For the larger commercial pack:

- 25,000 to 100,000+ households
- 24 to 36 months
- optional sub-daily load and dispatch tables
- richer degradation and replacement logic