Another question from an app programmer who's trying the first time to get together a DB model himself.
In my app, there are users, accounts and transactions. I initially had all tables in 3NF (or so I believe). Then I decided to add a balance field to users, mainly because my code will go open source and I do not want people to mess up the business logic of the system by changing PHP code. So triggers and stored procedures update the balance.
Now there's the new requirement that users will have on their account page a list of all transactions they did with a balance column, so they can watch how their balance changes with every transaction. Of course, transactions and users are in different tables.
How to go about that? My current solution sketch sees a balance_history table with foreign keys to transaction_id and user_id. Any other suggestion? Thanks.