{{-- Cover --}}
Database Reference

{{ $content['document_title'] ?? 'Schema Reference' }}

{{ $repository->full_name }}

Generated{{ $generated }}
Tables{{ count($content['tables'] ?? []) }}
Repository{{ $repository->full_name }}
@if(!empty($content['overview']))
{{ $content['overview'] }}
@endif @if(!empty($content['relationships_summary']))
Entity Relationships
{{ $content['relationships_summary'] }}
@endif @foreach($content['tables'] ?? [] as $table)
{{ $table['name'] }}
{{ $table['purpose'] ?? '' }}
@if(!empty($table['relates_to']))
relates to: {{ implode(', ', $table['relates_to']) }}
@endif
@if(!empty($table['columns'])) @foreach($table['columns'] as $col) @endforeach
Column Type Required Description
{{ $col['name'] }} {{ $col['type'] }} @if($col['nullable'] ?? true) nullable @else required @endif {{ $col['description'] ?? '' }}
@endif @if(!empty($table['indexes']) || !empty($table['notes'])) @endif
@endforeach