crazycooky77 / ci_project5

0 stars 1 forks source link

[ENH] Delete Purchaser Email from Database on Account Deletion #43

Open crazycooky77 opened 1 month ago

crazycooky77 commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, when a user account is deleted, their PII within the OrderHistory is also deleted (the "User" ForeignKey data). However the "purchaser_email" (unrelated to registered users) stays within the database.

Describe the solution you'd like If a registered user has orders and deletes their account, we should also delete their data that is not directly related to their account (i.e. the purchaser_email in OrderHistory). We also need to confirm there are no other such fields that need to be addressed.

Describe alternatives you've considered N/A