CE-2374: Introduce logical delete for IOC type
A deleted
flag has been added to the ioc_type
table. The queries have been modified to return only non-deleted entries. The operations of the deleted items can still be seen. I have transformed the current delete function into a logical delete and added another endpoint for permanent deletion (purge). Additionally, I have added an endpoint to restore IOC types. The GitLab projects associated with types are archived in the case of logical deletion.
Closes CE-2374