Another way to do this follows. The assumption here is that once a user requests n units of product x, these n units become unavailable for any other user.
At the time the database is started, I would store the current inventory in a hash map with the product_id as the key and the number of units available as the value.
When any user requests n units of product p, I'd look into this hash map and check if there are at least n units of product p.
If yes, then in the hashmap, I'd decrement the available quantity by n and allow the user to order n units.
If no, then I'd tell the user that there are not enough items in stock.
This way, there is only one key for each product in the hashmap. The timestamps do not come into the picture, neither does the question of deleting rows from a table. You do not have to create a table unnecessarily.
Synchronization problems, such as those that occur when two or more users ask for the same product at the same time, can be handled relatively easily.
Hope that helps.
Ravi