DB Specification Export
Generate professional database specification documents from your diagram. Ainecto supports three output formats — HTML, Excel, and PDF — each tailored for a different audience and workflow.
How to export
- Open the Export menu in the header toolbar
- Select Specification
- Choose a format: HTML, Excel, or PDF
The export covers every entity in your current diagram: tables, columns, indexes, relationships, and enums.
HTML specification
The HTML export produces a standalone document that opens in any browser without dependencies.
Contents:
| Section | Details |
|---|---|
| Diagram summary | Diagram name, table count, relationship count |
| Tables | One section per table — column name, type, nullable, default, primary key, note |
| Indexes | Index name, columns, unique flag, type |
| Relationships | From table → to table, columns, relationship type, ON DELETE / ON UPDATE |
| Enums | Enum name, values, notes |
The document uses internal anchor links so you can jump between tables and their related entities.
Excel specification
The Excel export generates a structured workbook with six sheets:
| Sheet | Content |
|---|---|
| Summary | Diagram metadata — name, description, total counts |
| Tables | Table name, schema, alias, note, column count |
| Columns | Table, column name, type, nullable, default, PK, note |
| Relationships | From table.column → to table.column, type, ON DELETE, ON UPDATE |
| Indexes | Table, index name, columns, unique, type |
| Enums | Enum name, values, value notes |
Styling is applied automatically:
- Header row — blue background with white text
- Alternating rows — striped for readability
- Primary keys — highlighted with bold formatting
- Column widths auto-fit to content
The file is ready for sharing via email, Confluence, or any document management system.
PDF specification
The PDF workflow opens the HTML specification in a new browser window, where you can use the browser's built-in print function to save as PDF.
Steps:
- Select Specification → PDF
- A new window opens with the rendered HTML document
- Press
Ctrl+P(orCmd+Pon macOS) - Choose Save as PDF as the destination
- Adjust page settings (orientation, margins) as needed
- Click Save
This approach gives you full control over page layout and margins without requiring a server-side PDF engine.
Use cases
| Scenario | Recommended format |
|---|---|
| Share with non-technical stakeholders | HTML — self-contained, opens anywhere |
| Attach to project documentation or wiki | Excel — easy to filter, sort, and annotate |
| Include in formal deliverables or audits | PDF — fixed layout, print-ready |
| Quick internal review | HTML — fastest to generate and browse |
| Data dictionary maintenance | Excel — editable, integrates with existing spreadsheets |
Tips
- Keep your notes up to date — the specification includes table and column notes, so well-written notes produce better documentation automatically.
- Use schema names — if you organize tables into schemas, the export groups them accordingly.
- Re-export after changes — specifications are point-in-time snapshots. Re-export whenever the schema evolves.