Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { // UserID is ID of related user UserID user.ID `json:"user_id" db:"user_id"` // Balance is summary of loans given to specific user and debts of that user. Balance Amount `json:"balance" db:"balance"` }
Balance is dept balance (saldo) for specific user.
Basically is summary of loans given to specific user and debts of that user.
type Loan ¶
type Loan struct { // LenderID is ID of user which lent money. LenderID user.ID `json:"lender_id" db:"lender_id"` // DebtorID is ID of user which borrowed money. DebtorID user.ID `json:"debtor_id" db:"debtor_id"` // Amount is loan amount in cents. Amount Amount `json:"amount" db:"amount"` }
Loan describes loan amount given by lender to debtor.
Click to show internal directories.
Click to hide internal directories.