| ▲ | whalesalad 5 hours ago | |||||||
A good solution here (can be) to utilize a view. The underlying table has soft-delete field and the view will hide rows that have been soft deleted. Then the application doesn't need to worry about this concern all over the place. | ||||||||
| ▲ | elyobo 5 hours ago | parent [-] | |||||||
postgres with rls to hide soft deleted records means that most of the app code doesn't need to know or care about them, still issues reads, writes, deletes to the same source table and as far as the app knows its working | ||||||||
| ||||||||