You should add a unique constraint on user/base_id/pending as the previous implementation