Admin Database Adapters:
[ ] destroyProduct - destroyProduct({ id })
[ ] hard delete a product.
[ ] make sure to delete all the order_products whose product is the one being deleted.
[ ] make sure the orders for the order_products being deleted do not have a status = completed
[ ] updateProduct - updateProduct(product)
[ ] don't try to update the id
[ ] do update the other fields (name, description, etc)
[ ] return the updated product
[ ] updateUser - updateUser(user)
[ ] don't try to update the id
[ ] do update the other fields (name, email, "isAdmin" etc)
[ ] return the updated user
Admin Database Adapters:
[ ] destroyProduct - destroyProduct({ id })
[ ] hard delete a product.
[ ] make sure to delete all the order_products whose product is the one being deleted.
[ ] make sure the orders for the order_products being deleted do not have a status = completed
[ ] updateProduct - updateProduct(product)
[ ] don't try to update the id
[ ] do update the other fields (name, description, etc)
[ ] return the updated product
[ ] updateUser - updateUser(user)
[ ] don't try to update the id
[ ] do update the other fields (name, email, "isAdmin" etc)
[ ] return the updated user