After deleting a resource, while trying to create again with same name, it was throwing error as DuplicateEntity. Fixing this issue by adding unique constraint on deleted_at. Change-Id: I0e31346a471556f08c4fc5a6cc7bc130a133c24d Closes-bug: #1680689