Guest User

Untitled

a guest
Feb 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. (1) use money to buy something (Money leaves wallet)
  2. (2) sell something to earn money (Money enters wallet)
  3.  
  4. buys <userid, amount>
  5. sells <userid, amount>
  6. transaction <transactionid, userid, amount, type>
  7.  
  8. i.e.
  9. insert <u1, 90> into buys trigger insert <t1, u1, 90, 'buy'>
  10. for example
  11.  
  12. buys <userid, transactionid>
  13. sells <userid, transactionid>
  14. transaction <transactionid, amount>
  15.  
  16. i.e.
  17. insert <t1, 90> into transaction and insert <u1, t1> into buys
Add Comment
Please, Sign In to add comment