3 ms·
An item should never be deleted from a catalog. That would break a lot more than carts. If you need to track the inventory status/availability of an item, then
by gamblor956 7y ago
An item should never be deleted from a catalog. That would break a lot more than carts.
If you need to track the inventory status/availability of an item, then you store that in the database. The specific implementation (field, list of current items, etc) depends on your needs.