# Maintenance Feature Capsule ## Status - Scaffolded; implementation pending. Endpoints and behavior to be defined. ## Structure - **api/** - HTTP endpoints, routes, validators - **domain/** - Business logic, types, rules - **data/** - Repository, database queries - **migrations/** - Feature-specific schema - **external/** - External API integrations - **events/** - Event handlers - **tests/** - All feature tests - **docs/** - Detailed documentation ## Dependencies - Internal: core/auth, core/cache - External: (none defined yet) - Database: maintenance table (see docs/DATABASE-SCHEMA.md) ## Quick Commands ```bash # Run feature tests npm test -- features/maintenance # Run feature migrations npm run migrate:feature maintenance ``` ## Clarifications Needed - Entities/fields and validation rules (e.g., due date, mileage, completion criteria)? - Planned endpoints and request/response shapes? - Relationship to vehicles (required foreign keys, cascades)? - Caching requirements (e.g., upcoming maintenance TTL)?