stats B11: EP-Online energy labels (monthly total file → homes per label for NL, Gouda, Gouda PC4s; aggregates only), stats.ep_label_agg, monthly timer with key from ~/.config/stats/ep-online.env, charts on /stats/energy and /stats/gouda
Some checks failed
Deploy production / deploy (push) Has been cancelled

This commit is contained in:
2026-10-25 21:28:37 +00:00
parent 2a4466cb82
commit fa58e5c661
15 changed files with 33573 additions and 6 deletions

View File

@@ -354,3 +354,18 @@ export const statsUsasAgencyFy = statsSchema.table(
},
(t) => [primaryKey({ columns: [t.toptierCode, t.fiscalYear] })]
);
// ── B11 EP-Online (registered energy labels, homes; aggregates only, no addresses) ─────────
export const statsEpLabelAgg = statsSchema.table(
'ep_label_agg',
{
/** Publication date of the monthly total file. */
snapshot: date('snapshot', { mode: 'string' }).notNull(),
/** NL, GOUDA (postcodes 2800–2809) or a Gouda PC4. */
area: text('area').notNull(),
label: text('label').notNull(),
homes: integer('homes').notNull()
},
(t) => [primaryKey({ columns: [t.snapshot, t.area, t.label] })]
);