Home About Services Use Cases Resources Blog FAQ Book a Demo
← Back to resources

Data Model (ERD and Field Specs)

An entity relationship diagram template with every field typed, classified and sourced

SASolutions ArchitectCore tier8 sections

An entity relationship diagram template documents the data model of a system: the entities, how they relate, the key strategy behind each one, and the full field specifications with type, nullability, default, index and sensitivity. It lets a team decide the shape of the data before the first migration runs, and lets a security reviewer see which fields hold personal data. Specira generates the entity relationship diagram (ERD) from the named entities and compiles the field tables from the session's typed items and resolved decisions.

A hand-drawn data model stops at the boxes. The diagram shows a Job and a Technician with a line between them, and the questions that matter live nowhere: is the key natural or surrogate, is a null reason code a blank or a meaning, which columns are personal data, and how long positions are kept. Those answers end up decided in a migration file at eleven at night.

What sections does the entity relationship diagram template contain?

The governed default template fixes eight sections. Six are tables built from typed items, one is a generated diagram, and the migration outline is prose synthesized from discovery.

SectionDepthHow it is produced
Entity InventorycoreTable from typed items · Entity, Description, Approx Row Count
Entity RelationshipscoreGenerated diagram
Key FieldscoreTable from typed items · Entity, Field, Type, Constraints
Full Field SpecificationsstandardTable from typed items · Entity, Field, Type, Nullable, Default, Index
CRUD MatrixstandardTable from typed items · Entity, Role, Create, Read, Update, Delete
Data Classification LabelsfullTable from typed items · Entity, Field, Classification, PII
Retention RulesfullTable from typed items · Entity, Retention Period, Archive Strategy
Migration Scripts OutlinefullProse synthesized from discovery

How does Specira build the data model document?

The Solutions Architect agent owns this artefact. It compiles the document from the entities, business rules, constraints and decisions typed during discovery, with the Security Analyst's classification constraints feeding the sensitivity columns. The sample shows the mechanism. Entity Relationship Views generates one crow's-foot diagram per bounded context from versioned source and reconciles its inventory with the architecture document both ways, so a system-of-record decision is cited there and never re-decided here. Entities, Keys and Conventions states the audit, delete and tenancy conventions once, then gives each entity its primary key strategy and the reason for it, linking business meaning to the glossary. Field Specifications gives every field a type with precision, a stated nullability and default, a sensitivity that cites the governing classification, a source, and a description that adds meaning beyond the name. A blank cell is a gap, and the template flags it.

The Red Team Critic consults on every turn and runs the export readiness gate, measuring resolved decisions rather than pages. A retention rule whose decision is open renders as a named gap, never as a plausible default. Every row carries provenance: who decided, when, on what evidence, and glossary terms from the knowledge base are matched with a confidence score and cited. Export as DOCX for reviewers or as Markdown and JSON for agents, where the schema also travels as a consolidated DBML (database markup language) block. Push to Jira, Confluence, GitHub or Linear, or clone and adjust the template in the Templates module.

First page of the sample: Data Model (ERD and Field Specs)

Rendered sample

Rendered from the Specira governed default template on a fictional company, watermarked, with its diagrams. Read it in the browser or take the PDF.

PDFView online

How do teams use the data model document?

What does the data model artefact look like in Specira?

The screens below show the entities being typed in a discovery session, the generated entity relationship diagram, and the export gate for this artefact.

Screens are from a seeded Specira demo workspace; counts and scores are sample data.

Book a demo and see a discovery session produce an entity relationship diagram and field specifications your developers can migrate from.

Book a Demo

What do teams ask about this artefact?

An entity relationship diagram (ERD) template is a structured document that fixes the entities of a system, their relationships and cardinality, the key strategy of each entity, and the full field specifications. Specira's version adds a CRUD (create, read, update, delete) matrix by role, data classification labels, retention rules and a migration outline, all compiled from the same discovery session.
From the named entities and relationships typed in the session. Specira produces one view per bounded context, with crow's-foot cardinality, and embeds it as an image in the export. Past the entity cap a view splits by aggregate rather than shrinking. The diagram carries structure, keys and cardinality; precision, defaults and enumerations live in the field tables, where a diagram cannot express them.
Type with precision, nullability and default stated explicitly, sensitivity citing the governing classification, source (user-entered, system, integration or seed data), and a description that adds meaning beyond the field name. A blank cell counts as a gap. In the sample, a null override reason code is documented as meaning an accepted suggestion, never a blank string.
Yes, both ways. The entity inventory reconciles with the architecture document's data chapter, so an entity present in one and missing from the other is a finding. Decisions such as which system is the system of record are made in the architecture document and cited here, never re-decided, and the cross-reference production strategy keeps the two artefacts pointing at each other.
DOCX for human readers, Markdown and JSON for agents, and a zip per session or project, with pushes to Jira, Confluence, GitHub and Linear. The agent export also carries the schema as a consolidated DBML (database markup language) block beside the tables. The Red Team Critic's export gate lists any deferred decision in the gap report before the file ships.

Which artefacts go with this one?