Feature Technical Template
Replace this title with the feature name.
Use this page structure for each feature-level technical document. The product feature page should remain the UX reference; this page should become the implementation source of truth.
User Flows
Describe coach web, coach mobile, client mobile, system, and admin flows that touch this feature.
- Primary happy path.
- Important alternate path.
- Failure or recovery path.
Domain Model
List aggregates, entities, value objects, domain services, invariants, and domain events.
Aggregates & Entities
- Aggregate root.
- Child entity.
- Lifecycle state.
Value Objects & Rules
- Value object.
- Invariant.
- Validation rule.
Database Tables
Document tables, ownership, key columns, relationships, indexes, JSON fields, and retention rules.
| Table | Purpose | Important Columns | Notes |
|---|---|---|---|
| example_table | What this stores. | id, owner_id, status, created_at | Indexes, constraints, retention. |
API Endpoints
List REST endpoints, request/response contracts, auth requirements, and idempotency behavior.
GET /api/v1/examplePOST /api/v1/examplePATCH /api/v1/example/{id}
Events & Background Jobs
Document domain events, integration events, outbox records, queue jobs, retries, and notification side effects.
- Domain event.
- Background job.
- Notification or sync side effect.
Permissions & Access Rules
Define role, relationship, status, invitation, and ownership constraints.
- Coach can...
- Client can...
- System/admin can...
Web, Coach Mobile, Client Mobile
Specify behavior per surface, including offline and sync requirements where relevant.
Web
Desktop behavior and states.
Coach Mobile
Coach mobile behavior and parity notes.
Client Mobile
Client behavior, offline cache, and sync notes.
Test Scenarios & Open Decisions
Capture domain, API, web, mobile, integration, permission, and edge-case tests before implementation.
Tests
- Domain unit test.
- API integration test.
- Web/mobile E2E test.
Open Decisions
- Decision needed before implementation.
- Assumption to validate.