I want to create a table called 'product' that has its id and the quantity in the inventory and another table called 'purchase, the purchase table will have the primary key of the product and the id of the purchase, so I wanted to decrease the quantity in the 'product' table inventory every time a purchase is made, how would you do that?