feat(account): #49 account page
This commit was merged in pull request #59.
This commit is contained in:
+8
-8
@@ -38,21 +38,21 @@ type Transaction struct {
|
||||
// The Account holds money
|
||||
type Account struct {
|
||||
Id uuid.UUID
|
||||
GroupId uuid.UUID
|
||||
GroupId uuid.UUID `db:"group_id"`
|
||||
|
||||
// Custom Name of the account, e.g. "Bank", "Cash", "Credit Card"
|
||||
Name string
|
||||
|
||||
CurrentBalance int64
|
||||
LastTransaction *time.Time
|
||||
CurrentBalance int64 `db:"current_balance"`
|
||||
LastTransaction *time.Time `db:"last_transaction"`
|
||||
// The current precalculated value of:
|
||||
// Account.Balance - [PiggyBank.Balance...]
|
||||
OinkBalance int64
|
||||
OinkBalance int64 `db:"oink_balance"`
|
||||
|
||||
CreatedAt time.Time
|
||||
CreatedBy uuid.UUID
|
||||
UpdatedAt *time.Time
|
||||
UpdatedBy *uuid.UUID
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
CreatedBy uuid.UUID `db:"created_by"`
|
||||
UpdatedAt *time.Time `db:"updated_at"`
|
||||
UpdatedBy *uuid.UUID `db:"updated_by"`
|
||||
}
|
||||
|
||||
// The PiggyBank is a fictional account. The money it "holds" is actually in the Account
|
||||
|
||||
Reference in New Issue
Block a user