PrestaShop 8 manages product quantities through the ps_stock_available table, which is the central point for keeping track of available quantities for each product and combination (if the product has attributes).
Let's look at the details of how it works and some practical examples.