{% for table in tables %}
{{ table.name }} {{ table.columns | length }} fields
{% for col in table.columns %} {% endfor %}
Field Type Constraints
{{ col.name }} {{ col.type }} {% if col.primary_key %}pk{% endif %} {% if col.primary_key and not col.nullable %} · {% endif %} {% if not col.nullable %}not null{% endif %} {% if col.foreign_keys %} → {{ col.foreign_keys | map(attribute='target_fullname') | join(', ') }} {% endif %}
{% endfor %}