remove User Constraints

@Modifying(clearAutomatically = true )
@Query(value = "DELETE FROM " + NOTES_KEY + " WHERE " + AUTHOR_KEY + "=:" + IDENTIFIER_KEY + " AND " + UPDATE_KEY + " IS NULL", nativeQuery = true )
abstract fun removeUserConstraints(@Param(value = "id") userId: String)

Method to execute the query to remove the constraints between PandoroUser deleted and Note

Parameters

userId

The user identifier