cozemble / monorepo

A data and process canvas
https://cozemble.com
Apache License 2.0
13 stars 1 forks source link

Support to delete root records #23

Closed mike-hogan closed 1 year ago

mike-hogan commented 1 year ago

Support deletion of a record and cascade the deletion along all its has-* relationships

What to do with any references-* relationships it might be in?

If I have a Booking referencing a Customer, and I delete the Customer, what should happen to the Booking?

If we support soft deletion, the reference remains intact. If we do hard deletes, we need to loop around all referenced data and null, it probably.

Soft deletion "feels" better, but it does bring up GDPR issues around the right to be forgotten etc. There are ways to manage that like tagging PII fields and masking them on deletion, so still feels like the best approach.

mike-hogan commented 1 year ago

Tasks: