Open YtvwlD opened 7 years ago
Transactions in version 3 have a field called action
which can either be spend or deposit. A transfer between to users creates two transactions. One on the senders account with the action spend and one on the receivers account with the action deposit, but they are not linked.
We currently have a single type of transaction which appears under
/audits
:But there are actually at least two different types of transactions here:
product
specifies what was bought;difference
is negative)product
isNone
;difference
is positive)product
isNone
;difference
is positive)We distinguish these via the
product
and via thedifference
field.But there can probably be more types:
I just wanted to hear your opinions about changing the data model of a transaction and how we could achieve transferring money.