Bread was soft deleted. Kek
What is a soft delete? A soft delete marks a record as no longer active or valid without actually deleting it from the database. Soft deletes can improve performance, and can allow “deleted” data to be recovered. Did this article help you?
Using soft-deletion even for one entity will lead you to a bunch of new development conventions. You need to keep in mind that the delete process is not just delete, but sometimes the update, and not all data in a database table should be available for the application.
What Is Soft Delete? Soft delete performs an update process to mark some data as deleted instead of physically deleting it from a table in the database. A common way to implement soft delete is to add a field that will indicate whether data has been deleted or not.
Hard Deletes — The entire record is deleted from the table. After the delete, users will not be able to see that the record ever existed. Soft Deletes — The record is not removed from the table, but a field on the table indicates that it is deleted.
To Delete or to Soft Delete, That is the Question!
Like a xujoji