-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Branch: feat/oop-core-entities
Type: backend
Priority: High
Dependencies: phase2-01
Description
Transform procedural logic into Object-Oriented classes for User and Account to encapsulate state and behavior.
Tasks
- Create
backend/modules/entities.py - Implement
Userclass with properties:username,email,hashed_password - Implement
Accountclass with methods:get_balance(),add_funds(),remove_funds() - Move authentication logic into a
SessionManagerorAuthServiceclass - Ensure classes use Pydantic models for internal data integrity
Acceptance Criteria
- Logic is encapsulated within class methods
- No direct manipulation of user dictionaries outside of classes
- Code passes Ruff validation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels