{
  "generated_at": "2026-06-12T15:08:14",
  "database": {
    "path": "A:\\TrafficAnalytics\\PROJECTS\\public_transport_intel\\data\\duckdb\\vic_public_transport.duckdb",
    "name": "vic_public_transport.duckdb",
    "size_bytes": 330313728,
    "size_human": "315.0 MB",
    "modified": "2026-06-12T10:35:50",
    "sha256_16": "29266966b9070ddd",
    "duckdb_version": "v1.5.1",
    "database_size_pragma": {
      "available": true,
      "rows": [
        {
          "database_name": "vic_public_transport",
          "database_size": "315.0 MiB",
          "block_size": 262144,
          "total_blocks": 1260,
          "used_blocks": 1255,
          "free_blocks": 5,
          "wal_size": "0 bytes",
          "memory_usage": "3.5 MiB",
          "memory_limit": "50.0 GiB"
        }
      ]
    }
  },
  "inventory": {
    "object_count": 58,
    "base_table_count": 24,
    "view_count": 34,
    "column_count": 618
  },
  "highlights": {
    "base_table_rows_counted": 24694810,
    "largest_tables": [
      {
        "table_schema": "main",
        "table_name": "gtfs_stop_times",
        "table_type": "BASE TABLE",
        "row_count": 15297769,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "gtfs_shapes",
        "table_type": "BASE TABLE",
        "row_count": 8677565,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "gtfs_trips",
        "table_type": "BASE TABLE",
        "row_count": 401905,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "gtfs_calendar_dates",
        "table_type": "BASE TABLE",
        "row_count": 129969,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "train_passenger_station_daytype_summary",
        "table_type": "BASE TABLE",
        "row_count": 98660,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "gtfs_stops",
        "table_type": "BASE TABLE",
        "row_count": 32097,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "train_passenger_peak_load_records",
        "table_type": "BASE TABLE",
        "row_count": 13800,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "gtfs_transfers",
        "table_type": "BASE TABLE",
        "row_count": 13237,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "gtfs_calendar",
        "table_type": "BASE TABLE",
        "row_count": 8378,
        "status": "ok",
        "error": ""
      },
      {
        "table_schema": "main",
        "table_name": "train_passenger_station_year_summary",
        "table_type": "BASE TABLE",
        "row_count": 5834,
        "status": "ok",
        "error": ""
      }
    ],
    "max_departure_load_found": 5050.0,
    "max_departure_load_table": "main.train_passenger_line_year_summary",
    "sum_boardings_across_profiled_tables": 4658426720.0,
    "sum_alightings_across_profiled_tables": 4644001630.0,
    "sum_station_entries_across_profiled_tables": 366612.37593824917,
    "max_distinct_stations_seen": 20949,
    "max_distinct_lines_seen": 23,
    "financial_year_ranges": [
      {
        "table": "main.monthly_average_patronage_by_daytype",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.monthly_patronage_by_mode",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.monthly_patronage_by_mode_wide",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.station_entries_all",
        "min": "FY18-19",
        "max": "FY24-25",
        "distinct": 7
      },
      {
        "table": "main.station_entries_metro",
        "min": "FY18-19",
        "max": "FY24-25",
        "distinct": 7
      },
      {
        "table": "main.station_entries_regional",
        "min": "FY18-19",
        "max": "FY24-25",
        "distinct": 7
      },
      {
        "table": "main.train_passenger_line_year_summary",
        "min": "FY18-19",
        "max": "FY23-24",
        "distinct": 6
      },
      {
        "table": "main.train_passenger_peak_load_records",
        "min": "FY18-19",
        "max": "FY23-24",
        "distinct": 6
      },
      {
        "table": "main.train_passenger_station_daytype_summary",
        "min": "FY18-19",
        "max": "FY23-24",
        "distinct": 6
      },
      {
        "table": "main.train_passenger_station_year_summary",
        "min": "FY18-19",
        "max": "FY23-24",
        "distinct": 6
      },
      {
        "table": "main.train_service_passenger_counts",
        "min": "FY18-19",
        "max": "FY23-24",
        "distinct": 6
      },
      {
        "table": "main.v_latest_available_month_by_mode",
        "min": 2026,
        "max": 2026,
        "distinct": 1
      },
      {
        "table": "main.v_latest_complete_month_by_mode",
        "min": 2025,
        "max": 2025,
        "distinct": 1
      },
      {
        "table": "main.v_monthly_mode_recovery",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.v_monthly_mode_recovery_clean",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.v_monthly_patronage_by_mode_clean",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.v_monthly_patronage_by_mode_wide_clean",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.v_monthly_patronage_completeness",
        "min": 2018,
        "max": 2026,
        "distinct": 9
      },
      {
        "table": "main.v_station_entries_latest_clean_name",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_entries_latest_refined_key",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_growth_clean_name",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_growth_from_2018_2019",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_growth_refined_key",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_latest_year",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_patronage_supply_pressure",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_patronage_supply_pressure_normal_ranked",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_patronage_supply_pressure_ranked",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_patronage_supply_pressure_refined",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_station_patronage_supply_pressure_refined_ranked",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      },
      {
        "table": "main.v_stations_without_fy18_19_baseline",
        "min": "FY24-25",
        "max": "FY24-25",
        "distinct": 1
      }
    ]
  },
  "outputs": [
    "database_diagnostics_summary.json",
    "database_diagnostics_summary.md",
    "database_diagnostics_fragment.html",
    "database_table_inventory.csv",
    "database_column_inventory.csv",
    "database_row_counts.csv",
    "database_domain_metrics.csv",
    "database_diagnostic_queries.sql"
  ],
  "notes": [
    "Read-only diagnostics.",
    "Views skipped for row counts unless --include-views is passed.",
    "Maximum departure load is not annual patronage.",
    "Station-entry versus boarding comparisons are screening indicators only."
  ]
}