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
Some checks failed
Deploy production / deploy (push) Has been cancelled
This commit is contained in:
@@ -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] })]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user