feat: multi-account financial overview dashboard#901
Open
QuinnClaw wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: multi-account financial overview dashboard#901QuinnClaw wants to merge 1 commit intorohitdash08:mainfrom
QuinnClaw wants to merge 1 commit intorohitdash08:mainfrom
Conversation
- Add Account model with 6 account types (CHECKING, SAVINGS, CREDIT_CARD, CASH, INVESTMENT, OTHER) - Add account_id foreign key to Expense model for linking expenses to accounts - Full CRUD API for accounts (/accounts endpoint) - Aggregated overview dashboard (/accounts/overview) with: - Total balance, assets, liabilities, net worth - Per-account 30-day spending and income summaries - Balance breakdown by account type - Soft-delete for accounts (is_active flag) - SQL migration script for new table and column - Comprehensive test suite (CRUD, validation, overview, 404 handling) - README documentation with API reference Closes rohitdash08#132
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.
Closes #132
What this PR adds:
New Account model with 6 account types:
Full CRUD API at
/accounts:GET /accounts— List all active accounts (with?include_inactive=trueoption)POST /accounts— Create account with name, type, balance, currency, institutionGET /accounts/<id>— Get single accountPUT /accounts/<id>— Update account fieldsDELETE /accounts/<id>— Soft-delete (setsis_active=false)Aggregated overview dashboard at
GET /accounts/overview:Expense linking:
account_idforeign key to Expense model (nullable, backward compatible)Tests:
Documentation:
migrations/add_accounts_table.sql)Backward compatible:
account_idon expenses is nullable — existing data unaffected