Skip to content

feat: Goal-based savings tracking & milestones#255

Open
gent33112-wq wants to merge 1 commit intorohitdash08:mainfrom
gent33112-wq:feature/savings-goals
Open

feat: Goal-based savings tracking & milestones#255
gent33112-wq wants to merge 1 commit intorohitdash08:mainfrom
gent33112-wq:feature/savings-goals

Conversation

@gent33112-wq
Copy link

Summary

Allow users to track savings goals and milestones.

Changes

  1. SavingsGoal model - New database model with fields: name, target_amount, current_amount, currency, deadline, completed
  2. REST API - Full CRUD endpoints:
    • GET /api/savings-goals - List all goals
    • POST /api/savings-goals - Create goal
    • PATCH /api/savings-goals/:id - Update progress
    • DELETE /api/savings-goals/:id - Delete goal
  3. Schema - Added savings_goals table

Usage

# Create a goal
curl -X POST /api/savings-goals -d {"name":"Vacation","target_amount":1000}

# Update progress
curl -X PATCH /api/savings-goals/1 -d {"current_amount":500}

# List goals
curl /api/savings-goals

/claim #133

- Add SavingsGoal model
- Add REST API endpoints (CRUD)
- Update schema.sql

/claim rohitdash08#133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant