Hi, whenever my user adds money, I would like the amount they add to be added to a list of numbers in their wallet, so there is a record of every amount they add.
At the moment, if they add a figure that is the same as a previous figure, that number is not added. For example, if they add £100, and then add £120, then add £100, the database just shows 120 once and 100 once.
Firstly, why can I not add a list of numbers, some of which may be duplicate numbers?
Secondly, is there a better way of showing these transactions? Should I have a transaction data type, with a wallet field that corresponds to the user’s wallet? Or are there even better ways?
Thanks!