chore: calculate total balance for space
This commit is contained in:
parent
b48fcbfaa6
commit
694b774986
6 changed files with 35 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue