jozsi / mystash

Personal finance app

Home Page:http://mysta.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wallet model

radulucaciu opened this issue · comments

commented

Specs

An user can have multiple wallets (e.g. Bank account, Investment account, Savings, etc).
Each wallet has one owner but can be shared with multiple other users (Question: Should we look into creating / defining groups?)

Fields

  • owner
  • name
  • sharedWith (TBD: should this be a list or should it be an intermediary table?)
  • value (the sum of all transactions for this account)
  • settings {currency, formatting{currencySymbolPosition, decimalSymbol, thousandsSeparator}}
  • currency (auto-formatted=)

Methods

  • create
  • read
  • update
  • delete

Other observations

  • Only the owner can delete a wallet
  • When the owner deletes a shared wallet, a notification should be displayed letting the user know that the wallet is shared with User X, Y and Z. The user can then either
    • Transfer the ownership to one of the users that wallet is shared with
    • Delete the wallet
  • Any user that has access to the wallet can add transactions to it