emarj / moneytracker

Web app to track family expenses and net worth
1 stars 0 forks source link

Add Wallets #14

Open emarj opened 5 years ago

emarj commented 5 years ago

Every wallet will have a capital/amount inside (#23)

emarj commented 5 years ago

Wallets should be shareable, i.e. they could be owned by multiple users

type Wallet struct {
UUID uuid.UUID
Name string
Description string
Owners []*User
Amount decimal.Decimal
Private bool
Methods []*Method
}

This would require 3 tables: wallets,wallets_users,wallets_methods.

(Also need wallets_categories?)