feat(household): Shared household budgeting support (#134)#261
Open
dagangtj wants to merge 1 commit intorohitdash08:mainfrom
Open
feat(household): Shared household budgeting support (#134)#261dagangtj wants to merge 1 commit intorohitdash08:mainfrom
dagangtj wants to merge 1 commit intorohitdash08:mainfrom
Conversation
- Add Household, HouseholdMember, HouseholdInvite models - CRUD API: create household, list user households - Invite system: generate invite code, join via code (48h expiry) - Member management with role-based access (owner/member) - Household summary: aggregated spending across all members - Per-member spending breakdown - Membership checks on all endpoints (403 for non-members) - 8 test cases covering all flows Closes rohitdash08#134
Author
|
Hi @rohitdash08, ready for review! Includes full CRUD, invite system, membership checks, and 8 test cases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Shared household budgeting support as requested in #134.
Features
Household Management API:
POST /households— Create a new householdGET /households— List user's householdsPOST /households/:id/invite— Generate invite code (48h expiry)POST /households/join— Join via invite codeGET /households/:id/members— List members with rolesGET /households/:id/summary?month=YYYY-MM— Aggregated financial summaryData Models:
Household— name, ownerHouseholdMember— user-household link with role (owner/member)HouseholdInvite— secure invite codes with expirySecurity:
Tests (8 test cases):
Closes #134