HWHeat Waves
    DashboardUtforsk
    Analyse
    Data Kilder
        • README
        • v2 Rationale
        • v2-001 Migration
        • v2-002 Filter Codes
        • Crosstab
        • Brask Ingest
        • Patches & RPC
      • Tables & Grain
      • Postgres Contract
    • Design Rationale
    • Doc Map
    DocsSettings
    DashboardAtlasUtforsk
    Analyse
    Data Kilder
    1. Documentation
    2. Fire Data Schema
    3. Schema history index
    4. Schema history index

    Schema history index

    Durable migration narratives and design rationales under fire-data-schema. Executable truth is postgres-contract-rls-and-keys.md and supabase/migrations/.

    Supabase schema history index

    Source of truth for why the v2 schema evolved. Do not duplicate this content elsewhere; link here from onboarding notes.

    When to read what

    FileRead when
    postgres-contract-rls-and-keys.mdImplementing migrations, adapters, or RPCs — exact types, FKs, triggers, keys (wins over narrative SQL).
    conceptual-tables-and-grain.mdTable names, grain, intent (non-executable).
    v2-design-rationale-overview.mdHigh-level v2 rationale when onboarding.
    v2-001-initial-migration-narrative.mdInitial v2 baseline structures (historical).
    v2-002-filter-codes-migration-narrative.mdFilter-axis unification; embedded get_fire_data at file bottom is historical.
    incremental-patches-and-rpc-changelog.mdTargeted patches; current get_fire_data branching narrative.
    crosstab-and-bucket-modeling.mdDimension/filter/metric modeling tradeoffs.
    brask-ingest-loop-and-invariants.mdBRASK adapter loop and invariants.

    Ownership model

    • Executable contract: postgres-contract-rls-and-keys.md + latest supabase/migrations/ + npm run types:gen:fire-data.
    • Narrative history: this folder only.

    Contract ownership matrix

    TopicOwnerNotes
    Column types, FKs, triggers, natural keys, upsert templatespostgres-contract-rls-and-keys.mdOverrides illustrative SQL in migration narratives when they drift.
    Runtime filter-axis contractv2-002-filter-codes-migration-narrative.md + postgres contractRationale in v2-002 narrative; physical FK semantics in postgres contract.
    get_fire_data behaviourincremental-patches-and-rpc-changelog.md + postgres contract + generated typesDo not copy UNION-era SQL from v2-002 narrative into new migrations.
    BRASK ingest loopbrask-ingest-loop-and-invariants.mdAdapter guidance; schema semantics still from postgres contract.

    Maintenance

    When a migration changes RPCs or keys, update the postgres contract doc and the incremental changelog; touch migration narratives only when the story changes.