beforeDelete: Customer → Check if customerId is in any Order → throw error / do whatever?
Note: But be careful there is also a beforeDeleteMany that you also need to take into account!
beforeDelete: Customer → Check if customerId is in any Order → throw error / do whatever?
Note: But be careful there is also a beforeDeleteMany that you also need to take into account!