Best practices on maintaining data consistency in Strapi

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!

1 Like