🔁 Budget model allows multiple entries but logic enforces single budget
Description
There is a mismatch between the database schema and application logic.
Issue
- "models.py": defines one-to-many relationship ("User.budgets")
- "app.py": deletes all existing budgets before inserting a new one
Impact
- Inconsistent design
- Potential confusion for future development
Suggested Fix
- Convert to one-to-one relationship, OR
- Allow multiple budgets and update logic accordingly
🔁 Budget model allows multiple entries but logic enforces single budget
Description
There is a mismatch between the database schema and application logic.
Issue
Impact
Suggested Fix