{% extends "base.html" %} {% block title %}DBSprout Dashboard — Schema ERD{% endblock %} {% block head_extra %} {# ── S-091: Mermaid.js client-side ERD rendering (CDN, no server-side image gen). ── #} {% if erd_mermaid %} {# ── S-091-F1: SVG pan/zoom via CDN (loaded only when ERD is present). ── #} {% endif %} {% endblock %} {% block content %}

Schema ERD

{% if erd_mermaid %} {# ── S-091-F1: Table-detail JSON blob (enables click-to-detail, no network round-trip). ── #} {# ── S-091-F1: Large-schema controls — filter + column toggle. ── #}
{# ── ERD diagram container ── #}
{{ erd_mermaid }}

Entity-relationship diagram auto-generated from the latest schema snapshot (.dbsprout/snapshots/). Updates when the snapshot changes. Click a table node to see its column details.

{# ── S-091-F1: Click-to-detail panel (hidden until a table is clicked). ── #} {# ── S-091-F1: Client-side interactivity script ── #} {% else %}
No schema snapshot found yet. Run dbsprout init or dbsprout generate to capture a schema, then refresh this view.
{% endif %} {% endblock %}