chore: calculate total balance for space

This commit is contained in:
juancwu 2026-04-11 17:57:41 +00:00
commit 694b774986
6 changed files with 35 additions and 23 deletions

View file

@ -7,11 +7,12 @@ import (
)
type Account struct {
ID string `db:"id"`
Name string `db:"name"`
SpaceID string `db:"space_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
ID string `db:"id"`
Name string `db:"name"`
SpaceID string `db:"space_id"`
Balance decimal.Decimal `db:"balance"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
type TransactionType string