Skip to content

🔁 Budget model allows multiple entries but logic enforces single budget #73

@arin-gupta06

Description

@arin-gupta06

🔁 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions