To minimize data losses in an eventual data breach, and to use personal data only for the time and scope needed (keep personal data of the customer only for the online sell service and for support, then forget them), I would like to clean up all orders and customers info older than X years
in a shop.
By using some queries I will drop all the lines which contains data related to an order older than X years ago or a customer that logged in > X years ago, considering the following tables:
ORDERS & RELATED
Am I forgetting other tables related to orders/customers or that have dependances to the ones listed here?