Architecture templates standardize how technical designs, component boundaries, interface contracts, and trade-off decisions are documented across the engineering organization. Use these four templates to author clear ADRs, system blueprints, API schemas, and data models that guide implementation and satisfy regulatory design output audits.
Why Standardize Architectural Deliverables?
Software architecture often lives in engineers' heads until it drifts into unmaintainable complexity. These four templates ensure that every subsystem has an explicit blueprint, every key decision is captured in a one-page ADR, and every API and table schema is formally specified before code is merged.
Architecture Templates•#adr-template
Architecture Decision Record (ADR)
An ADR is a one-page document capturing why a major technical choice was made, so future engineers and auditors understand the reasoning.
🎯 Primary PurposeRecords critical architectural decisions, context, chosen options, and technical trade-offs in an auditable markdown file.
⏱️ When to UseWhen choosing a database, adopting a new framework, refactoring system boundaries, or modifying security architectures.
Regulated Mandate: ISO 13485:2016 (Cl. 7.3.3 Design Outputs)
# Data Model Specification: {{DOMAIN_NAME}}
## 1. Entity-Relationship Overview
- **Primary Schema**: `public` or domain namespace
- **Database Engine**: PostgreSQL 16+
## 2. Table: `user_accounts`
Stores verified user identities and authorization roles.
| Column Name | Data Type | Constraints | Description |
|:---|:---|:---|:---|
| `id` | `UUID` | `PRIMARY KEY, DEFAULT gen_random_uuid()` | Unique account identifier |
| `email` | `VARCHAR(255)` | `NOT NULL, UNIQUE` | User email address |
| `password_hash` | `VARCHAR(255)` | `NOT NULL` | Argon2id password hash |
| `role` | `VARCHAR(50)` | `NOT NULL, DEFAULT 'PRACTITIONER'` | RBAC role tag |
| `created_at` | `TIMESTAMPTZ` | `NOT NULL, DEFAULT NOW()` | Record insertion timestamp |
## 3. Indexes & Constraints
- `CREATE INDEX idx_user_accounts_email ON user_accounts(email);`
- `CREATE INDEX idx_user_accounts_role ON user_accounts(role);`
## 4. Privacy & Retention Policy
- Records retained for 7 years per regulatory archive rules.
- ePHI fields encrypted using column-level AES-256 encryption.
Try This with AI: Automated ADR Generator
Copy this prompt to generate comprehensive ADRs for your architectural choices.
You are a lead enterprise architect. Draft an Architecture Decision Record (ADR) comparing PostgreSQL with pgvector vs. Pinecone for a HIPAA-compliant medical AI retrieval pipeline. Include decision drivers, considered options, pros/cons, and final decision outcome.
Community Discussion & Feedback
Attributed peer feedback and official Netspective architecture notes.
Was this documentation helpful?(100% found this helpful • 0 ratings)