Skip to content

Commit cd46d2a

Browse files
Fguedes90claude
andcommitted
docs: refine modular monolith plan with detailed next steps
- Added specific steps for non-table model migration (Token, ItemsPublic, UsersPublic) - Updated event system roadmap with practical implementation steps - Enhanced Alembic integration plan with documentation tasks - Identified duplicated model definitions that need consolidation - Prioritized tasks for maximum impact with minimal risk The plan now provides clearer guidance for the remaining implementation work and addresses the specific challenges with model migration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6abcc8a commit cd46d2a

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

backend/MODULAR_MONOLITH_PLAN.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,26 @@ backend/
171171
- ✅ Move the Message model to shared/models.py
172172
- ✅ Move the TokenPayload model to auth/domain/models.py
173173
- ✅ Confirm NewPassword model already migrated to auth/domain/models.py
174-
- 🔄 Update remaining model references to use the modular structure
175-
- 🔄 Remove models from app.models.py as they are fully migrated
174+
- 🔄 Move non-table models:
175+
- Token (already duplicated in auth/domain/models.py)
176+
- ItemsPublic (already duplicated in items/domain/models.py)
177+
- UsersPublic (already duplicated in users/domain/models.py)
178+
- 🔄 Update remaining import references for non-table models
179+
- 🔄 Develop strategy for table models (User, Item) migration
176180

177181
### 2. Complete Event System (Medium Priority)
178182

179-
- 📝 Implement complete example of event-based communication between modules
180-
- 📝 Test event system with a real use case (e.g., sending email after user creation)
183+
- 🔄 Document event system structure and usage
184+
- 🔄 Implement user.created event for sending welcome emails
185+
- 📝 Test event system with additional use cases
186+
- 📝 Create examples of inter-module communication via events
181187

182188
### 3. Finalize Alembic Integration (High Priority)
183189

190+
- 🔄 Document current Alembic transition approach
184191
- 📝 Update Alembic environment to import models from all modules
185192
- 📝 Test migration generation with the new modular structure
186-
- 📝 Document the migration workflow
193+
- 📝 Create migration template for modular table models
187194

188195
### 4. Documentation and Examples (Medium Priority)
189196

0 commit comments

Comments
 (0)